Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QOpenGLWidget example doesn't start on Raspberry Pi
Forum Update on Tuesday, May 27th 2025

QOpenGLWidget example doesn't start on Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
raspberry piqopenglwidget
18 Posts 3 Posters 6.5k Views 2 Watching
  • 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.
  • K Offline
    K Offline
    kickoune103
    wrote on 30 Mar 2017, 11:58 last edited by
    #4

    example:
    pi@raspberrypi:~ $ sudo file /usr/local/qt5_8pi/lib/libQt53DLogic.so.5
    /usr/local/qt5_8pi/lib/libQt53DLogic.so.5: data

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kickoune103
      wrote on 30 Mar 2017, 12:00 last edited by
      #5

      yes 64bits...

      -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- \

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oniongarlic
        wrote on 30 Mar 2017, 12:38 last edited by
        #6

        Something must have gone wrong in your build. Did you build on-device ?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kickoune103
          wrote on 30 Mar 2017, 12:40 last edited by
          #7

          no cross compiling like this :
          https://wiki.qt.io/RaspberryPi2EGLFS

          K 1 Reply Last reply 30 Mar 2017, 12:41
          0
          • K kickoune103
            30 Mar 2017, 12:40

            no cross compiling like this :
            https://wiki.qt.io/RaspberryPi2EGLFS

            K Offline
            K Offline
            kickoune103
            wrote on 30 Mar 2017, 12:41 last edited by
            #8

            @kickoune103 thibaud@thibaud-VirtualBox:~$ ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/thibaud/Bureau/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/thibaud/Bureau/rpi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5_8pi -extprefix /home/thibaud/Bureau/rpi/qt5_8pi -hostprefix /home/thibaud/Bureau/rpi/qt5_8 -v

            1 Reply Last reply
            0
            • O Offline
              O Offline
              oniongarlic
              wrote on 30 Mar 2017, 12:48 last edited by
              #9

              Ok, I do all my builds on-device.
              But, check that the library files produced on your build machine are ARM binaries, use file for example, should respond with something like:

              ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV) .

              and if not, then your build environment is broken.

              And check that they don't break when do transfer them over to your Pi.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kickoune103
                wrote on 30 Mar 2017, 13:15 last edited by
                #10

                in my pi:
                root@raspberrypi:/usr/local/qt5_8pi/lib# file libQt5Gui.so.5.8.0
                libQt5Gui.so.5.8.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=4bcd5c6b508a7f287465b546df892a89b8cb6867, stripped

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kickoune103
                  wrote on 30 Mar 2017, 13:23 last edited by
                  #11

                  host:
                  thibaud@thibaud-VirtualBox:~/Bureau/rpi/qt5_8pi/lib$ file libQt53DLogic.so.5
                  libQt53DLogic.so.5: symbolic link to libQt53DLogic.so.5.8.0

                  pi:

                  root@raspberrypi:/usr/local/qt5_8pi/lib# file libQt53DLogic.so.5
                  libQt53DLogic.so.5: data

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kickoune103
                    wrote on 30 Mar 2017, 13:38 last edited by
                    #12

                    i have copied in USB disk FAT32, symbolink link was disapeard! no error in linux!

                    my virtual machine not work in ssh at my work, but work fine at home...
                    so i copy in usb at work.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kickoune103
                      wrote on 30 Mar 2017, 14:19 last edited by
                      #13

                      export LD_LIBRARY_PATH=/usr/local/qt5_8pi
                      example opengl running but no font in qt5_8pi/lib/font ..... is empty !!!!

                      J 1 Reply Last reply 31 Mar 2017, 05:06
                      0
                      • K kickoune103
                        30 Mar 2017, 14:19

                        export LD_LIBRARY_PATH=/usr/local/qt5_8pi
                        example opengl running but no font in qt5_8pi/lib/font ..... is empty !!!!

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 31 Mar 2017, 05:06 last edited by
                        #14

                        @kickoune103 FAT32 never heard anything about symbolic links - you should use a Linux file system, not FAT32.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kickoune103
                          wrote on 31 Mar 2017, 09:45 last edited by
                          #15

                          lib font is empty

                          i have install
                          libfontconfig1-dev
                          libfreetype6-dev

                          problem!!!!!

                          Build options:
                          Mode ................................... release
                          Building shared libraries .............. yes
                          Using C++ standard ..................... C++11
                          Using gold linker ...................... yes
                          Using new DTAGS ........................ yes
                          Using precompiled headers .............. yes
                          Using LTCG ............................. no
                          Target compiler supports:
                          NEON ................................. yes
                          Build parts ............................ libs
                          Qt modules and options:
                          Qt Concurrent .......................... yes
                          Qt D-Bus ............................... yes
                          Qt D-Bus directly linked to libdbus .... no
                          Qt Gui ................................. yes
                          Qt Widgets ............................. yes
                          Support enabled for:
                          Accessibility .......................... yes
                          Using pkg-config ....................... no
                          QML debugging .......................... yes
                          udev ................................... yes
                          Using system zlib ...................... yes
                          Qt Core:
                          DoubleConversion ....................... yes
                          Using system DoubleConversion ........ no
                          GLib ................................... no
                          iconv .................................. no
                          ICU .................................... yes
                          Logging backends:
                          journald ............................. no
                          syslog ............................... no
                          Using system PCRE ...................... no
                          Qt Network:
                          getaddrinfo() .......................... yes
                          getifaddrs() ........................... yes
                          IPv6 ifname ............................ yes
                          libproxy ............................... no
                          OpenSSL ................................ yes
                          Qt directly linked to OpenSSL ........ no
                          SCTP ................................... no
                          Use system proxies ..................... yes
                          Qt Sql:
                          DB2 (IBM) .............................. no
                          InterBase .............................. no
                          MySql .................................. no
                          OCI (Oracle) ........................... no
                          ODBC ................................... yes
                          PostgreSQL ............................. no
                          SQLite2 ................................ yes
                          SQLite ................................. yes
                          Using system provided SQLite ......... no
                          TDS (Sybase) ........................... yes
                          Qt Gui:
                          FreeType ............................... yes
                          Using system FreeType ................ no
                          HarfBuzz ............................... yes
                          Using system HarfBuzz ................ no
                          Fontconfig ............................. no
                          Image formats:
                          GIF .................................. yes
                          ICO .................................. yes
                          JPEG ................................. yes
                          Using system libjpeg ............... yes
                          PNG .................................. yes
                          Using system libpng ................ yes
                          OpenGL:
                          EGL .................................. yes
                          Desktop OpenGL ....................... no
                          OpenGL ES 2.0 ........................ yes
                          OpenGL ES 3.0 ........................ no
                          OpenGL ES 3.1 ........................ no
                          Session Management ..................... yes
                          Features used by QPA backends:
                          evdev .................................. yes
                          libinput ............................... no
                          mtdev .................................. no
                          tslib .................................. yes
                          xkbcommon-evdev ........................ no
                          QPA backends:
                          DirectFB ............................... no
                          EGLFS .................................. yes
                          EGLFS details:
                          EGLFS i.Mx6 .......................... no
                          EGLFS i.Mx6 Wayland .................. no
                          EGLFS EGLDevice ...................... no
                          EGLFS GBM ............................ no
                          EGLFS Mali ........................... no
                          EGLFS Rasberry Pi .................... yes
                          EGL on X11 ........................... no
                          LinuxFB ................................ yes
                          Mir client ............................. no
                          X11:
                          Using system provided XCB libraries .. yes
                          EGL on X11 ........................... no
                          Xinput2 .............................. yes
                          XCB XKB .............................. yes
                          XLib ................................. yes
                          Xrender .............................. yes
                          XCB render ........................... yes
                          XCB GLX .............................. yes
                          XCB Xlib ............................. yes
                          Using system-provided xkbcommon ...... no
                          Qt Widgets:
                          GTK+ ................................... no
                          Styles ................................. Fusion Windows
                          Qt PrintSupport:
                          CUPS ................................... yes
                          Qt SerialBus:
                          Socket CAN ............................. yes
                          Socket CAN FD .......................... yes
                          QtXmlPatterns:
                          XML schema support ..................... yes
                          Qt QML:
                          QML interpreter ........................ yes
                          QML network support .................... yes
                          Qt Quick:
                          Direct3D 12 ............................ no
                          AnimatedImage item ..................... yes
                          Canvas item ............................ yes
                          Support for Quick Designer ............. yes
                          Flipable item .......................... yes
                          GridView item .......................... yes
                          ListView item .......................... yes
                          Path support ........................... yes
                          PathView item .......................... yes
                          Positioner items ....................... yes
                          ShaderEffect item ...................... yes
                          Sprite item ............................ yes
                          Qt Gamepad:
                          SDL2 ................................... no
                          Qt 3D:
                          System Assimp .......................... no
                          Qt Wayland Client ........................ no
                          Qt Wayland Compositor .................... no
                          Qt Bluetooth:
                          BlueZ .................................. no
                          BlueZ Low Energy ....................... no
                          Linux Crypto API ....................... no
                          Qt Multimedia:
                          ALSA ................................... yes
                          GStreamer 1.0 .......................... no
                          GStreamer 0.10 ......................... no
                          Video for Linux ........................ yes
                          OpenAL ................................. no
                          PulseAudio ............................. no
                          Resource Policy (libresourceqt5) ....... no
                          DirectShow ............................. no
                          Windows Media Foundation ............... no
                          Qt Location:
                          Gypsy GPS Daemon ....................... no
                          WinRT Geolocation API .................. no
                          Qt Sensors:
                          sensorfw ............................... no
                          Qt WebEngine:
                          Proprietary Codecs ..................... no
                          Spellchecker ........................... yes
                          ALSA ................................... yes
                          PulseAudio ............................. no

                          ERROR: Feature 'system-freetype' was enabled, but the pre-condition 'features.freetype && libs.freetype' failed.

                          ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig' failed.

                          J 1 Reply Last reply 31 Mar 2017, 11:16
                          0
                          • K kickoune103
                            31 Mar 2017, 09:45

                            lib font is empty

                            i have install
                            libfontconfig1-dev
                            libfreetype6-dev

                            problem!!!!!

                            Build options:
                            Mode ................................... release
                            Building shared libraries .............. yes
                            Using C++ standard ..................... C++11
                            Using gold linker ...................... yes
                            Using new DTAGS ........................ yes
                            Using precompiled headers .............. yes
                            Using LTCG ............................. no
                            Target compiler supports:
                            NEON ................................. yes
                            Build parts ............................ libs
                            Qt modules and options:
                            Qt Concurrent .......................... yes
                            Qt D-Bus ............................... yes
                            Qt D-Bus directly linked to libdbus .... no
                            Qt Gui ................................. yes
                            Qt Widgets ............................. yes
                            Support enabled for:
                            Accessibility .......................... yes
                            Using pkg-config ....................... no
                            QML debugging .......................... yes
                            udev ................................... yes
                            Using system zlib ...................... yes
                            Qt Core:
                            DoubleConversion ....................... yes
                            Using system DoubleConversion ........ no
                            GLib ................................... no
                            iconv .................................. no
                            ICU .................................... yes
                            Logging backends:
                            journald ............................. no
                            syslog ............................... no
                            Using system PCRE ...................... no
                            Qt Network:
                            getaddrinfo() .......................... yes
                            getifaddrs() ........................... yes
                            IPv6 ifname ............................ yes
                            libproxy ............................... no
                            OpenSSL ................................ yes
                            Qt directly linked to OpenSSL ........ no
                            SCTP ................................... no
                            Use system proxies ..................... yes
                            Qt Sql:
                            DB2 (IBM) .............................. no
                            InterBase .............................. no
                            MySql .................................. no
                            OCI (Oracle) ........................... no
                            ODBC ................................... yes
                            PostgreSQL ............................. no
                            SQLite2 ................................ yes
                            SQLite ................................. yes
                            Using system provided SQLite ......... no
                            TDS (Sybase) ........................... yes
                            Qt Gui:
                            FreeType ............................... yes
                            Using system FreeType ................ no
                            HarfBuzz ............................... yes
                            Using system HarfBuzz ................ no
                            Fontconfig ............................. no
                            Image formats:
                            GIF .................................. yes
                            ICO .................................. yes
                            JPEG ................................. yes
                            Using system libjpeg ............... yes
                            PNG .................................. yes
                            Using system libpng ................ yes
                            OpenGL:
                            EGL .................................. yes
                            Desktop OpenGL ....................... no
                            OpenGL ES 2.0 ........................ yes
                            OpenGL ES 3.0 ........................ no
                            OpenGL ES 3.1 ........................ no
                            Session Management ..................... yes
                            Features used by QPA backends:
                            evdev .................................. yes
                            libinput ............................... no
                            mtdev .................................. no
                            tslib .................................. yes
                            xkbcommon-evdev ........................ no
                            QPA backends:
                            DirectFB ............................... no
                            EGLFS .................................. yes
                            EGLFS details:
                            EGLFS i.Mx6 .......................... no
                            EGLFS i.Mx6 Wayland .................. no
                            EGLFS EGLDevice ...................... no
                            EGLFS GBM ............................ no
                            EGLFS Mali ........................... no
                            EGLFS Rasberry Pi .................... yes
                            EGL on X11 ........................... no
                            LinuxFB ................................ yes
                            Mir client ............................. no
                            X11:
                            Using system provided XCB libraries .. yes
                            EGL on X11 ........................... no
                            Xinput2 .............................. yes
                            XCB XKB .............................. yes
                            XLib ................................. yes
                            Xrender .............................. yes
                            XCB render ........................... yes
                            XCB GLX .............................. yes
                            XCB Xlib ............................. yes
                            Using system-provided xkbcommon ...... no
                            Qt Widgets:
                            GTK+ ................................... no
                            Styles ................................. Fusion Windows
                            Qt PrintSupport:
                            CUPS ................................... yes
                            Qt SerialBus:
                            Socket CAN ............................. yes
                            Socket CAN FD .......................... yes
                            QtXmlPatterns:
                            XML schema support ..................... yes
                            Qt QML:
                            QML interpreter ........................ yes
                            QML network support .................... yes
                            Qt Quick:
                            Direct3D 12 ............................ no
                            AnimatedImage item ..................... yes
                            Canvas item ............................ yes
                            Support for Quick Designer ............. yes
                            Flipable item .......................... yes
                            GridView item .......................... yes
                            ListView item .......................... yes
                            Path support ........................... yes
                            PathView item .......................... yes
                            Positioner items ....................... yes
                            ShaderEffect item ...................... yes
                            Sprite item ............................ yes
                            Qt Gamepad:
                            SDL2 ................................... no
                            Qt 3D:
                            System Assimp .......................... no
                            Qt Wayland Client ........................ no
                            Qt Wayland Compositor .................... no
                            Qt Bluetooth:
                            BlueZ .................................. no
                            BlueZ Low Energy ....................... no
                            Linux Crypto API ....................... no
                            Qt Multimedia:
                            ALSA ................................... yes
                            GStreamer 1.0 .......................... no
                            GStreamer 0.10 ......................... no
                            Video for Linux ........................ yes
                            OpenAL ................................. no
                            PulseAudio ............................. no
                            Resource Policy (libresourceqt5) ....... no
                            DirectShow ............................. no
                            Windows Media Foundation ............... no
                            Qt Location:
                            Gypsy GPS Daemon ....................... no
                            WinRT Geolocation API .................. no
                            Qt Sensors:
                            sensorfw ............................... no
                            Qt WebEngine:
                            Proprietary Codecs ..................... no
                            Spellchecker ........................... yes
                            ALSA ................................... yes
                            PulseAudio ............................. no

                            ERROR: Feature 'system-freetype' was enabled, but the pre-condition 'features.freetype && libs.freetype' failed.

                            ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig' failed.

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 31 Mar 2017, 11:16 last edited by
                            #16

                            @kickoune103 Please call configure with additional -v parameter. Then you will see what exactly is missing.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kickoune103
                              wrote on 31 Mar 2017, 11:22 last edited by
                              #17

                              -v it's use before.
                              V5_8 works with my pi2 in cross compil.

                              $LD_LIBRARY_PATH="/usr/local/qt5_8pi/lib" (for me)
                              $QT_QPA_FONTDIR = "/usr/share/fonts/truetype/dejavu"

                              for works with this tutorial:
                              https://wiki.qt.io/RaspberryPi2EGLFS

                              it's work less fontconfig with my previous image.

                              J 1 Reply Last reply 31 Mar 2017, 12:10
                              0
                              • K kickoune103
                                31 Mar 2017, 11:22

                                -v it's use before.
                                V5_8 works with my pi2 in cross compil.

                                $LD_LIBRARY_PATH="/usr/local/qt5_8pi/lib" (for me)
                                $QT_QPA_FONTDIR = "/usr/share/fonts/truetype/dejavu"

                                for works with this tutorial:
                                https://wiki.qt.io/RaspberryPi2EGLFS

                                it's work less fontconfig with my previous image.

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 31 Mar 2017, 12:10 last edited by
                                #18

                                @kickoune103 said in error after start example qt5.8 for raspberrypi:

                                -v it's use before.

                                Then please post the actual configure output (at least the part where fontconfig is being tested).

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0

                                13/18

                                30 Mar 2017, 14:19

                                • Login

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