编译qt5
2015-09-29 09:37
148 查看
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 from
critical 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-get
install 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 from
critical 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-get
install 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
相关文章推荐
- QT如何设置应用程序的图标
- 【转】QT中QWidget、QDialog及QMainWindow的区别
- QT窗口最小化后,不显示任务栏图标
- vc编译qt的文
- qt创建使用动态链接库
- PyQt4 单击事件
- PyQt4初试
- Qt 对象树 <二>
- [Qt]导入导出Excel
- 自学QT之事件过滤
- 安装XCode7.1后,QT5.5出现的各种问题解决方案
- [Qt] IP地址输入框实现
- [Qt] IP地址输入框实现
- [Qt]No relevant classes found.
- [Qt]No relevant classes found.
- [Qt] CFlip 翻页功能实现
- [Qt] CFlip 翻页功能实现
- [Qt] Mask 蒙版
- [Qt] Mask 蒙版
- [Qt] searchBox 搜索框实现