我在windows上使用qt创建者和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.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"我很感谢你的帮助,谢谢
发布于 2018-04-15 09:20:17
警告“构建目录需要与源目录处于同一级别”意味着您的构建目录应该在源代码附近找到,例如:
c:\rootDir\src
c:\rootDir\build我想你的Qt安装没有正确安装。首先,我应该看一看:
https://forum.qt.io/topic/56437/how-to-fix-error-while-building-deploying-project/6
或者谷歌
生成/部署项目时出错
找到类似的职位。
https://stackoverflow.com/questions/48850627
复制相似问题