Boost logo

Boost-Build :

From: Jeremy Pack (rostovpack_at_[hidden])
Date: 2007-05-29 10:57:08


>
>
> Since you haven't asked for any specific advice, all I can do is suggest
> that you read Boost.Build docs (http://boost.org/boost-build2), and
> ask specific questions when you have any.

 All right: first question.

I have two shared libraries. The first one links to the second one, i.e.:

lib Vehicle : VEHICLE_SOURCE : <link>shared ;
lib Car : CAR_SOURCE Vehicle : <link>shared ;

install ../bin :
  Vehicle Car :
  <install-dependencies>on
  ;

The Car library will not load on OS X or Linux, because it cannot find the
Vehicle library - even though they are in the same directory. On Linux, this
was fixed by setting the LD_LIBRARY_PATH (this would probably work on OS X
as well). I can also fix it on OS X by copying Vehicle.dylib to
../bin/bin/darwin/debug/ (or release, depending on the variant). I need to
get them to see each other when they are in the same directory - it is a bit
of a waste to have two copies of Vehicle.

You can see the example that requires this in the
sandbox/libs/extension/examples/ folder. I did find some setting that
sounded as if it would take care of it - but it didn't work on OS X (haven't
tried it on Linux yet).

Any ideas?

Jeremy



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk