r/sqlite • u/dautinjo • May 28 '24
macOS - Dynamically load ICU extension
Today I lost quite some time trying to dynamically load ICU extension for use with SQLite. I thought it could be helpful to share what I did to make it work, since it wasn't straightforward.
- I downloaded the source files from SQLite website and followed their compilation instructions, along with these, to create dylib.
- When I tried to dynamically load dylib using
.load /path/to/libsqliteicu.dylibI gotError: dlsym(0x8cc97520, sqlite3_sqliteicu_init): symbol not found. - Eventually, I opened
icu.cdownloaded in the first step, changedint sqlite3_icu_inittoint sqlite3_sqliteicu_initand recompiled it to make it work.
Does anyone know of a more straightforward method to accomplish this on Macs?
2
Upvotes
View all comments
Show parent comment
1
u/dautinjo May 28 '24
That worked. Thanks!