Qt-creator 错误: C1083: 无法打开包含文件: 'xxx.h': 没有这样的文件或目录
Qt-creator error: C1083: Cannot open include file: 'xxx.h': No such file or directory
我在Windows OS上使用QT-CREATOR和VS C 编译器创建QT项目,
.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'在指定文件夹中(c:/dev/libqglviewer-2.7.7.1/qglviewer,c: dev dev cgal-4.9 cgal(,分别为因此,我认为警告消息中的问题"构建目录必须与源目录处于同一级别。"
编译输出消息:
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"
我感谢任何帮助,谢谢
警告'构建目录需要与源目录相同的级别,这意味着您的构建目录应在源附近找到:
c:rootDirsrc
c:rootDirbuild
我想您的QT安装未正确安装。首先,我应该看看:
https://forum.qt.io/topic/56437/how-to-to-fix-error-while-while-building-deploying-project/6
或Google
构建/部署项目时错误
找到类似的帖子。
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 文本文件中的单词链表
- CMake-按正确顺序将项目与C运行时对象文件链接
- 使用新行和不使用新行读取文件
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 挂起和取消挂起一个文件DLL
- 如何确定我已使用非编码文件到达 EOF?
- 命名空间中具有.h和.cpp文件的类
- 如何使用ndk-build.cmd构建Android.so文件
- 从包含m行的文件中提取n行,必要时(惰性地)重复该文件
- 读取文件并输入到矢量中
- 在C++中查找文件
- c++库的公共头文件中应该包含什么
- 用c++从输入文件中读取另一行
- pybind11:属性错误:尝试从 py 文件运行函数时,模块'XXX'没有属性'YYY'
- lnk1114无法覆盖原始文件"xxx.lib",错误代码32
- Qt-creator 错误: C1083: 无法打开包含文件: 'xxx.h': 没有这样的文件或目录
- xxx.h:致命错误 C1083:无法打开包含文件:"yyyy.h":没有此类文件或目录
- 如何使用两个预编译的头文件.一个用于托管代码,另一个用于非托管代码.xxx.PCH不是一个有效的预编译头文件