Compiling the icu sqlite extension statically linked to icu.

Posted by Georg on Stack Overflow See other posts from Stack Overflow or by Georg
Published on 2009-11-30T09:09:31Z Indexed on 2010/05/31 20:33 UTC
Read the original article Hit count: 505

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about sqlite

Related posts about icu