xserver-xf86-config: Loading glx module
PATCH 1/1 xserver-xf86-config: Loading glx module
From: Sujith H <[email protected]>
This module was required to get opengl working with Qt5 version 5.4 ( when tested with qemuarm and qemux86). After adding this change to the xorg.conf and restarting xserver qtquick and qtdeclarative examples of Qt5 started working appropriately.
--- meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb +7 -0
@@ -17,4 +17,11 @@ do_install () { install -d ${D}/${sysconfdir}/X11 install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ fi + if ${@bb.utils.contains('DISTRO_FEATURES','x11','true','false',d)}; then + cat >> ${D}/${sysconfdir}/X11/xorg.conf << EOF +Section "Module" + Load "glx" +EndSection +EOF + fi }
Signature · 1 line
1.8.4
Quoted 3 lines · Sujith H
+ if
${@bb.utils.contains('DISTRO_FEATURES','x11','true','false',d)}; then
Why would a X11-specific recipe need an X11 feature check?
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb do_install () { · line 24
Quoted 5 lines
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb +4
-0+ cat >> ${D}/${sysconfdir}/X11/xorg.conf << EOF +Section "Module" + Load "glx" +EndSection
But GLX is automatically loaded by the xserver, My test machine doesn't have a xorg.conf and GLX loads on startup. Does your machine configuration ship a xorg.conf?
Ross
Quoted 9 lines · Ross
Quoted 3 lines · Sujith H
+ if
${@bb.utils.contains('DISTRO_FEATURES','x11','true','false',d)}; thenWhy would a X11-specific recipe need an X11 feature check?
Correct, I will remove the x11 feature check from the patch.
Quoted 12 lines
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb do_install () { · line 24
Quoted 7 lines
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb +4
-0+ cat >> ${D}/${sysconfdir}/X11/xorg.conf << EOF +Section "Module" + Load "glx" +EndSectionBut GLX is automatically loaded by the xserver, My test machine doesn't have a xorg.conf and GLX loads on startup. Does your machine configuration ship a xorg.conf?
No, we get the xorg.conf from this same recipe. And while I was testing some opengl related examples from Qt5, I was getting error
saying: "could not initialize glx" . Hence I made a change in the recipe and added IMAGE_INSTALL_append = " xserver-xorg-extension-glx" and it worked fine. Hence I thought of adding this change. Let me know if there is any issues/concern.
Quoted 3 lines
Ross
Signature · 5 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info
Quoted 6 lines · sujith h
saying: "could not initialize glx" . Hence I made a change in the recipe and added
IMAGE_INSTALL_append= " xserver-xorg-extension-glx" and it worked fine. Hence I thought of adding this change. Let me know if there is any issues/concern.Quoted 1 line
Actually installing the GLX module in the image is a prerequisite to loading the module... you don't need to modify the xorg.conf - as I said the GLX module (along with several other modules) are loaded automatically *if present*.
Ross
Quoted 9 lines · Ross
Quoted 6 lines · sujith h
saying: "could not initialize glx" . Hence I made a change in the recipe and added
IMAGE_INSTALL_append= " xserver-xorg-extension-glx" and it worked fine. Hence I thought of adding this change. Let me know if there is any issues/concern.Quoted 1 line
Quoted 5 lines
Actually installing the GLX module in the image is a prerequisite to loading the module... you don't need to modify the xorg.conf - as I said the GLX module (along with several other modules) are loaded automatically *if present*.
Thanks for the clarification. I will check once again by adding glx module to the image and remove the patch and see the result. I will update here.
Quoted 3 lines
Ross
Signature · 5 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info
Quoted 14 lines · sujith h
Quoted 9 lines · Ross
Quoted 6 lines · sujith h
saying: "could not initialize glx" . Hence I made a change in the recipe and added
IMAGE_INSTALL_append= " xserver-xorg-extension-glx" and it worked fine. Hence I thought of adding this change. Let me know if there is any issues/concern.Quoted 1 line
Quoted 9 lines
Quoted 5 lines
Actually installing the GLX module in the image is a prerequisite to loading the module... you don't need to modify the xorg.conf - as I said the GLX module (along with several other modules) are loaded automatically *if present*.
Thanks for the clarification. I will check once again by adding glx module to the image and remove the patch and see the result. I will update here.
Just now I had verified and thanks for the clarification again. It worked by removing the patch I had created and adding xserver-xorg-extension-glx to the image. Good learning for me :)
Quoted 12 lines
Quoted 2 lines
Ross
--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
Signature · 5 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info