05-05-2012 10:33 PM
Hi, i'm having trouble linking a library to my project. Previously, I was working on the playbook ndk and it let me make managed build as opposed to the bb10 ndk that apparently only allows makefile build. So I tried to decrypt the makefiles to figure out where to make the appropriate changes and it turns that the makefile.debug contains the linker command, but it seems that the makefile itself is automatically generated and so I can't directly append a -lsqlite3 to the command. If anyone can help me out with this it would be terrific.
Solved! Go to Solution.
05-13-2012 09:38 AM
05-13-2012 11:20 AM
I'm not sure if this is the "preferred" way to do this, but I found out a way to do it
In your Project properties, go to
C/C++ Build -> Environment
At the top choose Configurations -> [All configurations]
Then click "Add..."
then you can add the new variable
value: -lsqlite3 -lcurl
this SUBLIBS variable is automatically prepended to the libs when you build the project, so you can add any libraries here on this line
Mine looks like this after defining the new variable:
05-13-2012 11:26 AM - edited 05-13-2012 06:14 PM
Hi, i'm having trouble linking a library to my project. Previously, I was working on the playbook ndk and it let me make managed build as opposed to the bb10 ndk that apparently only allows makefile build. ...
I'm using BB10 NDK + Cascades and I could use Managed Build:
curious why you don't have these options ?
05-13-2012 11:35 AM - edited 05-13-2012 06:12 PM
I also have some problems using a library with BB10/Cascades
see my thread "Include from Library project" in this forum
solved my issue there - reason was an empty /src folder
05-14-2012 05:41 AM