RaspberryPi2EGLFS Step 14 & 15



  • Hi, I've been following the RaspberryPi2EGLFS guide and I've hit a snag on Step 14.

    https://wiki.qt.io/RaspberryPi2EGLFS

    When I run the move commands below from the top directory of my RaspberryPi:

    sudo mv /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0_backup
    

    I get the following response:

    sudo mv '/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0' to '/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0_backup' : No such file or directory
    

    When I do a list of that /usr/lib/arm-linux-gnueabihf/ directory, the libEGL.so.1.0.0 & libGLESv2.so.2.0.0 files are there but are grey in the list. It would be good if the article's author said what a likely response is if those files aren't there as " The device may have the" suggests.

    I've tried skipping to the next step #15 which is to run the compiled app, and I get:

    This application failed to start because it could not find or load the Qt plaform plugin "xcb" in "".
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Reinstalling the application may fix this problem
    Aborted
    

    Q1) I don't know why the mv command isn't working, any ideas?
    Q2) Will that fix the reason that my example app isn't starting or is that likely to be something else?



  • Q1) So I ended up rebooting my RaspberryPi into desktop mode. Then I used the very slow browser to copy and paste the commands into terminal across from the RaspberryPi2EGLFS guide. But likely the fix may have been that I was in the home/pi directory "~" this time not the root "/" that I was before. Step 14 down.

    Q2) But then step 15 still has the same error:

    This application failed to start because it could not find or load the Qt plaform plugin "xcb" in "".
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Reinstalling the application may fix this problem
    Aborted
    

    Now I'm troubleshooting that missing library. If anyone else has come across this problem installing on a Pi or if there was something in the RaspberryPi2EGLFS that is meant to address this, I'd be happy to hear!

    I read on another forum about how to Debug Plugins by putting a folder in my binary directory called "platforms" and then running the following:

    LD_LIBRARY_PATH=. QT_DEBUG_PLUGINS=1 ./qopenglwidget
    

    This is the part of the debugging that is relevant to the problem:

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/pi/platforms" ...
    Cannot load library /usr/local/qt5pi/plugins/platforms/libqxcb.so: (/usr/local/qt5pi/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)
    QLibraryPrivate::loadPlugin failed on "/usr/local/qt5pi/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/qt5pi/plugins/platforms/libqxcb.so: (/usr/local/qt5pi/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)"
    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, vnc, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    

    I've tried a few of the tricks that were suggested on StackOverflow to the cannot load xcb topic but I would most appreciate to know why following the Qt getting started process for the RaspberryPi doesn't work.



  • Hi, so first time around I tried this on a RaspberryPi 1 B, this time I tried it on a RaspberryPi 3B+ with a different Linux compiling machine and I have the same problem with the RaspberryPi2EGLFS at Step 15. I'm on the latest version of Raspian (Stretch) and Qt 5.10. When I try to run the example application it says:

    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, vnc, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    

    If anyone has successfully used this tutorial lately, I'd love to know how you got things running.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.