mariusco
Posts: 15
Joined: Thu Nov 21, 2013 6:53 pm

Raspbian Buster Lite EGL and QT

Tue Aug 13, 2019 3:33 am

Hello,

I am struggling for a day and no success.

I cannot make work QT 5.12 + EGL.

dashboard egl sample with NO GL


./dashboard

Code: Select all

QT Version: 5.12.4 
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11")
qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_brcm", "eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11")
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_brcm"
qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_brcm"
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_emu"
qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_emu"
[9;0]EGL library doesn't support Emulator extensions
Aborted

and with full KMS

Code: Select all

QT Version: 5.12.4 
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11")
qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_brcm", "eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11")
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_brcm"
qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_brcm"
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_emu"
qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_emu"
* failed to add service - already in use?
All my sym links

Code: Select all

lrwxrwxrwx 1 root root 21 Aug 13 04:16 /usr/lib/arm-linux-gnueabihf/libEGL.so -> /opt/vc/lib/libEGL.so
lrwxrwxrwx 1 root root 21 Aug 13 04:31 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0 -> /opt/vc/lib/libEGL.so
lrwxrwxrwx 1 root root 21 Aug 13 04:16 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0_backup -> /opt/vc/lib/libEGL.so
[email protected]:~ $ ls -la /usr/lib/arm-linux-gnueabihf/libbr*
lrwxrwxrwx 1 root root 25 Aug 12 21:28 /usr/lib/arm-linux-gnueabihf/libbrcmEGL.so -> /opt/vc/lib/libbrcmEGL.so
lrwxrwxrwx 1 root root 28 Aug 12 21:28 /usr/lib/arm-linux-gnueabihf/libbrcmGLESv2.so -> /opt/vc/lib/libbrcmGLESv2.so
[email protected]:~ $ ls -la /usr/lib/arm-linux-gnueabihf/libG*
lrwxrwxrwx 1 root root     18 Jan 24  2018 /usr/lib/arm-linux-gnueabihf/libGeoIP.so.1 -> libGeoIP.so.1.6.12
-rw-r--r-- 1 root root 236960 Jan 24  2018 /usr/lib/arm-linux-gnueabihf/libGeoIP.so.1.6.12
lrwxrwxrwx 1 root root     22 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0 -> libGLdispatch.so.0.0.0
-rw-r--r-- 1 root root 460352 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0.0.0
lrwxrwxrwx 1 root root     21 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.2.0
-rw-r--r-- 1 root root  30172 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1.2.0
lrwxrwxrwx 1 root root     24 Aug 13 04:16 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> /opt/vc/lib/libGLESv2.so
lrwxrwxrwx 1 root root     18 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 -> libGLESv2.so.2.1.0
lrwxrwxrwx 1 root root     24 Aug 13 04:31 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0 -> /opt/vc/lib/libGLESv2.so
lrwxrwxrwx 1 root root     24 Aug 13 04:16 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0_backup -> /opt/vc/lib/libGLESv2.so
-rw-r--r-- 1 root root  62940 Aug 10  2018 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.1.0

Thank you.

mariusco
Posts: 15
Joined: Thu Nov 21, 2013 6:53 pm

Re: Raspbian Buster Lite EGL and QT

Tue Aug 13, 2019 5:09 pm

I fix some o the links on libs

Code: Select all

[email protected]:/usr/lib/arm-linux-gnueabihf# ls -l lib*GL*
lrwxrwxrwx 1 root root     25 Aug 12 21:28 libbrcmEGL.so -> /opt/vc/lib/libbrcmEGL.so
lrwxrwxrwx 1 root root     28 Aug 12 21:28 libbrcmGLESv2.so -> /opt/vc/lib/libbrcmGLESv2.so
lrwxrwxrwx 1 root root     21 Aug 13 04:16 libEGL.so -> /opt/vc/lib/libEGL.so
lrwxrwxrwx 1 root root     21 Aug 13 04:31 libEGL.so.1.0.0 -> /opt/vc/lib/libEGL.so
lrwxrwxrwx 1 root root     21 Aug 13 04:16 libEGL.so.1.0.0_backup -> /opt/vc/lib/libEGL.so
lrwxrwxrwx 1 root root     28 Aug 13 18:01 libGLESv1_CM.so.1 -> /opt/vc/lib/libbrcmGLESv2.so
lrwxrwxrwx 1 root root     24 Aug 13 18:02 libGLESv2.so -> /opt/vc/lib/libGLESv2.so
lrwxrwxrwx 1 root root     24 Aug 13 18:02 libGLESv2.so.2.0.0 -> /opt/vc/lib/libGLESv2.so
lrwxrwxrwx 1 root root     24 Aug 13 18:03 libGLESv2.so.2.1.0 -> /opt/vc/lib/libGLESv2.so
lrwxrwxrwx 1 root root     18 Aug 10  2018 libOpenGL.so.0 -> libOpenGL.so.0.0.0
-rw-r--r-- 1 root root 165340 Aug 10  2018 libOpenGL.so.0.0.0
And no missing libs

Code: Select all

[email protected]:~/rpi-opengl-without-x $ ldd ./triangle 
	linux-vdso.so.1 (0x7efe6000)
	/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0x76f23000)
	libbrcmEGL.so => /opt/vc/lib/libbrcmEGL.so (0x76eea000)
	libbrcmGLESv2.so => /opt/vc/lib/libbrcmGLESv2.so (0x76ec5000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d77000)
	libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x76d4e000)
	libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76ccc000)
	libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x76cb6000)
	libvcos.so => /opt/vc/lib/libvcos.so (0x76c9d000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76c73000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76c60000)
	librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76c49000)
	/lib/ld-linux-armhf.so.3 (0x76f38000)

And still the Errror:

Code: Select all

[email protected]:~/rpi-opengl-without-x $ gcc -o triangle triangle.c -lbrcmEGL -lbrcmGLESv2 -L/opt/vc/lib -I/opt/vc/include
[email protected]:~/rpi-opengl-without-x $ ./tr
-bash: ./tr: No such file or directory
[email protected]:~/rpi-opengl-without-x $ ./triangle 
* failed to add service - already in use?
[email protected]:~/rpi-opengl-without-x $ 



Return to “Graphics, sound and multimedia”