While building libssh2 you may come across zlib.h or unistd.h related error. Solution to each problem is given below.
1) ...\comp.c(40) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
Download zlib developer files fromt this link: http://gnuwin32.sourceforge.net/packages/zlib.htm
Download link: http://gnuwin32.sourceforge.net/downlinks/zlib-lib-zip.php
2)..\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
zlib under windows requires libgw32c
To compile with zlib on windows libgw32c is required http://gnuwin32.sourceforge.net/packages/libgw32c.htm to prevent:c:\program files\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Download link: http://gnuwin32.sourceforge.net/downlinks/libgw32c-lib-zip.php
No comments:
Post a Comment