针对你遇到的编译错误 error: cannot find -lgl: no such file or directory,我们可以按照以下步骤进行排查和解决: 1. 确认-lgl库的含义和用途 -lgl 是一个链接器(linker)选项,用于指示编译器在链接阶段查找名为 libgl.so(在Linux系统下,动态库通常以 lib 前缀和 .so 后缀命名)或 libgl.a(静态库通常以 ....
错误信息如下: /home/Qt5.6.3/5.6.3/gcc_64/include/QtGui/qopengl.h:136: error: GL/gl.h: No such file or directory include <GL/gl.h> ^ 1 2、原因分析 说明系统里面缺少OpenGl库 3、解决方法 sudo apt-get install mesa-common-dev 再次执行,又报错:cannot find -lGL sudo apt-get install l...
/usr/bin/ld: cannot find -lGL: No such file or directory solution: sudo apt install mesa-common-dev libglu1-mesa-dev 1. It works. c++ - /usr/bin/ld: cannot find -lGL (Ubuntu 14.04) - Stack Overflow
GL/gl.h: No such file or directory # include <GL/gl.h> 原因是没有安装opengl库,终端执行命令: sudo apt-get install mesa-common-dev 再次运行程序,上面的错误消失但随之而来另一个错误: cannot find -lGL collect2: error: ld returned 1 exit status 再执行命令: sudo apt-get install libgl1-mesa...
1、问题描述 QtCreator第一次编译时,报错GL/gl.h: No such file or directory 错误信息如下: /home/Qt5.6.3/5.6.3/gcc_64/include/QtGui/qopengl.h:136: error: GL/gl.h: No such file or directory include <GL/gl.h> ^ 1 2、原因分析 ...
export PATH QTDIR MANPATH LD_LIBRARY_PATH unset USERNAME Qt调试 Qt: XKEYBOARD extension not present on the X server. process 13438: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open “/var/lib/dbus/machine-id”: No such file or directory See th...
ERROR: Unable to create '/usr/lib/nvidia/libGLcore.so.169.12' for copying (No such file or directory) WARNING: Unable to restore file '/usr/lib/nvidia/libGLcore.so.169.12'. ERROR: Unable to create '/usr/lib/nvidia/libcuda.so.169.12' for copying (No such file or ...
Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 SaddamBInSyedcommentedJan 27, 2020 @dusty-nvcould you please advise about the below error.? /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status ...
在ubuntu下使用Qt 编译时候遇上了cannot find -lGL错误,使用命令 sudo apt-get install libqt4-dev 可以解决问题
error: GL/gl.h: No such file or directory Solution:sudo apt-get install mesa-common-dev 在linux下,只要装了Mesa和freeglut就可以了。 首先需要安装OpenGL的开发环境。现在Linux下有很多OpenGL的实现,Fedora 7(本人使用CentOS6.5,下同)中已经附带了Mesa,这是OpenGL一个开源的实现。安装Fedora时如果选中了开发...