On 2011-07-28 15:29, Daniel James wrote:
On 28 July 2011 14:23, Daniel Bradburn
wrote: Hi Thanks, I tried moving the location of zlib and use the following command line now: "../../../bjam" -sZLIB_SOURCE=C:\Development\sdk\gzip\124\ -sZLIB_HEADER=C:\Development\sdk\gzip\124\ It's actually managing to build zlib now, but I still get the following error... ..\..\..\libs\iostreams\src\zlib.cpp(20) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory Anyone got any ideas?
You probably should be using ZLIB_INCLUDE, not ZLIB_HEADER.
If that doesn't resolve it, look in output after the compilation failure, bjam should print out the command that was run (or use 'bjam -na' which will print out all the commands bjam would run). Check the include parameter in that, and compare it to the location of zlib.h.
You should use the zlib library, http://zlib.net, not the gzip library, http://www.gzip.org. Also, it is enough the specify ZLIB_SOURCE, you do not need to specify ZLIB_INCLUDE. (ZLIB_INCLUDE is used if you want to use a prebuilt version of zlib.) --Johan