I built Boost 1.47.0 with ZLIB and BZIP2 support the same way, i.e.
defined the same environment variables. I also discovered that I could
define the same variables on the bjam command line using the “-s” option which I
didn’t like because you ended up having to issue a very long bjam command.
According to comments in
$BOOST_INSTALL_DIR\libs\iostreams\build\Jamfile.v2, the same variables can be
setup as ‘path-constant’s in either Boost’s root Jamfile or in user-config.jam
which didn’t make sense because the values of some of the variables aren’t
paths. I thus tried using ‘constant’ both in $BOOST_INSTALL_DIR\Jamroot or
$BOOST_INSTALL_DIR\user-config.jam and both didn’t seem to work.
What is the correct way of setting up these variables other than defining
environment variables or adding them to the bjam command line?
On Fri, Nov 18, 2011 at 12:38 PM, Tom Kent
<lists@teeks99.com>
wrote:
So I'm still a bit confused. Does something actually
need to be built along with boost, or at the bz2 and zlib stuff things that
can be added in later?
If something needs to be built into boost, I could probably do that (I
don't currently for MPI, but this sounds more generally useful).
However, if this is just a matter of throwing windows binaries for bz2 and
zlib in with a bunch of boost libraries, that doesn't seem right. Is
there any documentation on this? I glanced around a bit but didn't see
much.
Tom
On Thu, Nov 17, 2011 at 5:09 PM, Andrew Maclean
<andrew.amaclean@gmail.com> wrote:
On Fri, Nov 18, 2011 at 6:54 AM, Brian Budge
<brian.budge@gmail.com> wrote:
On Thu, Nov 17, 2011 at 11:34 AM, Tom Kent <
lists@teeks99.com>
wrote:
> I'm confused. Are those new items? I've never
seen them build
> before, but then again I've never actually used
the iostreams library.
>
> >From the format of the filename
strings, they look like independent
> libraries, but zip and bzip2
aren't shown on the boost libraries page.
> Is there a chance
you're actually looking for the zlib and libbz2?
>
>
Tom
For windows these are built for convenience so that
zlib and bz2 are
packaged along with the boost libs since it is not
terribly common to
have them available on all windows boxes. You
just have to tell bjam
to build them when building the rest of the
code; they are optional
and not built by default.
Brian
You are
correct but I have never seen bzip2 or zlib included in the boost libraries.
I have generally built them separately and then added the following settings
to my boost build:
set BZIP_PATH=C:\Users\amaclean\wherever\bzip
set ZLIB_PATH=C:\Users\amaclean\wherever\zlib
rem Setting environment for building iostreams with bzip and
gzip.
set NO_COMPRESSION=0
set NO_BZIP2=0
set BZIP2_SOURCE="%BZIP_PATH%\bzip2-1.0.6"
set NO_ZLIB=0
set ZLIB_SOURCE="%ZLIB_PATH%\zlib-1.2.5"
Maybe they should be included in boost and only used in windows
builds.
Andrew
--
___________________________________________
Andrew J. P.
Maclean
Australian Centre for Field Robotics (ACFR)
The Rose Street
Building J04
The University of Sydney 2006
NSW
AUSTRALIA
Ph:
+61 2 9351 3283Fax:
+61 2
9351 7474URL:
http://www.acfr.usyd.edu.au/___________________________________________
If you look in the iostreams documentation, in particular the installation
section, it talks about widows, bzip2 and zlib.
What I do is to use the latest zlib and bzip sources and put them in a
folder and then set the appropriate environment variables as outlined in the
iostreams documentation before building.
Of course if you are using dlls then you need to build the zlib dlls as
iostreams will need the import library in this case. I just use cmake to do this
(for the appropriate compiler).
I have attached a windows command file that may be of use to you.
Regards
Andrew
--
___________________________________________
Andrew J.
P. Maclean
Australian Centre for Field Robotics (ACFR)
The Rose Street
Building J04
The University of Sydney 2006
NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL:
http://www.acfr.usyd.edu.au/___________________________________________
_______________________________________________
Boost-users mailing
list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users