How to build only Boost.Iostreams with compression filter support on Windows XP using MinGW
Good evening, Pardon my ignorance, or my poor documentation reading skills, but I am unable to build Boost.Iostreams with compression filter support on Windows XP using MinGW. I am using Boost 1.34.1, zlib 1.2.3 and bzip2 1.0.4. I tried the following command lines but to no avail: bjam --toolset=gcc -sNO_COMPRESSION=0 -sNO_BZIP2=0 -sBZIP2_LIBPATH=C:\bzip2-1.0.4 -sBZIP2_SOURCE=C:\bzip2-1.0.4 -sNO_ZLIB=0 -sZLIB_LIBPATH=C:\zlib-1.2.3 -sZLIB_SOURCE=C:\zlib-1.2.3 stage or bjam --toolset=gcc --NO_COMPRESSION=0 --NO_BZIP2=0 --BZIP2_LIBPATH=C:\bzip2-1.0.4 --BZIP2_SOURCE=C:\bzip2-1.0.4 --NO_ZLIB=0 --ZLIB_LIBPATH=C:\zlib-1.2.3 --ZLIB_SOURCE=C:\zlib-1.2.3 stage I searched through the Boost.Iostreams documentation, the Boost.Jam documentation, and the Boost.Build V2 documentation. Boost.Jam documentation indicates that the former should work, but Boost.Build V2 seems to use very little of or not at all of the -s flag for Boost.Jam, so I tried the latter. The result of both commands were the same, Boost.Iostreams was built without the compression filters. However, I do get 12 "warning: Unable to construct ./stage-unversioned" as the first output from Boost.Jam, after which it says "...patience..." and continues with the building process. Thank you in advance for assisting me in my problem, and in case I have missed out something critical yet obvious, and hence resulting in my failure, I apologise for not reading carefully enough. Thank you and have a nice day Benjamin Lau
Benjamin Lau wrote:
Good evening,
Pardon my ignorance, or my poor documentation reading skills, but I am unable to build Boost.Iostreams with compression filter support on Windows XP using MinGW. I am using Boost 1.34.1, zlib 1.2.3 and bzip2 1.0.4. I tried the following command lines but to no avail:
bjam --toolset=gcc -sNO_COMPRESSION=0 -sNO_BZIP2=0 -sBZIP2_LIBPATH=C:\bzip2-1.0.4 -sBZIP2_SOURCE=C:\bzip2-1.0.4 -sNO_ZLIB=0 -sZLIB_LIBPATH=C:\zlib-1.2.3 -sZLIB_SOURCE=C:\zlib-1.2.3 stage
or
bjam --toolset=gcc --NO_COMPRESSION=0 --NO_BZIP2=0 --BZIP2_LIBPATH=C:\bzip2-1.0.4 --BZIP2_SOURCE=C:\bzip2-1.0.4 --NO_ZLIB=0 --ZLIB_LIBPATH=C:\zlib-1.2.3 --ZLIB_SOURCE=C:\zlib-1.2.3 stage
I have only done this using vs.net 2003, but when I did it, I found that I ONLY set the zlib path environment variables... zlib_libpath, zlib_source, and zlib_include. In fact, I just set them as explicit environment variables and then called bjam with the correct toolset. I did not do anything with no_zlib or no_compression (IIRC they caused me problems). You could try that and see if it works for you.
Good evening, Ah! Thanks! That seems to work! Thank you very much Have a nice day Benjamin Lau
participants (2)
-
Benjamin Lau
-
egoots