您的位置:首页 > 编程语言 > Qt开发

编译qt5

2015-09-29 09:37 99 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: