Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] Clang Darwin trunk Cray 8.0 and max_digits10 support - problem in config?
From: Michel Morin (mimomorin_at_[hidden])
Date: 2012-07-13 01:37:00

Belcourt, Kenneth wrote:
> But what really strange is this library I downloaded:
> sh-3.2$ ls -l /home/kbelco/libcppabi/libc++abi.dylib
> -rwxr-xr-x 1 kbelco kbelco 279396 Jul 10 15:21 /home/kbelco/libcppabi/libc++abi.dylib
> Seems to depend on /usr/lib/libc++abi.dylib:
> sh-3.2$ otool -L /home/kbelco/libcppabi/libc++abi.dylib
> /home/kbelco/libcppabi/libc++abi.dylib:
> /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current version 0.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
> but that library doesn't even exist.

OK, so you need to change the install name of your libc++abi.dylib.

1. Copy or move the downloaded `libc++abi.dylib` to `SOME_PATH/libcxx/lib`.
2. `cd SOME_PATH/libcxx/lib`
3. Change the install name:
    install_name_tool -id SOME_PATH/libcxx/lib/libc++abi.dylib libc++abi.dylib

(Actually you don't need to copy `libc++abi.dylib` to `SOME_PATH/libcxx/lib`.
In that case, the command for changing the install name is:
    cd /home/kbelco/libcppabi
    install_name_tool -id /home/kbelco/libcppabi/libc++abi.dylib libc++abi.dylib
Then, add `/home/kbelco/libcppabi` to <linkflags> and DYLD_LIBRARY_PATH.)

As for `/usr/lib/libSystem.B.dylib`, I believe it is installed by default
on Mac OS X 10.6.


Boost list run by bdawes at, gregod at, cpdaniel at, john at