编译Imx6 qt5。
使用L3.0.35_4.1.0_130816_source。
按照文档”Building QT for i.MX6“。
编译时提示
”You have already accepted the terms of the Open Source license.
<srcbase> = /home/work/qt5/qtbase
<outbase> = /home/work/qt5/qtbase
Creating qmake...
.Done.
Running configuration tests...
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
The OpenGL ES 2.0 functionality test failed!
Use of pkg-config is not enabled, maybe you want to pass -force-pkg-config?
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/home/work/qt5/qtbase/mkspecs/devices/linux-imx6-g++.
“
我从L3.0.35_4.1.0_130816_source里面找到gpu-viv-bin-mx6q-3.0.35-4.1.0,
找出里面的so和include 文件,放到rootfs/usr/.
同时修改了 /home/work/qt5/qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf,
添加了
QMAKE_INCDIR_OPENGL_ES2 += /home/work/ltib/ltib/rootfs/usr/include
QMAKE_LIBDIR_OPENGL_ES2 += /homw/work/ltib/ltib/rootfs/usr/lib
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
但是还是提示这个问题。
configure是:
./configure -opensource -confirm-license -make libs -device imx6 \
-device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \
-no-pch -no-opengl -no-icu -no-c++11 \
-opengl es2 \
-eglfs \
-compile-examples \ |