Qt5.8 for arm:Could not open egl display
-
When I said to share your layer I meant a layer u have created not bblayers.conf but nvm I see there isn't one.
So u did
DISTRO_FEATURES_append = " opengl" IMAGE_INSTALL_append = " \ libgal-mx6 \ libegl-mx6 \ libvsc-mx6 \ libglslc-mx6 \ libgles2-mx6 \ "
And you still getting "Could not open egl display" error?
Then I don't know what could be, maybe these are not the right packages for ur platform.
Btw, you are using b2qt so I guess that u have a Qt commercial license. I'm sure u also have a hotline to contact Qt, you should ask them for help.
I'm sorry I could not have helped you. -
@hflw said in Qt5.8 for arm:Could not open egl display:
Yes,the error still exists,the config DISTRO_FEATURES_append and IMAGE_INSTALL_append dont work. I don't have a Qt commercial license.Maybe I need to analyse the Qt source.
I would try first to prove that your GPU is "enabled", and by this I mean to run an OpenGL application and check that you effectively have the right packages. After proving that you gpu is working then you should look why the Qt application is failing.
Btw, did you tried to install this package?
qtbase-examples
Do it if you haven't and try to run your qt application after that. It will install all the missing dependencies, this is how I discovered my missing packages.
-
@aV_V Studying code makes me headache.I almost lost my confidence.Do u have an OpenGL application?
I find the key "qtbase" in the folder ipk:
./cortexa9hf-neon-mx6qdl/qtbase-plugins_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-tools_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-dbg_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-doc_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-mkspecs_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-dev_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-lic_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk ./cortexa9hf-neon-mx6qdl/qtbase-staticdev_5.8.0+git0+49dc9aa409-r0_cortexa9hf-neon-mx6qdl.ipk
no "qtbase-examples",So i add "qtbase-examples" to IMAGE_INSTALL_append in local.conf,But when bitbake,the error:
Couldn't find anything to satisfy 'qtbase-examples'
May I know your Yocto Version?
-
please do:
root@YOURBOARD: apt-get update
root@YOURBOARD: apt-get upgrade
root@YOURBOARD: apt-cache search qt5 (here is list of cached modules)
root@YOURBOARD: apt-get install qt5-default
.....
root@YOURBOARD: apt-get install all_needed_modulesshould working
-
the apt-get don't have source list. do you know the source address?
-
sorry , i don't know
-
I'm sorry for the absence, was busy.
@hflw said in Qt5.8 for arm:Could not open egl display:
no "qtbase-examples",So i add "qtbase-examples" to IMAGE_INSTALL_append in local.conf,But when bitbake,the error:
Couldn't find anything to satisfy 'qtbase-examples'
Do
PACKAGECONFIG_append_pn-qtbase = " examples" IMAGE_INSTALL_append = " qtbase-examples"
To debug Qt backends is better to use this:
export QT_QPA_DEBUG=1 export QT_LOGGING_RULES="qt.qpa.*=true"
Regards.
-
@aV_V ,I add examples,but still don't work,below is debug info:
root@b2qt-imx6dlsabresd:~# ./qqc2a QML debugging is enabled. Only use this in a safe environment. qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_viv") qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_viv") qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_viv" qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_viv" 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 (core dumped)