Qt error : cannot find -lGL and Linux dependency problems
来源:互联网 发布:macbook完全卸载mysql 编辑:程序博客网 时间:2024/05/16 10:23
first use Qt in Linux
Problem 1:error: cannot find -lGL
Solution:
sudo apt-get install libqt4-dev or
sudo apt-get install libgl1-mesa-dev or
libglu1-mesa-dev
Problem 2:when I install the libqt4-dev or libgl1-mesa-dev,has error:
E: Unable to correct problems, you have held broken packages.
solution : use the aptitude to manage packages .
then : sudo apt-get install aptitude
but the same error has occured.
# sudo apt-get install aptitudeReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: aptitude : Depends: libcwidget3 but it is not going to be installed Depends: libsigc++-2.0-0c2a (>= 2.2.0) but it is not going to be installedE: Unable to correct problems, you have held broken packages.
for the libcwidget3 , libsigc++2.0-0c2a is not installed,so use :
apt-get install libcwidget3
then :
The following packages have unmet dependencies: libcwidget3 : Depends: libsigc++-2.0-0c2a (>= 2.2.0) but it is not going to be installedE: Unable to correct problems, you have held broken packages.
so I use the apt-get install libsigc++-2.0-0c2a to install it first
and then
apt-get install libcwidget3
apt-get install aptitude
the aptitude has been installed.
next , use the aptitude install the libgl1-mesa-dev:
aptitude install libgl1-mesa-dev
then
Accept this solution? [Y/n/q/?] nThe following actions will resolve these dependencies: Remove the following packages: 1) libdrm-amdgpu1 2) libgles1-mesa 3) libgles2-mesa 4) mesa-vdpau-drivers 5) phonon-backend-vlc 6) vdpau-driver-all 7) vlc Install the following packages: 8) libegl1-mesa-drivers [10.3.2-1 (kali-current)] 9) libllvm3.5 [1:3.5-10 (kali-current)] 10) libopenvg1-mesa [10.3.2-1 (kali-current)] 11) phonon-backend-null [4:4.8.0-4 (kali-current)] Downgrade the following packages:
there are some solutions to resolve the dependencies…choose one ..
and then ..
- Qt error : cannot find -lGL and Linux dependency problems
- QT编译错误 error: cannot find -lGL
- QT cannot find -lGL
- Qt:cannot find -lGL
- linux--安装完qt出现 /usr/bin/ld: error: cannot find -lGL错误
- Qt报错 /usr/bin/ld: error: cannot find -lGL
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- Ubuntu安装完Qt后报错error: cannot find -lGL解决办法
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- Ubuntu Qt 报错error: cannot find -lGL解决办法
- CentOS遇到Qt编译问题(error: cannot find -lGL)
- QT5 error: cannot find -lGL
- linux下Qt cannot find -lGL错误的解决方法
- linux下编译Qt程序出现 cannot find –lGL
- 【Qt】Centos7 qt出现cannot find -lGL
- Ubuntu Qt出现cannot find -lGL解决
- Qt错误:cannot find -lGL解决方法
- qt /usr/bin/ld: cannot find -lGL
- 一次web访问背后的整个过程
- 初探JavaScript(一)——也谈元素节点、属性节点、文本节点
- Android学习笔记(二)
- html转义字符
- sublime 快捷键
- Qt error : cannot find -lGL and Linux dependency problems
- EditText布局
- Android APP性能优化技巧
- ubuntu首次登陆root
- 33、闭包
- 使用css去除网页中存在的特殊默认样式
- 认识DOM的三大节点:元素节点,文本节点,属性节点以及nodeName,nodeType,nodeValue的区别
- easyUI中文乱码
- JS中如何输出空格