PDA

View Full Version : Link statical library in Symbian



MiGryz
18th June 2010, 11:13
Hello.
I am using NokiaSDKBeta.

I have two problems:

1)
I've built a static library with the next pro file:


TEMPLATE = lib
TARGET = testlib
CONFIG += qt static staticlib create_prl
QT -= gui

DESTDIR = $$_PRO_FILE_PWD_
DLLDESTDIR = $$DESTDIR


cmd command:
qmake testlib.pro -r -spec symbian-abld CONFIG-=debug CONFIG+=release
make release-gcce -w

However i can't find any lib file in my project directory. I've found that lib in
c:\NokiaQtSDK\Symbian\SDK\epoc32\release\armv5\ure l\testlib.lib

Can't get if that is ok.

2) I have a second project


TEMPLATE = app
TARGET = testlibuser
QT += core gui

INCLUDEPATH += ./../testlib

LIBS += libtestlib
LIBPATH += $$_PRO_FILE_PWD_/../testlib

symbian: message( building symiban )
symbian:LIBS += c:\NokiaQtSDK\Symbian\SDK\epoc32\release\armv5\ure l\testlib.lib

symbian {
TARGET.UID3 = 0xe96599ea
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
TARGET.EPOCALLOWDLLDATA=1
}


i run qmake, but in generated mmp file i can't find any information about that project needs testlib.lib (or something like this).

Is that ok, or have I missed something?

(Both projects are build fine and for for the simulator, building them from the console as well)

MiGryz
18th June 2010, 11:48
Seems like I've fixed the problem. i had to use
LIBS += -ltestlib.lib