Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

iostreams: bzip2 and gz support in windows

Help
chpts
2006-12-03
2013-05-14
  • chpts
    chpts
    2006-12-03

    Hi everyone:

    Has anyone had any success in using boost_iostreams with bzip and gzip support in windows?

    First I tried with the Dev-Cpp devpak from: http://www.digitazero.org/?p=28#BOOST (since I use that IDE to make the windows binaries for my program) but apparently the compression filter capabilities are disabled (linker errors if I make a call to boost::iostreams::gzip_decompressor(), if that link is commented the program builds just fine).

    I've already read the building documentation in: http://www.boost.org/libs/iostreams/doc/installation.html#bjam but the builder says that bzip2 and gz support will be disabled. The flags I used were: bjam "-sBZIP2_SOURCE=C:\Dev-Cpp\include" "-sBZIP2_BINARY=C:\Dev-Cpp\bin" "-sBZIP2_LIBPATH=C:\Dev-Cpp\lib"

    The same with the gzip flags.

    I double checked that the headers (bzlib.h and zlib.h) are in C:\Dev-Cpp\include, also that the binaries (bzip2.dll and zlib1.dll) are in C:\Dev-Cpp\bin but bjam still says: "Building Boost.Iostreams with zlib and gzip support disabled."

    Any ideas?

    Thanks in advance,

    Juan.

     
    • Alexis Wilke
      Alexis Wilke
      2006-12-18

      You should try BZIP2_INCLUDE instead of BZIP2_SOURCE

      At this time, I cannot compile anything bjam breaks for me... so I suppose you're ahead of me! 8-)

      Good luck,
      Alexis

       
      • chpts
        chpts
        2006-12-18

        Thanks Alexis, that made the trick.

        If you wish I could post the steps I followed to successfully compile the module.

        Cheers,

        Juan.