Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-06-08 08:17:10


John Maddock wrote:

>>I have Fedora (pre-FC4). There are packages for icu: libicu,
>>libicu-devel,
>> libicu-doc which I installed.
>>
>> I can't seem to convince bjam to use them. What do I need to do?
>>
>> Headers are in /usr/include/unicode (e.g., /usr/include/utypes.h). Libs
>> are
>> rpm -ql libicu
>> /usr/lib64/libicudata.so.32
>
> The Jamfiles getting confused because the libs are under a different path
> to the headers, try:
>
> export ICU_PATH=/usr
> export ICU_LINK="-licuuc -licui18n"
> bjam stage # or whatever
>
> Hopefully that should work,
>

Works, but could be better:
ICU_PATH=/usr ICU_LINK="-licuuc -licui18n" PYTHON_ROOT=/usr
PYTHON_VERSION=2.4 bjam -sTOOLS=gcc stage
Building Boost.Regex with Unicode/ICU support enabled
Using ICU in /usr/include
...found 7586 targets...
...updating 130 targets...
gcc-C++-action
bin/boost/libs/regex/build/libboost_regex.so/gcc/debug/shared-linkable-true/regex_raw_buffer.o
gcc-Link-action
bin/boost/libs/regex/build/libboost_regex.so/gcc/debug/shared-linkable-true/libboost_regex-gcc-d-1_33.so
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
[...]

Seems to work, but you see the warnings. This is on Fedora x86_64.
Apparantly, someone added -L/usr/lib, which would cause those annoying
warnings.


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