简体   繁体   English

Qt创建者错误:C1083:无法打开包含文件:'xxx.h':没有此类文件或目录

[英]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

the errors: 错误:

'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.

相关问题 xxx.h:致命错误C1083:无法打开包含文件:'yyyy.h':没有此类文件或目录 - xxx.h: fatal error C1083: Cannot open include file: 'yyyy.h': No such file or directory 无法在QT创建者中打开包含文件pcap.h(C1083) - Cannot open include file pcap.h in QT creator (C1083) Qt Creator C1083:无法打开包含文件:'cstddef':没有这样的文件或目录 - Qt Creator C1083: Cannot open include file: 'cstddef': No such file or directory 错误 C1083 无法打开包含文件:'stdafx.h':没有这样的文件或目录 - Error C1083 Cannot open include file: 'stdafx.h': No such file or directory 错误C1083无法打开包含文件:'vtkGUISupportQtModule.h'不是这样的文件或目录 - Error C1083 cannot open include file: 'vtkGUISupportQtModule.h' not such file or directory 严重错误C1083:无法打开包含文件:'vld.h':没有此类文件或目录 - fatal error C1083: Cannot open include file: 'vld.h': No such file or directory 致命错误 C1083:无法打开包含文件:“xyz.h”:没有这样的文件或目录? - fatal error C1083: Cannot open include file: 'xyz.h': No such file or directory? 错误C1083无法打开包含文件:'IexBaseExc.h':没有此类文件或目录 - Error C1083 Cannot open include file: 'IexBaseExc.h': No such file or directory 错误C1083无法打开包含文件:'vtkGUISupportQtOpenGLModule.h':没有此类文件或目录 - Error C1083 Cannot open include file: 'vtkGUISupportQtOpenGLModule.h': No such file or directory 错误C1083:无法打开包含文件:'stdafx.h':VS 2005中没有此类文件或目录 - error C1083: Cannot open include file: 'stdafx.h': No such file or directory in VS 2005
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM