打印
[i.MX]

imx6 qt5编译出错“ QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2"

[复制链接]
6965|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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 | 只看该作者
关注一下,学习学习......

使用特权

评论回复
5
dayuan_123456|  楼主 | 2015-9-24 13:19 | 只看该作者
是/home/work/qt5/qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf,没写对。没添加rootfs.

使用特权

评论回复
6
xishanggongzi| | 2015-10-22 16:29 | 只看该作者
楼主怎么解决的?

使用特权

评论回复
7
xuelijiu| | 2017-7-7 16:07 | 只看该作者
老哥,情况怎么样啊

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

34

帖子

0

粉丝