ubuntu下编译源码级QT
2014-09-24 10:50
405 查看
注意必须好好看官方文档:
http://qt-project.org/doc/qt-5/linux.html
包括编译Qt库依赖的包等等。
编译过程中发现以下错误:
All the OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL
因为我在./configure的时候传递了-opengl的参数,而qt的gl模块我必须用到,不能取消这个参数躲过这个问题,而好好看了下文档,才解决的。它依赖于gl的开发包才能编译这个gl模块了。
以下链接给出了解释:
http://www.qtcentre.org/threads/17926-configure-Qt-with-opengl-on-Ubuntu-8-10
我开始没确定我的ubuntu 12.04有没有libgl1-mesa-dev 和libglu1-mesa-dev这两个gl的开发包,所以直接在源中搜索了一下
sudo apt-cache search libgl | grep dev
果然有,然后apt-get install 这两个包就行了,然后再configure,上面的错误就消失了。
http://qt-project.org/doc/qt-5/linux.html
包括编译Qt库依赖的包等等。
编译过程中发现以下错误:
All the OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL
因为我在./configure的时候传递了-opengl的参数,而qt的gl模块我必须用到,不能取消这个参数躲过这个问题,而好好看了下文档,才解决的。它依赖于gl的开发包才能编译这个gl模块了。
以下链接给出了解释:
http://www.qtcentre.org/threads/17926-configure-Qt-with-opengl-on-Ubuntu-8-10
我开始没确定我的ubuntu 12.04有没有libgl1-mesa-dev 和libglu1-mesa-dev这两个gl的开发包,所以直接在源中搜索了一下
sudo apt-cache search libgl | grep dev
果然有,然后apt-get install 这两个包就行了,然后再configure,上面的错误就消失了。
相关文章推荐
- 在Ubuntu下编译WebKit源码--qt
- ubuntu 编译vlc源码中自带的Qtplayer编译问题
- ubuntu编译Qt 4.8源码包
- 在Ubuntu下编译WebKit源码--qt
- Ubuntu 14.04 LTS + Qt 5.2.1 源码编译搭建环境
- Linux/Ubuntu下编译Qt4.8.2源码
- Ubuntu下从源码编译比特币qt客户端(Bitcoin-qt)教程
- ubuntu 10.04 下编译 qt 4.7 beta2 源代码
- AMD64位ubuntu9.04下编译Android源码
- Ubuntu 安装texlive 并源码编译安装texworks lyx
- ubuntu 10.04 下编译 qt 4.7 beta2 源代码
- Ubuntu下建立qt4的交叉编译环境
- Ubuntu 10.04 源码编译安装bochs 2.4.5 成功
- ubuntu 9.04 上Android源码编译失败的原因
- android ubuntu9.10 源码的编译 Eclipse工程 Contacts编译 应用加载
- Ubuntu 下编译Android源码全过程
- ubuntu9.04下编译android源码遇到的问题
- Ubuntu 8.04下编译Android源码全过程
- Ubuntu下编译Android源码
- Ubuntu 8.04下编译Android源码全过程