[CMake] linking boost libraries built inside the project on mac os

Slava s.v.savenko at gmail.com
Tue Feb 2 10:54:40 EST 2016


I found the relevant discussion on stackoverflow
http://stackoverflow.com/questions/33665781/dependencies-on-boost-library-dont-have-full-path
. You can mark my question is [solved]. Thank you.

On Tue, Feb 2, 2016 at 3:48 PM, Gonzalo <ggarra13 at gmail.com> wrote:

>
>
> El 02/02/16 a las 09:01, Slava escribió:
>
>> I failed to reproduce it with a toy project, so please bear with me...
>> I compile and install boost at config time (by generating the helper
>> cmake file with external project and running cmake on it).
>> It is found by standard findBoost afterwards and linked against
>> Boost_UNIT_TEST_FRAMEWORK_LIBRARY.
>> All is fine till here. Now project is built, but trying to run the
>> resulting binary on mac throws me:
>>
>> dyld: Library not loaded: libboost_unit_test_framework.dylib
>>   Referenced from: /blablabla/util/./test
>>   Reason: image not found
>> Trace/BPT trap: 5¿
>>
> That just means that the dynamic library libboost_unit_test_framework is
> not installed in any system directory.
> You can install it some system dir or use DYLD_FALLBACK_LIBRARY_PATH to
> specify the directory where it resides.
>
> --
> Gonzalo Garramuño
> ggarra13 at gmail.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160202/2a55451e/attachment.html>


More information about the CMake mailing list