How do I build boost‘s iostreams library with gzip and bzip2 support?
How do I build boost ‘s iostreams library with gzip and bzip2 support?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am no expert, but this worked for me.
Option 1 (straight from source)
Download source files for zlib and for bzip2.
Extract the downloads to directories, move directories to somewhere you like. I had to avoid
C:\Program Files (x86)\as I couldn’t get it to work with spaces in the directory name, so I createdC:\Sys\and used that.Open a command prompt with elevated privileges (run as administrator), go to your
boostdirectory, e.g.C:\Program Files (x86)\boost\boost_1_50_0\and typeb2.exe --with-iostreams -s BZIP2_SOURCE=C:\Sys\bzip2-1.0.6 -s ZLIB_SOURCE=C:\Sys\zlib-1.2.7Verify that
C:\Program Files (x86)\boost\boost_1_50_0\stage\libcontains the wanted files, e.g.libboost_zlib-vc100-*-1_50andlibboost_bzip2-vc100-*-1_50.Option 2 (build from source first)
As above, download the source files.
Open a
Visual Studio Command Promptwith elevated privileges (run as administrator)Go to
C:\Sys\zlib-1.2.7>and typenmake -f win32\Makefile.msc. This will buildzlib.Go to
C:\Sys\bzip2-1.0.6>and typenmake -f makefile.msc. This will buildgzip2.The command for
boostnow becomesb2.exe --with-iostreams -s BZIP2_BINARY=libbz2 -s BZIP2_INCLUDE=C:/Sys/bzip2-1.0.6 -s BZIP2_LIBPATH=C:/Sys/bzip2-1.0.6 -s ZLIB_BINARY=zlib -s ZLIB_INCLUDE=C:/Sys/zlib-1.2.7 -s ZLIB_LIBPATH=C:/Sys/zlib-1.2.7