Reputation: 3505
I am building libicu on Ubuntu Linux.
In Recommended Build Options, the documentation suggests that I should use -DU_USING_ICU_NAMESPACE=0
and -DU_CHARSET_IS_UTF8=1
.
My build process is as follows.
wget -nv http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz -O icu4c-55_1-src.tgz
tar -zxvf icu4c-55_1-src.tgz
mkdir -p build
cd build
../icu/source/runConfigureICU Linux
make check
Where do I provide the arguments -DU_USING_ICU_NAMESPACE=0
and -DU_CHARSET_IS_UTF8=1
? Neither configure
nor make
seem to accept these arguments.
Upvotes: 0
Views: 1457
Reputation: 76
For command line try using: CPPFLAGS="-DU_CHARSET_IS_UTF8=1" see here
So your command-line becomes
wget -nv http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz -O icu4c-55_1-src.tgz
tar -zxvf icu4c-55_1-src.tgz
mkdir -p build
cd build
CPPFLAGS="-DU_CHARSET_IS_UTF8=1" ../icu/source/runConfigureICU Linux
make check
Or you can modify the headers directly. see here Good if you're rebuilding a lot and want a simple command line but does require you to re-apply the change should the source file get updated.
Upvotes: 1