[iostreams] building with zlib
Dear boost-users, I am trying to use the compression filters with boost.iostreams. I'm following the instructions here http://www.boost.org/doc/libs/1_47_0/libs/iostreams/doc/index.html?path=7 for building, this is my command line (from libs/iostreams/build): "../../../bjam" -sZLIB_SOURCE="C:/Documents and Settings/bradburnd/My Documents/Development/SDK/zlib/1.2.5" I get the following error: ..\..\..\libs\iostreams\src\zlib.cpp(20) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory I checked my zlib install location and the zlib.h is at the correct location. Based on what I see in the documentation I don't see why this shouldn't be working. Is there something I'm missing? I am using Windows XP, msvc-9.0 boost 1.45 Best Regards Daniel Bradburn
Hello,
On Wed, Jul 27, 2011 at 9:29 AM, Daniel Bradburn
following the instructions here http://www.boost.org/doc/libs/1_47_0/libs/iostreams/doc/index.html?path=7 for building, this is my command line (from libs/iostreams/build):
"../../../bjam" -sZLIB_SOURCE="C:/Documents and Settings/bradburnd/My Documents/Development/SDK/zlib/1.2.5"
I get the following error:
..\..\..\libs\iostreams\src\zlib.cpp(20) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
I've had this exact problem before. The path to your zlib sources cannot have any spaces in it. Cheers, Will
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?
Best Regards
Daniel Bradburn
2011/7/27 Will Mason
Hello,
On Wed, Jul 27, 2011 at 9:29 AM, Daniel Bradburn
wrote: I am trying to use the compression filters with boost.iostreams. I'm
following the instructions here http://www.boost.org/doc/libs/1_47_0/libs/iostreams/doc/index.html?path=7 for building, this is my command line (from libs/iostreams/build):
"../../../bjam" -sZLIB_SOURCE="C:/Documents and Settings/bradburnd/My Documents/Development/SDK/zlib/1.2.5"
I get the following error:
..\..\..\libs\iostreams\src\zlib.cpp(20) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
I've had this exact problem before. The path to your zlib sources cannot have any spaces in it.
Cheers, Will
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 28 July 2011 14:23, Daniel Bradburn
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.
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
participants (4)
-
Daniel Bradburn
-
Daniel James
-
Johan Råde
-
Will Mason