01-17-2014 02:52 PM
i've searched anywhere on BlackBerry Core NDK pages and have not found anything about sqlite integration with core application except link to original sqlite page.
is it really there's no documentation for sqlite at all? or am i missed it?
same questions also with some other open source component like libxml2, couchDB, json_parser, etc?
01-18-2014 02:35 PM
there's no one here have information about this?
looks like i have to ported stock sqlite lib myself instead of using undocumented dev files provided by BB NDK
01-18-2014 03:04 PM
I haven't used sqlite on BB10 yet, but I think this should work:
LIBS += -lsqlite3
to .pro file
API description can be taken directly from sqlite website.
Other libs are pretty much the same.
1) Find the relevant files:
find . -iname "*sqlite*"
2) Link with .so file:
LIBS += -lsqlite3 // 'lib' will be prepended automatically
3) Include the ".h" file.
find . -iname "*libxml*"
LIBS += -lxml2
to .pro file
ls -l ./target_10_2_0_339/qnx6/usr/include/libxml
To get the list of libxml headers.
And so on.
01-18-2014 03:28 PM - edited 01-18-2014 04:08 PM
thanks for replying Zmey.
i know all about where to find a header & library file, also to how to compile & link programs againts those libs.
problem is, no documentation, no reference, nothing, but they are listed in the API Reference:
i'm have no intention to blame documentation team for this, i understand that documentation is huge tasks, and since the development of OS10 is so rapidly, it makes the tasks to keep documentation updated more harder.
i just want to let them know that this should be done, if not, please put a notes that this library is supported but not yet documented, please refer to original documentation, something like that.
on the other hand, i don't want to rely my application on any API that has no documentation. i don't know how BlackBerry implement the original/stock sqlite3 or make what modification to it, so i'd better build it myself from stock sqlite3 and read documentation there, and try my best to adopt it to BB NDK enviroment.
i've done it with libssh2 which is as far as i know is not supported, if you are interested, you may see my notes on the process in my blog:
anyway thank you for spare your time answering my question.
additional note: i'm only do ANSI c, no c++/Qt/Cascade, it's more easy to me to compile and link without depedency on GUI IDE.
01-18-2014 04:05 PM - edited 01-18-2014 04:30 PM
and actually it's not so hard to porting some open source application/library to QNX based BlackBerry OS10, and i'm half way through building sqlite3 from scratch, crossed compile in Debian/Linux:
here is my (unfinished) notes:
by doing this, it's clear to me that sqlite2 included in BB NDK 10.2 is at some point modified, because it's depend on readline and no readline in BB NDK 10.2.
01-20-2014 01:34 PM
The idea for the native libraries like that is that they are there because you already know how to use them. It's just a third party open source library that we've already ported and included in the platform. You can also port any library you like yourself. If you're a cross platform game using sqlite, you know we have it on our platform.
We expect most new BlackBerry 10 specific apps to be built in Cascades using the Qt framework (or Webworks). The database access methods there are quite well documented.
01-20-2014 02:49 PM