sqliterubymotion

Using SQLite with Rubymotion


I want to use the C-level SQLite API with Rubymotion, but I'm not sure how to include the SQLite dylib & header files, if it is possible at all.

As I understand the dylib should be included in the following way:

app.libs += ['/usr/lib/libsqlite3.dylib']

But that's not enough, the sqlite3_open function is still not found. I guess the header file should be specified somehow.

P.S. I know that I can use FMDB to get the same functionality, but I'm wondering about using the C library directly.


Solution

  • I'm not having any issues with mine. Here's my lib entry:

    app.libs += ['/usr/lib/libz.dylib', '/usr/lib/libsqlite3.dylib']
    

    Maybe you need the libz.dylib part.