How to run over VNC in X11 Mode (xcb) ?

All the topics related to QLC+ on the Raspberry Pi
User avatar
cerw
Posts: 10
Joined: Fri Mar 11, 2016 12:57 am
Real Name: Petr Cervenka

How to run over VNC in X11 Mode (xcb) ?

Post by cerw » Tue Mar 14, 2017 2:01 pm

Hi

I am have VNC server running on PI2 and trying to get full GUI running however when run from terminal or from menu nothing happens. I am using the offical image + pixel wm. Olad and qlcplus in deamon mode works.

Output:

Code: Select all

pi@raspberrypi:~ $ qlcplus --platfom xcb
[9;0]Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

Q Light Controller Plus version 4.10.5b
This program is licensed under the terms of the Apache 2.0 license.
Thank you

Petr

User avatar
mcallegari
Posts: 1711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: How to run over VNC in X11 Mode (xcb) ?

Post by mcallegari » Wed Mar 15, 2017 10:19 am

As written in chapter 10 of the provided PDF, the correct option is "-platform xcb"
Single dash, not double

User avatar
cerw
Posts: 10
Joined: Fri Mar 11, 2016 12:57 am
Real Name: Petr Cervenka

Re: How to run over VNC in X11 Mode (xcb) ?

Post by cerw » Wed Mar 15, 2017 10:40 am

Sorry my bad, I tried that too, i just copied wrong command..

Code: Select all

pi@raspberrypi:~ $ qlcplus -platform xcb
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem.
Aborted


User avatar
mcallegari
Posts: 1711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: How to run over VNC in X11 Mode (xcb) ?

Post by mcallegari » Wed Mar 15, 2017 11:03 am

Which Qt version are you using ?
You need to use my version, and, again, follow the instructions of chapter 10

User avatar
cerw
Posts: 10
Joined: Fri Mar 11, 2016 12:57 am
Real Name: Petr Cervenka

Re: How to run over VNC in X11 Mode (xcb) ?

Post by cerw » Wed Mar 15, 2017 12:21 pm

I am using your image, no custom image.

User avatar
cerw
Posts: 10
Joined: Fri Mar 11, 2016 12:57 am
Real Name: Petr Cervenka

Re: How to run over VNC in X11 Mode (xcb) ?

Post by cerw » Wed Mar 15, 2017 1:04 pm

Code: Select all

root@raspberrypi:~# ldd /usr/bin/qlcplus
        linux-vdso.so.1 (0x7edc6000)
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f7b000)
        libqlcplusengine.so.1 => /usr/lib/libqlcplusengine.so.1 (0x76e12000)
        libqlcplusui.so.1 => /usr/lib/libqlcplusui.so.1 (0x76aba000)
        libqlcpluswebaccess.so.1 => /usr/lib/libqlcpluswebaccess.so.1 (0x76a64000)
        libQt5Widgets.so.5 => /opt/qt5-rpi/lib/libQt5Widgets.so.5 (0x7653a000)
        libQt5Gui.so.5 => /opt/qt5-rpi/lib/libQt5Gui.so.5 (0x760e1000)
        libQt5Script.so.5 => /opt/qt5-rpi/lib/libQt5Script.so.5 (0x75ef4000)
        libQt5Core.so.5 => /opt/qt5-rpi/lib/libQt5Core.so.5 (0x759eb000)
        libGLESv2.so => /opt/vc/lib/libGLESv2.so (0x759c6000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x7599e000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x758c2000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x75846000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x75819000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x756d8000)
        libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0x755fe000)
        libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0x755e1000)
        libfftw3.so.3 => /usr/lib/arm-linux-gnueabihf/libfftw3.so.3 (0x754e1000)
        libQt5Multimedia.so.5 => /opt/qt5-rpi/lib/libQt5Multimedia.so.5 (0x75409000)
        libQt5Network.so.5 => /opt/qt5-rpi/lib/libQt5Network.so.5 (0x75315000)
        libQt5MultimediaWidgets.so.5 => /opt/qt5-rpi/lib/libQt5MultimediaWidgets.so.5 (0x752ff000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x752d8000)
        libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x752a7000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x75294000)
        libgthread-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0 (0x75282000)
        libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0x7517f000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75168000)
        /lib/ld-linux-armhf.so.3 (0x54b11000)
        libEGL.so => /opt/vc/lib/libEGL.so (0x7512e000)
        libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x75107000)
        libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x750f1000)
        libvcos.so => /opt/vc/lib/libvcos.so (0x750d7000)
        libQt5OpenGL.so.5 => /opt/qt5-rpi/lib/libQt5OpenGL.so.5 (0x75092000)
        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x7501e000)
        

User avatar
mcallegari
Posts: 1711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: How to run over VNC in X11 Mode (xcb) ?

Post by mcallegari » Wed Mar 15, 2017 5:00 pm

ldd on qlcplus is not the point.

You need to do ldd on the Qt XCB platform plugin. Going by memory it should be in

Code: Select all

/opt/qt5-rpi/plugins/platforms//libqxcb.so 
or something like that.
Most likely you will see a broken dependency that you will need to install.

frunk
Posts: 7
Joined: Fri Mar 17, 2017 12:55 pm
Real Name: Alex Clark

Re: How to run over VNC in X11 Mode (xcb) ?

Post by frunk » Fri Mar 17, 2017 2:16 pm

Most likely you will see a broken dependency that you will need to install.
MANY MANY broken dependencies as the basic install does not bring in anything needed for xcb to work with QT5...

As a total n00b with dangerous levels of Google access along with some trial and error I got there in the end!

Code: Select all

sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-xkb1
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-xfixes0
sudo apt-get install libxcb-xinerama0
EDIT: I did pop a new thread in this section detailing what I did to get this working from beginning to end: viewtopic.php?f=7&t=10942

User avatar
cerw
Posts: 10
Joined: Fri Mar 11, 2016 12:57 am
Real Name: Petr Cervenka

Re: How to run over VNC in X11 Mode (xcb) ?

Post by cerw » Sat Mar 18, 2017 8:53 am

Yes had to install many libxcb* packages and now all works! thanks

User avatar
mcallegari
Posts: 1711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: How to run over VNC in X11 Mode (xcb) ?

Post by mcallegari » Sat Mar 18, 2017 2:14 pm

The xcb packages should be mentioned in chapter 10 of the PDF guide (for the 3rd time)
If there's some missing, please let me know, so I can add them to the PDF and avoid other people struggling with this

Post Reply