AnsweredAssumed Answered

How to use qt5.9.2 with imx6sl gpu

Question asked by Hou Yong on Sep 26, 2019
Latest reply on Sep 26, 2019 by Yuri Muhin

1. I built qt5.9.2 with following configure:

 

./configure \
-prefix /usr/local/qt5.9.2-imx6sl \
-extprefix /home/neo/Qt5.9.2/5.9.2/imx6 \
-device linux-imx6-g++ \
-device-option CROSS_COMPILE=$CROSSPREFIX \
-sysroot /opt/fsl-imx6-x11/4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/ \
-nomake tests \
-nomake examples -v

 

2. Put the compiled libraries into device file system: /usr/local/qt5.9.2-imx6sl

3. 忘记从哪里下载的vivante_dri.so库放到了/usr/lib/dri目录,这个库找不到源码,只能下载二进制的,还有一个叫kms_swrast_dri.so的库没找到

4. Run Qt applicantion with follow environment:

export DISPLAY=:0.0
export QT_QPA_FONTDIR=/app/head_lib_qt/fonts
export QTDIR=/usr/local/qt5.9.2-imx6sl
export PATH=$QTDIR:$QTDIR/bin:$PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
export LD_LIBRARY_PATH=$QTDIR:$QTDIR/lib/:$QT_QPA_PLATFORM_PLUGIN_PATH:$QT_QPA_FONTDIR:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM=eglfs

 

最后qt应用加载库的时候有报错:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_viv"
gbm: driver exports no extensions (/usr/lib/dri/vivante_dri.so: undefined symbol: __driDriverExtensions)failed to load driver: vivante
failed to bind extensions
failed to load driver: kms_swrast
EGL library doesn't support Emulator extensions
Aborted

 

麻烦帮忙回答一下,多谢!

Outcomes