How to use qt5.9.2 with imx6sl gpu

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use qt5.9.2 with imx6sl gpu

455 Views
houyong
Contributor III

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

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

Labels (1)
0 Kudos
1 Reply

230 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

   Looks like the main problem here is the fact, that i.MX 6SL does not support 3D GPU.

How to enable graphics acceleration on iMX6SL (Buildroot + QT5) 

How to enable graphics acceleration on iMX6SL (Buildroot + QT5)? 

https://community.nxp.com/message/975773 

Regards,

Yuri.

0 Kudos