[Solved] How to configure settings in order to compile FrameBuffer QT5?



  • Hi,
    English is not my mother tongue and I’m still learning the language. Hope you can understand what I mean. Thanks in advance.
    I’m using QT 5 on LinuxKernle, BusyBox compiled by myself which is X86. I’m going to use Framebuffer instead of X11 to display images. I’m stuck here and don’t know how to set it through Configure and compile FrameBuffer QT5.



  • After running the compiled program prompts:

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

    configrue:
    configure -verbose -confirm-license -release -no-xcb -no-pch -no-icu -no-c++11 -no-cups -no-gtkstyle -make libs -opensource -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtenginio -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtsensors -skip qtserialport -skip qttranslations -skip qttools -skip qtwebkit-examples -skip qtwinextras -skip qtx11extras -xplatform linux-g++ -qpa eglfs -qpa linuxfb -evdev -prefix /Qt5


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you provide all dependencies on your target ? Run ldd on it to see what misses to load the linuxfb plugin



  • @SGaist Thank you for your help :)

    Run ldd Results:
    ldd ./untitled
    linux-gate.so.1 => (0xb76fc000)
    libQt5Widgets.so.5 => /Qt5/lib/libQt5Widgets.so.5 (0xb70cc000)
    libQt5Core.so.5 => /Qt5/lib/libQt5Core.so.5 (0xb6b08000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6a06000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb69e9000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb683b000)
    libQt5Gui.so.5 => /Qt5/lib/libQt5Gui.so.5 (0xb6396000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb637a000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6333000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb6319000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb6314000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb630b000)
    /lib/ld-linux.so.2 (0xb76fd000)
    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb62e3000)

    **untitled **:I compiled a demo program

    And to determine the following settings are correct
    export QT_QPA_PLATFORM_PLUGIN_PATH=/plugins
    export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0

    Run untitled or suggested above error



  • @SGaist
    I compiled Qt library, ldd results.
    root@linuxdevelopos:/Qt5/lib# ldd ./libQt5Core.so.5.5.0
    linux-gate.so.1 => (0xb77bc000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb71c0000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb71a6000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb71a0000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7197000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb70af000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7069000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb704c000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6e9d000)
    /lib/ld-linux.so.2 (0xb77bd000)
    root@linuxdevelopos:/Qt5/lib# ldd ./libQt5Gui.so.5.5.0
    linux-gate.so.1 => (0xb76f7000)
    libQt5Core.so.5 => /Qt5/lib/libQt5Core.so.5 (0xb6c8b000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb6c56000)
    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6c2d000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb6c13000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6b2b000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6ae5000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6ac8000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6919000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb6914000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb690b000)
    /lib/ld-linux.so.2 (0xb76f8000)
    root@linuxdevelopos:/Qt5/lib# ldd ./libQt5Widgets.so.5.5.0
    linux-gate.so.1 => (0xb7725000)
    libQt5Gui.so.5 => /Qt5/lib/libQt5Gui.so.5 (0xb6c50000)
    libQt5Core.so.5 => /Qt5/lib/libQt5Core.so.5 (0xb668c000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb6656000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb656e000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6528000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb650b000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb635d000)
    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6334000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb631a000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb6315000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb630c000)
    /lib/ld-linux.so.2 (0xb7726000)
    root@linuxdevelopos:/Qt5/lib#

    It does not contain x11


  • Lifetime Qt Champion

    Run ldd on the plugin itself in plugins/platform/



  • @SGaist Thank you very much :)
    the so file was not loaded which is required by "libqlinuxfb.so"
    It works now.


  • Lifetime Qt Champion

    Great ! Which library was missing ?

    Since it's working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

    Also, don't forget to up-vote answers that helped you (in any thread you are reading), it will help others to find them more easily.



  • @SGaist

    ld-linux.so.2
    libcgmanager.so.0
    libc.so.6
    libdbus-1.so.3
    libdl.so.2
    libexpat.so.1
    libfontconfig.so.1
    libfreetype.so.6
    libgcc_s.so.1
    libm.so.6
    libnih-dbus.so.1
    libnih.so.1
    libpng12.so.0
    libpthread.so.0
    librt.so.1
    libstdc++.so.6
    libudev.so.1
    libz.so.1


  • Lifetime Qt Champion

    All these libraries can't be missing


Log in to reply
 

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