[Qt-creator] Qt Creator and External Library

Comp dcomptd at gmail.com
Tue Dec 10 21:48:15 CET 2013


Hi,

I created a QMake project in Qt Creator and added an external library 
(POCO), autocompletion seem to work, but then when compiling I get the 
error message "fatal error: Poco/File.h: No such file or directory", 
even though QtC picked the right include path automatically. What could 
be the problem and how can I solve this?

I'm on windows 7 64 bit using QtC 3 built on Dec 9 2013 at 04:13:40, 
from revision 674e7c9b0c.
My pro file here below;

*** begin pro file ***
TEMPLATE=app

CONFIG  +=  console

CONFIG  -=  app_bundle

CONFIG  -=  qt

SOURCES  +=  main.cpp

win32:CONFIG(release,  debug|release):  LIBS  +=  -L$$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/  -lPocoFoundation

else:win32:CONFIG(debug,  debug|release):  LIBS  +=  -L$$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/  -lPocoFoundationd

INCLUDEPATH  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/include

DEPENDPATH  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/include

win32-g++:CONFIG(release,  debug|release):  PRE_TARGETDEPS  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/libPocoFoundation.a

else:win32-g++:CONFIG(debug,  debug|release):  PRE_TARGETDEPS  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/libPocoFoundationd.a

else:win32:!win32-g++:CONFIG(release,  debug|release):  PRE_TARGETDEPS  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/PocoFoundation.lib

else:win32:!win32-g++:CONFIG(debug,  debug|release):  PRE_TARGETDEPS  +=  $$PWD/../../Libraries/POCO/v1.4/vc2012-with-odbc/compiled-libs/lib/PocoFoundationd.lib

*** end pro file ***

regards,
dcomptd.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131210/83d9b1d3/attachment.html>


More information about the Qt-creator mailing list