Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Qtcreator当make完成时出错#包括<;QGLViewer/QGLViewer.h>;没有此类型的文件或文件夹_C++_Ubuntu_Makefile_Qt Creator - Fatal编程技术网

C++ Qtcreator当make完成时出错#包括<;QGLViewer/QGLViewer.h>;没有此类型的文件或文件夹

C++ Qtcreator当make完成时出错#包括<;QGLViewer/QGLViewer.h>;没有此类型的文件或文件夹,c++,ubuntu,makefile,qt-creator,C++,Ubuntu,Makefile,Qt Creator,我昨天安装了Ubuntu18.04LTS,我正在尝试在QtCreator上运行一个示例。 当我在文件中执行qmake时,他生成makefile,但当我执行此操作时,会发生以下错误: (Aucun fichier ou dossier de ce type->无此类型的文件或文件夹) g++-c-pipe-O2-D_可重入式-Wall-W-fPIC-DQT_NO_DEBUG-DQT_OPENGL_LIB-DQT_WIDGETS_-GUI_LIB-DQT_XML_LIB-DQT_CORE_LIB-I

我昨天安装了Ubuntu18.04LTS,我正在尝试在QtCreator上运行一个示例。 当我在文件中执行qmake时,他生成makefile,但当我执行此操作时,会发生以下错误:

(Aucun fichier ou dossier de ce type->无此类型的文件或文件夹)

g++-c-pipe-O2-D_可重入式-Wall-W-fPIC-DQT_NO_DEBUG-DQT_OPENGL_LIB-DQT_WIDGETS_-GUI_LIB-DQT_XML_LIB-DQT_CORE_LIB-I.-isystem/usr/include/libdrm-isystem/usr/include/x86_64-linux-gnu/qt5-isystem/usr/include/x86-linux-gnu/qtystem/x86/usr/include/x86_64-linux-gnu/qt5/QtGui-isystem/usr/include/x86_64-linux-gnu/qt5/QtXml-isystem/usr/include/x86_64-linux-gnu/qt5/QtCore-I.-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-o simpleViewer.o simpleViewer.cpp
在simpleViewer.cpp中包含的文件中:23:0:
simpleViewer.h:23:10:致命错误:QGLViewer/QGLViewer.h:Aucun fichier ou docsier de ce type
#包括
^~~~~~~~~~~~~~~~~~~~~~~
编译终止。
Makefile:364:目标“simpleViewer.o”的配方失败
make:**[simpleViewer.o]错误1
当我安装Qtcreator时,我错过了什么吗?我不知道qglviewer.h应该在哪里。。。我是新来的。
(对不起我的英语)

packages.ubuntu.com
说这个文件在
libqglviewer头文件中。您可能还需要实际库的
libqglviewer-dev-qt5
包。@非常感谢您!!!!它工作得很好,你是我的救世主;)
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -isystem /usr/include/libdrm -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o simpleViewer.o simpleViewer.cpp
In file included from simpleViewer.cpp:23:0:
simpleViewer.h:23:10: fatal error: QGLViewer/qglviewer.h: Aucun fichier ou dossier de ce type
 #include <QGLViewer/qglviewer.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:364: recipe for target 'simpleViewer.o' failed
make: *** [simpleViewer.o] Error 1