I have a static lib (mylib.a). How can I add it to the project (Momentic IDE)?
I treid to add it to lib folder and write
LIBS += -Bstatic -L/app/native/lib -mylib -Bdynamic \
to the file .pro, but it doesn't work
I have a static lib (mylib.a). How can I add it to the project (Momentic IDE)?
I treid to add it to lib folder and write
LIBS += -Bstatic -L/app/native/lib -mylib -Bdynamic \
to the file .pro, but it doesn't work
Right click on your project, select Configure -> Add Library from the menu.
On the dialog select External Library then Next. Browse to the locations for the device and simulator builds of the library, and add paths to the include directories. If it is a static library you may have to go into the bar-descriptor.xml file and remove asset entries for a dynamic library mylib.so. The reason for this is static libraries are linked at compile time, where as dynamic libraries that are not included with the OS must be loaded as assets with the application.
You need -*l*mylib. If that does not solve your problem, try to use absolute path for the static library.