[i.MX] imx6 qt5编译出错“ QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2"

[复制链接]
 楼主| dayuan_123456 发表于 2015-8-13 15:28 | 显示全部楼层 |阅读模式
编译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 \
cowboy2014 发表于 2015-8-13 20:27 | 显示全部楼层
能不能把makefile贴出来看看
firstm 发表于 2015-8-14 08:45 | 显示全部楼层
configure里要加上 -sysroot <dir>

-sysroot <dir> ...... Sets <dir> as the target compiler's and qmake's sysroot and also sets pkg-config paths.
mini1986 发表于 2015-8-19 11:03 | 显示全部楼层
关注一下,学习学习......
 楼主| dayuan_123456 发表于 2015-9-24 13:19 | 显示全部楼层
是/home/work/qt5/qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf,没写对。没添加rootfs.
xishanggongzi 发表于 2015-10-22 16:29 | 显示全部楼层
楼主怎么解决的?
xuelijiu 发表于 2017-7-7 16:07 | 显示全部楼层
老哥,情况怎么样啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

34

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

6

主题

34

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部