[iostreams] building iostreams with zlib support for iphone
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work). Cheers, Mikko
Mikko Vainio wrote:
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work).
Can you clarify what exactly does not work? - Volodya
Vladimir Prus wrote:
Mikko Vainio wrote:
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work).
Can you clarify what exactly does not work?
- Volodya
Hmm... I had hard time a while back trying to get iostreams built with zlib support. Setting ZLIB_SOURCE as a Boost.Build variable did not work (that is, no libboost_zlib produced) but today it does. I've updated the platform (Fedora linux) in between, so cannot say what's different now. Regards, Mikko
Mikko Vainio wrote:
Vladimir Prus wrote:
Mikko Vainio wrote:
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work).
Can you clarify what exactly does not work?
- Volodya
Hmm... I had hard time a while back trying to get iostreams built with zlib support. Setting ZLIB_SOURCE as a Boost.Build variable
How exactly did you set it?
did not work (that is, no libboost_zlib produced) but today it does. I've updated the platform (Fedora linux) in between, so cannot say what's different now.
While there was Windows-specific change related to HAS_ZLIB, I don't think anything was changed in Boost.Build on Linux. - Volodya
Vladimir Prus wrote:
Mikko Vainio wrote:
Vladimir Prus wrote:
Mikko Vainio wrote:
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work). Can you clarify what exactly does not work?
- Volodya
Hmm... I had hard time a while back trying to get iostreams built with zlib support. Setting ZLIB_SOURCE as a Boost.Build variable
How exactly did you set it?
Cannot recall for sure but I spent quite some time experimenting with different quotation styles: -s"ZLIB_SOURCE=...", -s'ZLIB_SOURCE=...', "-sZLIB_SOURCE=...", etc. Could be that I just missed -sZLIB_SOURCE=... that works (using a bash shell). /Mikko
Mikko Vainio wrote:
Kenny Riddile wrote:
I need to build the iostreams library with zlib support for both the iphone and iphone simulator. I already know how to just build the libs for iphone and the simulator, but I'm a windows developer and have little dev experience on mac, let-alone iphone, so I'm a bit bewildered. How do I go about getting zlib support compiled in?
You need to define the environment variable ZLIB_SOURCE or other ZLIB_* variables as described in the installation instructions http://www.boost.org/doc/libs/1_38_0/libs/iostreams/doc/installation.html (note: the instructions say "Boot.Build variables" but that does not work).
Cheers, Mikko
The iPhone SDK comes with zlib, but it just has the zlib headers and a "libz.dylib" for the library. There doesn't appear to be an import library...just this dylib thing. So, I know what path to specify for ZLIB_INCLUDE, but I'm a bit confused about what to specify for ZLIB_LIBPATH or ZLIB_BINARY.
participants (3)
-
Kenny Riddile
-
Mikko Vainio
-
Vladimir Prus