Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building on OSX with link=shared
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2016-02-18 08:34:10


On 15-Jan-16 3:28 AM, Robert Ramey wrote:
> I'm trying to build and test the serialization library on my OSX machine. This works fine when I use link=static. But
> when I'm using link=shared - I get the following message.
>
> ../../../tools/library_status/library_test.sh -j4 toolset=clang-03 variant=debug link=shared test_iterators >b2.log &
>
> dyld: Library not loaded: @rpath/libboost_filesystem.dylib
> Referenced from:
> /Users/robertramey/WorkingProjects/modular-boost/libs/serialization/test/../../../bin.v2/libs/serialization/test/test_iterators.test/clang-darwin-03/debug/test_iterators
>
> Reason: image not found
> Trace/BPT trap: 5

I had a chance to try firsthand, as follows:

- In the root folder, run "./bootstrap.sh"
- Go to libs/program_options/test
- Run "../../../b2 parser_test_dll"
- Run "../../../b2 parser_test_dll toolset=clang-darwin"

The above works fine, on OSX 10.11.3/15D13, with System Integrity Protection enabled.

Robert, could you try these 4 steps above and report what happens?

- Volodya

-- 
Vladimir Prus
http://vladimirprus.com

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