PDA

View Full Version : How can I add a lib file to my project?



ehsanTC
20th April 2011, 11:49
Hi
I a newbie to the Qt and started it for coding for symbian. I want to use symbian classes in Qt creator but every time I confronted with a new problem. I want to use etel3rdparty.lib classes in my project. For adding that library, I followed the instruction of Qt Docs, but it was not useful. My .pro file is:

QT += core

QT -= gui

TARGET = poiters
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app
HEADERS += etel3rdparty.h


SOURCES += main.cpp


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdparty
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdpartyd
else:symbian: LIBS += -letel3rdparty

INCLUDEPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5
DEPENDPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5

symbian|win32: LIBS += -letel3rdparty

I always get this code error:
:-1: error: cannot find -letel3rdpartyd
:-1: error: collect2: ld returned 1 exit status

regards.