编译qt5
来源:互联网 发布:nginx 取header 编辑:程序博客网 时间:2024/05/16 05:39
1 Mesa-10.3.5
#arm-linux
CC=/opt/arm-4.8.1/bin/arm-none-linux-gnueabi-gcc CXX=/opt/arm-4.8.1/bin/arm-none-linux-gnueabi-g++ ./configure --prefix=/Mesa --target=arm-linux --host=arm-linux --enable-gles2 --enable-gles1 --disable-glx --enable-egl --disable-dri --enable-shared-glapi --with-egl-platforms=fbdev --with-dri-drivers=swrast
---- configure: error: Package requirements (libdrm_radeon >= 2.4.56) were not met:
Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52
安装libdrm-2.4.58
CC=/opt/Sourcery_G++_Lite4.5.1/bin/arm-none-linux-gnueabi-gcc ./configure --host=arm-linux
-----configure: error: Package requirements (pciaccess >= 0.10) were not met:
No package 'pciaccess' found
安装 sudo apt-get install libpciaccess-dev
------CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/桌面/Mesa-10.3.5/bin/missing aclocal-1.14 -I m4
/root/桌面/Mesa-10.3.5/bin/missing: 行 81: aclocal-1.14: 未找到命令
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] 错误 127
解决方法 sudo autoreconf -ivf
--------./configure: line 6427: syntax error near unexpected token `2.2'
./configure: line 6427: `LT_PREREQ(2.2)'
解决方法:1 apt-get libtool 2 把源文件目录清空,build目录也清空,重新解压,重新配置编译就行。
/*
automake >= 1.11.1 (AM_INIT_AUTOMAKE([1.11.1])) (or 1.10.3, Automake < 1.10.3 and 1.11 are known to be suffering fromcritical security issues)
autoconf >= 2.64 (AC_PREREQ(2.64))
libtool >= 2.2.6 (LT_PREREQ([2.2.6]))
intltool >= 0.40.0 (IT_PROG_INTLTOOL([0.40.0]))
*/
---------/bin/bash: yacc: 未找到命令
make[2]: *** [../../src/mesa/program/program_parse.tab.c] 错误 127
make[2]:正在离开目录 `/root/桌面/Mesa-10.3.5/src/mesa'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/桌面/Mesa-10.3.5/src'
make: *** [all-recursive] 错误 1
解决方法yacc和lex在ubuntu使用flex和bison代替,此处安装bison就是安装yacc 执行命令 : $sudo apt-get install bison $sudo apt-getinstall flex
2 Qt5.3.1
qmake.conf文件添加
QMAKE_INCDIR_OPENGL_ES2 += /Mesa/include //opengl头文件路径
QMAKE_LIBDIR_OPENGL_ES2 += /Mesa/lib //opengl库文件路径
QMAKE_LIBS_OPENGL_ES2 += -ldrm -lglapi //libGLESv2.so调用的库文件
./configure -prefix /qt5.3.1c++11openGL/ -release -opensource -qt-libpng -qt-zlib -qt-libjpeg -plugin-sql-sqlite -widgets -qt-sql-sqlite -make libs -no-cups -no-nis -no-iconv -no-dbus -no-openssl -no-iconv -no-sse2 -xplatform linux-arm-gnueabi-g++ -nomake tools -nomake examples -nomake tests -no-icu -opengl es2 -no-glib -no-icu -strip -linuxfb -confirm-license -v
---编译qtweb时找不到uchar.h修改pro文件,进入qttools目录make all
./configure -prefix /qt5.3.1c++11OpenGL/ -release -opensource -qt-libpng -qt-zlib -qt-libjpeg -plugin-sql-sqlite -widgets -qt-sql-sqlite -make libs -no-cups -no-nis -no-iconv -no-dbus -no-openssl -no-iconv -no-sse2 -xplatform linux-arm-gnueabi-g++ -nomake tests -no-icu -opengl es2 -no-glib -no-icu -strip -linuxfb -confirm-license -v
#arm-linux
CC=/opt/arm-4.8.1/bin/arm-none-linux-gnueabi-gcc CXX=/opt/arm-4.8.1/bin/arm-none-linux-gnueabi-g++ ./configure --prefix=/Mesa --target=arm-linux --host=arm-linux --enable-gles2 --enable-gles1 --disable-glx --enable-egl --disable-dri --enable-shared-glapi --with-egl-platforms=fbdev --with-dri-drivers=swrast
---- configure: error: Package requirements (libdrm_radeon >= 2.4.56) were not met:
Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52
安装libdrm-2.4.58
CC=/opt/Sourcery_G++_Lite4.5.1/bin/arm-none-linux-gnueabi-gcc ./configure --host=arm-linux
-----configure: error: Package requirements (pciaccess >= 0.10) were not met:
No package 'pciaccess' found
安装 sudo apt-get install libpciaccess-dev
------CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/桌面/Mesa-10.3.5/bin/missing aclocal-1.14 -I m4
/root/桌面/Mesa-10.3.5/bin/missing: 行 81: aclocal-1.14: 未找到命令
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] 错误 127
解决方法 sudo autoreconf -ivf
--------./configure: line 6427: syntax error near unexpected token `2.2'
./configure: line 6427: `LT_PREREQ(2.2)'
解决方法:1 apt-get libtool 2 把源文件目录清空,build目录也清空,重新解压,重新配置编译就行。
/*
automake >= 1.11.1 (AM_INIT_AUTOMAKE([1.11.1])) (or 1.10.3, Automake < 1.10.3 and 1.11 are known to be suffering fromcritical security issues)
autoconf >= 2.64 (AC_PREREQ(2.64))
libtool >= 2.2.6 (LT_PREREQ([2.2.6]))
intltool >= 0.40.0 (IT_PROG_INTLTOOL([0.40.0]))
*/
---------/bin/bash: yacc: 未找到命令
make[2]: *** [../../src/mesa/program/program_parse.tab.c] 错误 127
make[2]:正在离开目录 `/root/桌面/Mesa-10.3.5/src/mesa'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/桌面/Mesa-10.3.5/src'
make: *** [all-recursive] 错误 1
解决方法yacc和lex在ubuntu使用flex和bison代替,此处安装bison就是安装yacc 执行命令 : $sudo apt-get install bison $sudo apt-getinstall flex
2 Qt5.3.1
qmake.conf文件添加
QMAKE_INCDIR_OPENGL_ES2 += /Mesa/include //opengl头文件路径
QMAKE_LIBDIR_OPENGL_ES2 += /Mesa/lib //opengl库文件路径
QMAKE_LIBS_OPENGL_ES2 += -ldrm -lglapi //libGLESv2.so调用的库文件
./configure -prefix /qt5.3.1c++11openGL/ -release -opensource -qt-libpng -qt-zlib -qt-libjpeg -plugin-sql-sqlite -widgets -qt-sql-sqlite -make libs -no-cups -no-nis -no-iconv -no-dbus -no-openssl -no-iconv -no-sse2 -xplatform linux-arm-gnueabi-g++ -nomake tools -nomake examples -nomake tests -no-icu -opengl es2 -no-glib -no-icu -strip -linuxfb -confirm-license -v
---编译qtweb时找不到uchar.h修改pro文件,进入qttools目录make all
./configure -prefix /qt5.3.1c++11OpenGL/ -release -opensource -qt-libpng -qt-zlib -qt-libjpeg -plugin-sql-sqlite -widgets -qt-sql-sqlite -make libs -no-cups -no-nis -no-iconv -no-dbus -no-openssl -no-iconv -no-sse2 -xplatform linux-arm-gnueabi-g++ -nomake tests -no-icu -opengl es2 -no-glib -no-icu -strip -linuxfb -confirm-license -v
0 0
- 编译qt5
- Qt5.0编译
- 编译Qt5 Alpha中。。。
- QT5 Alpha WINDOWS编译
- vs2010编译Qt5.0
- vs2012编译qt5.0.1
- MSVN2010 QT5 编译
- Qt5编译Qt4工程
- VC12 编译Qt5.2
- QT5.2.1 Poppler编译
- 交叉编译qt5.3.2
- 编译poppler-qt5
- qt5 everywhere 编译summary
- OSG+QT5+vs2010编译
- qt5.5.1交叉编译
- OSG+QT5+vs2010编译
- Qt5.5.0编译QtAV
- qt5静态编译
- ios开发——日常之ARC与非ARC的转化
- maven聚合模式下循环依赖如何打包
- jQuery获取动态添加的元素,live和on的区别
- jQuery 中的防冲突(noConflict)机制
- 字符串截取函数
- 编译qt5
- 很好看懂的svm理解
- asp.net Web项目中使用Log4Net进行错误日志记录
- C++ ofstream和ifstream函数详细用法
- 滚动加载(ajax)内容添加事件 && jQuery.on() 函数详解
- 采用opencv_cascadetrain进行训练的步骤及注意事项
- jQuery中removeClass()方法用法实例
- **LeetCode-Course Schedule
- 百度面试总结