[Qt-creator] Qt Creator and External Library

Ziller Eike Eike.Ziller at digia.com
Wed Dec 11 10:11:53 CET 2013


On Dec 10, 2013, at 9:48 PM, Comp <dcomptd at gmail.com> wrote:

> 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?

First of all have a look at the actual arguments passed to the compiler, I’d say (—> compile output pane)

++ Eike

> 
> 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.
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Eike Ziller, Senior Software Engineer - Digia, Qt
 
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B




More information about the Qt-creator mailing list