Qt5_CinematicExperience -platform eglfs
result:
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
Could not open egl display
then i set FB_MULTI_BUFFER=2 or QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
result:
root@imx6qsabresd:~# Qt5_CinematicExperience -platform eglfs
Could not open egl display
/usr/bin/Qt5_CinematicExperience: line 4: 432 Aborted /usr/share/cinematicexperience-1.0/Qt5_CinematicExperience $*
root@imx6qsabresd:~#
kernel:3.14.28
已解决! 转到解答。
can you show full error log?
i make some changes to unify my scripts
#!/bin/sh
fb=/dev/fb$1
export QT_QPA_FONTDIR=/usr/share/fonts/
export QT_QPA_EGLFS_FORCEVSYNC=1
export QT_QPA_EGLFS_HIDECURSOR=1
export QT_QPA_EGLFS_FB=$fb
export FB_FRAMEBUFFER_0=$fb
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
export QT_QPA_PLATFORM=eglfs
export LANG=ru_RU.UTF-8
/path/to/program
now to start program on some display you can set framebuffer number
script.sh 2 &
before your script
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
Could not open egl display
Aborted
after yourscript
Could not open egl display
Aborted
for you my script whill be
#!/bin/sh
fb=/dev/fb0
export QT_QPA_FONTDIR=/usr/share/fonts/
export QT_QPA_EGLFS_FORCEVSYNC=1
export QT_QPA_EGLFS_HIDECURSOR=1
export QT_QPA_EGLFS_FB=$fb
export FB_FRAMEBUFFER_0=$fb
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
export QT_QPA_PLATFORM=eglfs
export LANG=ru_RU.UTF-8
/path/to/program
show output of this command
cat /sys/class/graphics/fb0/mode
can you show tree under /usr/lib/qt/plugins/egldeviceintegrations
mine is
# cd /usr/lib/qt/plugins/egldeviceintegrations
# tree
.
|-- libqeglfs-kms-egldevice-integration.so
`-- libqeglfs-kms-integration.so0 directories, 2 files
must there be a libqeglfs_viv something like that? do I have missing file here?
I am using buildroot, I select imx-gpu-viv and qt5 egl support. however egl vivante integration is missing. I gues there is bug on integration of vivante for buildroot.
thank you Andrey
#!/bin/sh
export QT_QPA_EGLFS_FB=/dev/fb0
export FB_FRAMEBUFFER_0=/dev/fb0
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
export QT_QPA_EGLFS_FORCEVSYNC=1
export QT_QPA_PLATFORM=eglfs
/home/root/program &
work for me now
i have the same error, build yocto image jethro + Qt make start script
root@imx6qsabreauto:~# cat /bin/start.sh
#!/bin/sh
export LD_LIBRARY_PATH=/usr/lib
export QML_IMPORT_PATH=/usr/lib/qt5/qml
export QML2_IMPORT_PATH=/usr/lib/qt5/qml
export QT_QPA_PLATFORM_PLUGIN_PATH=/lib/qt5/plugins/platforms
export QT_QPA_EGLFS_PHYSICAL_WIDTH=1920
export QT_QPA_EGLFS_PHYSICAL_HEIGTH=1080
export QT_QPA_PLATFORM=eglfs
#export QT_QPA_EGLFS_FB=/dev/fb2
#export FB_FRAMEBUFFER_0=/dev/fb2
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
export DISPLAY=:0.0
Qt5_CinematicExperience
and still have same error
root@imx6qsabreauto:~# start.sh
Could not open egl display
/bin/start.sh: line 12: 458 Aborted Qt5_CinematicExperience