Boost logo

Boost :

Subject: Re: [boost] how to build boost with bzip2 in non-standard location?
From: Oliver Kullmann (O.Kullmann_at_[hidden])
Date: 2009-05-20 16:19:44


Fine,

so I need to set the "Boost.Build variables"

BZIP2_BINARY, BZIP2_INCLUDE, BZIP2_LIBPATH, BZIP2_SOURCE.

Or what is BZIP2_SOURCE? The installation of bzip2
offers only header files and link-libraries (as usual)?
Alright, I don't build bzip2 when building boost, and
so this likely doesn't apply.

However what is a "Boost.Build variable"??
I can't find this concept explained anywhere.

Starting with
http://www.boost.org/doc/libs/1_39_0/more/getting_started/unix-variants.html
speaks in 5.2.4 about "invoking bjam" (which should be related here),
and according to
http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html
there are "options", "properties" and "targets", but no "Boost.Build variables"?

Perhaps a property is meant?

So my current guess is to use (this I record for others, so that
they don't have to search and guess around) when installing boost:

bjam --user-config=PATH/bjam_config --prefix=INSTALL_DIR --build-dir=BUILD_DIR install \
--without-python --without-wave BZIP2_BINARY=PATH_TO_bzip2 BZIP2_INCLUDE=PATH_TO_DIRECTORY_WITH_bzlib.h \
BZIP2_LIBPATH=PATH_TO_DIRECTORY_WITH_libbz2.a

I'll try that. Thanks!

Oliver

On Wed, May 20, 2009 at 12:35:09PM -0700, Steven Watanabe wrote:
> AMDG
>
> Oliver Kullmann wrote:
> >I want to build the full boost library, while
> >I don't have bzip2 installed system-wide (but I
> >just downloaded and installed it locally).
> >
> >It seems to me that
> >http://www.boost.org/boost-build2/doc/html/bbv2/tasks/libraries.html
> >should be relevant here for that task, but I find the
> >descriptions too general to understand. I wonder whether
> >somebody could simply tell me the lines to be entered into
> >the bjam-configuration file?
> >
> >Perhaps
> >
> >bz2 : : <file> Path_to_libbz2.a ;
> >
> >But how to specify where to find bzlib.h ?
> >
> >Isn't it possible to specify the base directory, where then,
> >as, usual include, lib and bin are found?
> >
> >Thanks in any case!
> >
>
> http://www.boost.org/libs/iostreams/doc/installation.html#bjam
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Unsubscribe & other changes:


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk