Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] How to configure settings in order to compile FrameBuffer QT5?

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

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Halo_HaoH Offline
    Halo_HaoH Offline
    Halo_Hao
    wrote on last edited by Halo_Hao
    #1

    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.

    1 Reply Last reply
    0
    • Halo_HaoH Offline
      Halo_HaoH Offline
      Halo_Hao
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        Halo_HaoH 2 Replies Last reply
        0
        • SGaistS SGaist

          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

          Halo_HaoH Offline
          Halo_HaoH Offline
          Halo_Hao
          wrote on last edited by
          #4

          @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

          1 Reply Last reply
          0
          • SGaistS SGaist

            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

            Halo_HaoH Offline
            Halo_HaoH Offline
            Halo_Hao
            wrote on last edited by
            #5

            @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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Run ldd on the plugin itself in plugins/platform/

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Halo_HaoH 1 Reply Last reply
              1
              • SGaistS SGaist

                Run ldd on the plugin itself in plugins/platform/

                Halo_HaoH Offline
                Halo_HaoH Offline
                Halo_Hao
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Halo_HaoH 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    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.

                    Halo_HaoH Offline
                    Halo_HaoH Offline
                    Halo_Hao
                    wrote on last edited by
                    #9

                    @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

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      All these libraries can't be missing

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved