03-01-2012 09:41 PM
A project builds with no problems until I add the sqlite3 library with which I get the following build error:
/bbndk-2.0.0/target/qnx6/armle-v7/usr/lib/libsqlit
cc: /mnt/Projects/PlayBook/bbndk-2.0.0/host/linux/x86/
Using NDK 2.0 on Kubuntu 11.10
Any suggestions on what I am not doing correctly.
Roger
Solved! Go to Solution.
03-02-2012 11:52 AM
Sounds like you need to add libz to your project. The examples I've seen that have sqlite3 in their libs list also have z.
Cheers,
Sean
03-02-2012 02:21 PM - edited 03-02-2012 03:52 PM
Thanks for the suggestion, but it didn't work in that the file could not be found.
The build error message displayed was:
**** Internal Builder is used for build ****
qcc -o src/main.o ../src/main.c -V4.4.2,gcc_ntoarmv7le -w1 -I/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/u
qcc -o myTracker src/main.o -lbps -lpps -lscreen -llibz -lsqlite3 -V4.4.2,gcc_ntoarmv7le -w1 -g -Wl,-z,relro -Wl,-z,now
-L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/.
-L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/.
/mnt/Projects/PlayBook/bbndk-2.0.0/host/linux/x86/
cc: /mnt/Projects/PlayBook/bbndk-2.0.0/host/linux/x86/
Build error occurred, build is stopped
Note: formating above was added manually.
Would you please send me the location of the example files using sqlite3?
Roger
03-03-2012 04:09 AM
You added "libz" to your libs instead of just "z". You can see this here:
qcc -o myTracker src/main.o -lbps -lpps -lscreen -llibz -lsqlite3 -V4.4.2,gcc_ntoarmv7le -w1 -g -Wl,-z,relro -Wl,-z,now -L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/../target-override/armle-v7/lib -L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/. ./target-override/armle-v7/usr/lib
You want -lz. There is no such thing as liblibz.
Cheers,
Sean
03-04-2012 04:05 AM
Thanks Sean