[Qt-creator] include error in Windows
Freddy Martinez Garcia
freddy311082 at gmail.com
Fri Aug 1 05:21:44 CEST 2014
hi guys
i'm not a windows user, but I'm making a deploy over Windows and my application does not compile because QtCreator does not find the includes directories
in my .pro I have:
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
SOURCES += main.cpp
INCLUDEPATH += c:\mongolib\include
LIBS += c:\mongolib\lib\libmongoclient.lib
in my main.cpp i have
#include <iostream>
#include "mongo/client/dbclient.h"
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
my directory tree look like:
c:\mongolib\include
c:\mongolib\lib\libmongoclient.lib
and QtCreator say:
00:17:13: Running steps for project untitled1...
00:17:13: Configuration unchanged, skipping qmake step.
00:17:13: Starting: "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe"
C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\untitled1.pdb -DUNICODE -DWIN32 -I"." -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\freddy\AppData\Local\Temp\main.obj.3336.16.jom
main.cpp
..\untitled1\main.cpp(2) : fatal error C1083: Cannot open include file: 'mongo/client/dbclient.h': No such file or directory
jom: C:\qt-projects\build-untitled1-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile.Debug [debug\main.obj] Error 2
jom: C:\qt-projects\build-untitled1-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile [debug] Error 2
00:17:14: The process "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.3 MSVC2012 OpenGL 32bit)
When executing step 'Make'
00:17:14: Elapsed time: 00:01.
I don't understand why QtCreator doesn't find the include directory...
I'm using Qt5.3.1 for Windows with Visual Studio 2012.
best regards
freddy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140801/ccff7a91/attachment.html>
More information about the Qt-creator
mailing list