[英]Qt-creator error: C1083: Cannot open include file: 'xxx.h': No such file or directory
I'm creating a qt project using QT-CREATOR and VS c++ compiler on windows OS, 我正在Windows OS上使用QT-CREATOR和VS c ++编译器创建一个qt项目,
the .pro file: .pro文件:
HEADERS = \
mainwindow.h \
myqglwidget.h \
My_CGAL_Config.h \
My_Vertex_base.h \
My_Halfedge_base.h \
My_Face_base.h \
my_polyhedron.h
SOURCES = \
Viewer.cpp \
mainwindow.cpp \
myqglwidget.cpp \
my_polyhedron.cpp
INCLUDEPATH += .
INCLUDEPATH += C:/dev/CGAL-4.9/auxiliary/gmp/include
INCLUDEPATH += C:/dev/CGAL-4.9/include
INCLUDEPATH += C:/local/boost_1_59_0
INCLUDEPATH += C:/dev/libQGLViewer-2.7.1/QGLViewer
LIBS += -LC:/dev/CGAL-4.9/lib
LIBS += -LC:/local/boost_1_59_0/lib
LIBS += -LC:/dev/libQGLViewer-2.7.1/QGLViewer -lQGLViewer2
'qglviewer.h','config.h' are in specified folders (C:/dev/libQGLViewer-2.7.1/QGLViewer , C:\\dev\\CGAL-4.9\\include\\CGAL) Respectively, so I think that the problem in warning message "The build directory needs to be at the same level as the source directory." 'qglviewer.h','config.h'分别位于指定的文件夹(C:/dev/libQGLViewer-2.7.1/QGLViewer,C:\\ dev \\ CGAL-4.9 \\ include \\ CGAL)中,所以我认为是问题所在在警告消息“构建目录必须与源目录处于同一级别”中。
the compile output message : 编译输出消息:
Error while building/deploying project dr_mine (kit: Desktop Qt 5.7.1 MSVC2013 64bit)
The kit Desktop Qt 5.7.1 MSVC2013 64bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
I appreciate any help , thanks 感谢您的帮助,谢谢
The warning 'The build directory needs to be at the same level as the source directory' means that your build directory should found near the source eg.: 警告“构建目录必须与源目录处于同一级别”意味着您的构建目录应位于源附近,例如:
c:\rootDir\src
c:\rootDir\build
I guess your Qt-installation isn't correctly installed. 我猜您的Qt安装没有正确安装。 In a first instance, I should take a look at:
首先,我应该看一下:
https://forum.qt.io/topic/56437/how-to-fix-error-while-building-deploying-project/6 https://forum.qt.io/topic/56437/how-to-fix-error-while-building-deploying-project/6
or google for 或google for
Error while building/deploying project
建立/部署专案时发生错误
to find similar post. 查找类似的帖子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.