Compiling the icu sqlite extension statically linked to icu.
- by Georg
I want to compile the icu sqlite extension statically linked to icu.
This is what I've tried, maybe the mistake is obvious to you.
cd icu/source
./runConfigureIcu Linux --enable-static --with-packaging-format=archive
...
make
cd ../../icu-sqlite
gcc -o libSqliteIcu.so -shared icu.c -I../icu/source/common
-I../icu/source/i18n -L ../icu/source/lib -lsicuuc -lsicui18n -lsicudata
...
sqlite3
.load "libSqliteIcu.so"
Undefined symbol utf8_countTrailBytes
Files
icu sqlite extension
Download icu.c from sqlite.org
ICU 4.2.1
Download ICU4C from icu-project.org
My Requirements
Runs on Linux & Windows
Only one file that I have to distribute: libSqliteIcu.so.
Any idea what else I can try?
Documentation
Sqlite ICU extension's readme
ICU's readme