在线时间2 小时
UID2082398
注册时间2015-8-13
NXP金币0
该用户从未签到
新手上路

- 积分
- 18
- 最后登录
- 2016-3-1
|
编译Imx6 qt5。
使用L3.0.35_4.1.0_130816_source。
按照文档”Building QT for i.MX6“,”http://community.freescale.com/docs/DOC-94066“。
编译时提示
”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
QM***E_INCDIR_OPENGL_ES2, QM***E_LIBDIR_OPENGL_ES2 and QM***E_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,
添加了
QM***E_INCDIR_OPENGL_ES2 += /home/work/ltib/ltib/rootfs/usr/include
QM***E_LIBDIR_OPENGL_ES2 += /homw/work/ltib/ltib/rootfs/usr/lib
QM***E_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 \
最佳答案
先前我也遇到這個問題,請在該qmake.conf檔案中,
確認一下有沒有,以下兩個參數及路徑
QM***E_INCDIR += [rootfs patch]/usr/include
QM***E_LIBDIR &nbs ...
|
评分
-
查看全部评分
|