Qt-creator错误:C1083:无法打开包含文件:'xxx.h':没有这样的文件或目录

时间:2018-02-18 10:27:02

标签: c++ qt-creator cgal

我在Windows操作系统上使用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

the errors:

'qglviewer.h','config.h'在指定的文件夹中(C:/dev/libQGLViewer-2.7.1/QGLViewer,C:\ dev \ CGAL-4.9 \ include \ 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"

我感谢任何帮助,谢谢

1 个答案:

答案 0 :(得分:0)

警告'构建目录需要与源目录处于同一级别'意味着您的构建目录应该在源代码附近找到,例如:

c:\rootDir\src

c:\rootDir\build

我猜你的Qt安装没有正确安装。首先,我应该看看:

https://forum.qt.io/topic/56437/how-to-fix-error-while-building-deploying-project/6

或google for

  

构建/部署项目时出错

找到类似的帖子。