Discussion:
[Boost-users] [Regex] Cannot build Regex without ICU
Rob Desbois
2015-02-26 15:33:16 UTC
Permalink
I want to build the Boost libs without ICU support in Regex, but have been
unable to prevent it from being linked in.

I've run the following commands on a freshly extracted distribution of 1.57:
./bootstrap.sh --without-icu
--prefix=/home/rob/workspace/deps/boost/1.57.0/linux/x64/
./b2 install

The bootstrap stage output includes this, which seems to indicate it's
behaving correctly:
Unicode/ICU support for Boost.Regex?... disabled.

The resulting project-config.jam makes no mention of ICU.
The build log includes:
- has_icu builds : yes
- icu : yes

The shared library dependencies for the resulting libboost_regex.so.1.57.0
then include:
libicuuc.so.50 => /lib64/libicuuc.so.50 (0x00007f74e5e3b000)
libicui18n.so.50 => /lib64/libicui18n.so.50 (0x00007f74e5a3b000)
libicudata.so.50 => /lib64/libicudata.so.50 (0x00007f74e4467000)

I know the docs for Boost.Regex specify the bootstrap argument as
--disable-icu, however this is rejected as invalid, unlike the argument I
provide.

Have I messed up somewhere or is this a bug?
TIA -- rob
--
Rob Desbois
http://theotherbranch.wordpress.com/
Steven Watanabe
2015-02-26 15:44:10 UTC
Permalink
AMDG
Post by Rob Desbois
I want to build the Boost libs without ICU support in Regex, but have been
unable to prevent it from being linked in.
./bootstrap.sh --without-icu
--prefix=/home/rob/workspace/deps/boost/1.57.0/linux/x64/
./b2 install
The bootstrap stage output includes this, which seems to indicate it's
Unicode/ICU support for Boost.Regex?... disabled.
<snip>
I know the docs for Boost.Regex specify the bootstrap argument as
--disable-icu, however this is rejected as invalid, unlike the argument I
provide.
Have I messed up somewhere or is this a bug?
You need to pass --disable-icu to b2.
It looks like the bootstrap script doesn't
record --without-icu in a way that the
regex build understands.

In Christ,
Steven Watanabe
Rob Desbois
2015-02-26 16:48:20 UTC
Permalink
Post by Steven Watanabe
Post by Rob Desbois
I want to build the Boost libs without ICU support in Regex, but have
been
Post by Rob Desbois
unable to prevent it from being linked in.
You need to pass --disable-icu to b2.
It looks like the bootstrap script doesn't
record --without-icu in a way that the
regex build understands.
Many thanks Steven, that worked perfectly.

Loading...