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. How can I configure QT source code if it can't detect default installed OpenGl ES?
Forum Updated to NodeBB v4.3 + New Features

How can I configure QT source code if it can't detect default installed OpenGl ES?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
48 Posts 3 Posters 10.3k Views 1 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 13 Dec 2020, 21:05 last edited by
    #2

    Hi and welcome to devnet,

    Did you install the corresponding development packages on your system ?

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

    U 1 Reply Last reply 14 Dec 2020, 11:32
    0
    • S SGaist
      13 Dec 2020, 21:05

      Hi and welcome to devnet,

      Did you install the corresponding development packages on your system ?

      U Offline
      U Offline
      UltraBurstXD
      wrote on 14 Dec 2020, 11:32 last edited by
      #3

      @SGaist, yes I did.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 14 Dec 2020, 13:00 last edited by
        #4

        Since everything related to OpenGL are marked as no, it means that the detection have all failed. You should check the logs to see what exactly happened.

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

        U 1 Reply Last reply 14 Dec 2020, 14:21
        0
        • S SGaist
          14 Dec 2020, 13:00

          Since everything related to OpenGL are marked as no, it means that the detection have all failed. You should check the logs to see what exactly happened.

          U Offline
          U Offline
          UltraBurstXD
          wrote on 14 Dec 2020, 14:21 last edited by UltraBurstXD
          #5

          @SGaist, Error log:
          loaded result for library config.qtbase_gui.libraries.opengl
          Trying source 0 (type pkgConfig) of library opengl ...

          • /usr/bin/pkg-config --exists --silence-errors gl
            pkg-config did not find package.
            => source produced no result.
            Trying source 1 (type makeSpec) of library opengl ...
            header entry 'config.qtbase_gui.libraries.opengl.headers.0' passed condition.
            GL/gl.h not found in [] and global paths.
            => source produced no result.
            test config.qtbase_gui.libraries.opengl FAILED
            loaded result for library config.qtbase_gui.libraries.opengl_es2
            Trying source 0 (type pkgConfig) of library opengl_es2 ...
          • /usr/bin/pkg-config --exists --silence-errors glesv2
            pkg-config did not find package.
            => source produced no result.
            Trying source 1 (type makeSpec) of library opengl_es2 ...
            header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
            GLES2/gl2.h not found in [] and global paths.
            => source produced no result.
            test config.qtbase_gui.libraries.opengl_es2 FAILED
            loaded result for library config.qtbase_gui.libraries.drm
            Trying source 0 (type pkgConfig) of library drm ...
          • /usr/bin/pkg-config --exists --silence-errors libdrm
            pkg-config did not find package.
            => source produced no result.
            Trying source 1 (type inline) of library drm ...
            xf86drmMode.h not found in [] and global paths.
            xf86drm.h not found in [] and global paths.
            => source produced no result.
            Trying source 2 (type inline) of library drm ...
            => source failed condition 'config.integrity'.
            test config.qtbase_gui.libraries.drm FAILED
            loaded result for library config.qtbase_gui.libraries.openvg
            Trying source 0 (type pkgConfig) of library openvg ...
          • /usr/bin/pkg-config --exists --silence-errors vg
            pkg-config did not find package.
            => source produced no result.
            Trying source 1 (type makeSpec) of library openvg ...
            VG/openvg.h not found in [] and global paths.
            => source produced no result.
            test config.qtbase_gui.libraries.openvg FAILED
          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 14 Dec 2020, 15:22 last edited by
            #6

            What exact packages did you install for OpenGL development ?

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

            U 1 Reply Last reply 14 Dec 2020, 16:21
            0
            • S SGaist
              14 Dec 2020, 15:22

              What exact packages did you install for OpenGL development ?

              U Offline
              U Offline
              UltraBurstXD
              wrote on 14 Dec 2020, 16:21 last edited by UltraBurstXD
              #7

              @SGaist,
              libgl-dev, freeglut3-dev, mesa-common-dev and another related. Ubuntu build-essential package too...

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 14 Dec 2020, 16:26 last edited by
                #8

                Did you restart the build from a clean state after you installed the development packages ?

                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
                • U Offline
                  U Offline
                  UltraBurstXD
                  wrote on 14 Dec 2020, 16:33 last edited by UltraBurstXD
                  #9

                  How do I do that? I'm new in C++, I came from Java. The "clean state" thing... But did some tests, openGL works well for me in the terminal...

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 14 Dec 2020, 18:47 last edited by
                    #10

                    Use an out of source build and nuke it if something goes wrong.

                    By the way, why are you trying to build from sources ? You can either use the version provided with your distribution or the pre-built version provided by the Qt Company.

                    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
                    1
                    • U Offline
                      U Offline
                      UltraBurstXD
                      wrote on 14 Dec 2020, 19:38 last edited by UltraBurstXD
                      #11

                      The one provided by my distro is outdated, very outdated. I downloaded the "offline installer" because there are times I'm without internet.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 14 Dec 2020, 19:47 last edited by
                        #12

                        The offline installer already provides you with a pre-built Qt.

                        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
                        • U Offline
                          U Offline
                          UltraBurstXD
                          wrote on 14 Dec 2020, 19:50 last edited by UltraBurstXD
                          #13

                          How do I activate it? In tutorial they where explaining how to build from source only... From what I remember. I kinda read the readme file... And the instruction in readme file is:

                          ./configure -prefix $PWD/qtbase <license> -nomake tests
                              make -j 4
                          
                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 14 Dec 2020, 22:22 last edited by
                            #14

                            Did you actually ran the offline installer ?

                            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
                            • U Offline
                              U Offline
                              UltraBurstXD
                              wrote on 15 Dec 2020, 07:41 last edited by UltraBurstXD
                              #15

                              There is no runnable binary, for what I can see. Or I don't know the name... There are many modules here.

                              J 1 Reply Last reply 15 Dec 2020, 07:52
                              0
                              • U UltraBurstXD
                                15 Dec 2020, 07:41

                                There is no runnable binary, for what I can see. Or I don't know the name... There are many modules here.

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 15 Dec 2020, 07:52 last edited by
                                #16

                                @UltraBurstXD The offline installer is just one file. But offline installers are not available anymore for open source users (without commercial license). So, what exactly did you download?

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

                                1 Reply Last reply
                                0
                                • U Offline
                                  U Offline
                                  UltraBurstXD
                                  wrote on 15 Dec 2020, 08:01 last edited by
                                  #17

                                  I downloaded here: https://www.qt.io/offline-installers

                                  J 1 Reply Last reply 15 Dec 2020, 08:03
                                  0
                                  • U UltraBurstXD
                                    15 Dec 2020, 08:01

                                    I downloaded here: https://www.qt.io/offline-installers

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 15 Dec 2020, 08:03 last edited by
                                    #18

                                    @UltraBurstXD As I said: offline installer is just one file. Make it executable (chmod u+x OFFLINE_INSTALLER_FILE) and execute it. No need to build anything.

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

                                    U 1 Reply Last reply 15 Dec 2020, 08:11
                                    0
                                    • J jsulm
                                      15 Dec 2020, 08:03

                                      @UltraBurstXD As I said: offline installer is just one file. Make it executable (chmod u+x OFFLINE_INSTALLER_FILE) and execute it. No need to build anything.

                                      U Offline
                                      U Offline
                                      UltraBurstXD
                                      wrote on 15 Dec 2020, 08:11 last edited by UltraBurstXD
                                      #19

                                      @jsulm I don't know name of offline installer... It's my first time using qt... perhaps should I specify qt modules path to qt creator? And configure the environment variables?

                                      J 1 Reply Last reply 15 Dec 2020, 08:13
                                      0
                                      • U UltraBurstXD
                                        15 Dec 2020, 08:11

                                        @jsulm I don't know name of offline installer... It's my first time using qt... perhaps should I specify qt modules path to qt creator? And configure the environment variables?

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 15 Dec 2020, 08:13 last edited by jsulm
                                        #20

                                        @UltraBurstXD Lets do one step after another: you downloaded the offline installer, is that correct? Like http://download.qt.io/official_releases/qt/5.12/5.12.10/qt-opensource-linux-x64-5.12.10.run

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

                                        1 Reply Last reply
                                        0
                                        • U Offline
                                          U Offline
                                          UltraBurstXD
                                          wrote on 15 Dec 2020, 08:21 last edited by UltraBurstXD
                                          #21

                                          Yes, I did and extracted the files to home. As seen:Screenshot from 2020-12-15 10-16-28.png

                                          The archive name is qt-everywhere-src-5.15.2.tar.xz

                                          J 1 Reply Last reply 15 Dec 2020, 08:23
                                          0

                                          11/48

                                          14 Dec 2020, 19:38

                                          topic:navigator.unread, 37
                                          • Login

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