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. the opengl functionality tests failed
Forum Updated to NodeBB v4.3 + New Features

the opengl functionality tests failed

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
16 Posts 10 Posters 28.0k 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.
  • L Offline
    L Offline
    liubbc
    wrote on 13 Jun 2017, 09:53 last edited by
    #1

    Hi Qters,

    When i configure qt-everywhere-opensource-src-5.9.0. using ubuntu virtual machine ,

    the error occur :

    the opengl functionality tests failed
    You might need to modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform

    I have install opengl :

    sudo apt-get install build-essential
    sudo apt-get install libgl1-mesa-dev
    sudo apt-get install libglu1-mesa-dev
    sudo apt-get install libglut-dev

    Now i do not know how to

    modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2

    Can you provide any clues ?

    Thanks in advance!

    J 1 Reply Last reply 13 Jun 2017, 11:31
    0
    • L liubbc
      13 Jun 2017, 09:53

      Hi Qters,

      When i configure qt-everywhere-opensource-src-5.9.0. using ubuntu virtual machine ,

      the error occur :

      the opengl functionality tests failed
      You might need to modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
      QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform

      I have install opengl :

      sudo apt-get install build-essential
      sudo apt-get install libgl1-mesa-dev
      sudo apt-get install libglu1-mesa-dev
      sudo apt-get install libglut-dev

      Now i do not know how to

      modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
      QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2

      Can you provide any clues ?

      Thanks in advance!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Jun 2017, 11:31 last edited by
      #2

      @liubbc Add -v to your configure call, then you will see what is really missing

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

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vincent365
        wrote on 10 Aug 2017, 03:06 last edited by
        #3

        how to add -v?

        S 1 Reply Last reply 10 Aug 2017, 07:15
        0
        • V vincent365
          10 Aug 2017, 03:06

          how to add -v?

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 10 Aug 2017, 07:15 last edited by sierdzio 8 Oct 2017, 07:15
          #4

          @vincent365 said in the opengl functionality tests failed:

          how to add -v?

          You are compiling Qt from source, right? The first step is to call configure. So, you need to add '-v' flag there:

          configure -v [other config options you use for building Qt, like -confirm-license -nomake examples etc.]
          

          I suspect you miss some OpenGL stuff. Try calling:

          sudo apt-get build-dep qt5-default
          

          (Z(:^

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vincent365
            wrote on 10 Aug 2017, 07:22 last edited by
            #5

            ees.o .obj/uncompr.o .obj/zutil.o
            make[3]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap'
            make[2]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src'
            Makefile:45: recipe for target 'sub-src-make_first' failed
            make[1]: *** [sub-src-make_first] Error 2
            make[1]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase'
            Makefile:72: recipe for target 'module-qtbase-make_first' failed
            make: *** [module-qtbase-make_first] Error 2

            when I crossing-build the source it show these errors. Do you kown it?

            S 1 Reply Last reply 10 Aug 2017, 07:30
            0
            • V vincent365
              10 Aug 2017, 07:22

              ees.o .obj/uncompr.o .obj/zutil.o
              make[3]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap'
              make[2]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src'
              Makefile:45: recipe for target 'sub-src-make_first' failed
              make[1]: *** [sub-src-make_first] Error 2
              make[1]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase'
              Makefile:72: recipe for target 'module-qtbase-make_first' failed
              make: *** [module-qtbase-make_first] Error 2

              when I crossing-build the source it show these errors. Do you kown it?

              S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 10 Aug 2017, 07:30 last edited by
              #6

              @vincent365 said in the opengl functionality tests failed:

              ees.o .obj/uncompr.o .obj/zutil.o
              make[3]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap'
              make[2]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src'
              Makefile:45: recipe for target 'sub-src-make_first' failed
              make[1]: *** [sub-src-make_first] Error 2
              make[1]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase'
              Makefile:72: recipe for target 'module-qtbase-make_first' failed
              make: *** [module-qtbase-make_first] Error 2

              when I crossing-build the source it show these errors. Do you kown it?

              This output does not show the error message, please look for it.

              Also, please don't steal somebody else's thread, your issue is probably unrelated to what liubbc wrote about.

              (Z(:^

              1 Reply Last reply
              0
              • B Offline
                B Offline
                billconan
                wrote on 21 Mar 2019, 18:23 last edited by
                #7

                saw similar issue, installed the following fixed it

                libgl1-mesa-dev \
                libglu1-mesa-dev
                
                1 Reply Last reply
                3
                • A Offline
                  A Offline
                  AnubhavM
                  wrote on 31 Aug 2020, 19:16 last edited by
                  #8

                  I know I am late , but others may be still looking, so anyway: please try adding -opengl desktop as a parameter. Worked for me.

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    Otso
                    wrote on 12 Mar 2022, 12:54 last edited by
                    #9

                    I got this error when I didn't have the ninja build system installed, and configure created the Makefile based build system. After installing ninja (the ninja-build package on Debian), it worked.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      KiranS
                      wrote on 24 Mar 2022, 06:27 last edited by
                      #10

                      I am also getting same error while compiling qt-everywhere-src-5.12.12 on CetnOS 7
                      Tried to get more logs with ./configure -v option

                      ERROR: The OpenGL functionality tests failed!
                      You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
                      QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
                      

                      I already installed : yum install mesa-libGL-devel mesa-libGLU-devel
                      Still same error

                      J 1 Reply Last reply 24 Mar 2022, 06:35
                      0
                      • K KiranS
                        24 Mar 2022, 06:27

                        I am also getting same error while compiling qt-everywhere-src-5.12.12 on CetnOS 7
                        Tried to get more logs with ./configure -v option

                        ERROR: The OpenGL functionality tests failed!
                        You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
                        QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
                        

                        I already installed : yum install mesa-libGL-devel mesa-libGLU-devel
                        Still same error

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 24 Mar 2022, 06:35 last edited by
                        #11

                        @KiranS Check the configure.log file - there must be more information than what you posted (compiler/linker call and the actual error message).

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

                        K 1 Reply Last reply 24 Mar 2022, 08:39
                        0
                        • J jsulm
                          24 Mar 2022, 06:35

                          @KiranS Check the configure.log file - there must be more information than what you posted (compiler/linker call and the actual error message).

                          K Offline
                          K Offline
                          KiranS
                          wrote on 24 Mar 2022, 08:39 last edited by
                          #12

                          @jsulm checked config log which has multiple dependency errors:

                          /root/tmp/qt-everywhere-src-5.12.12/qtdeclarative/config.tests/d3d12/d3d12.cpp:40:19: fatal error: d3d12.h: No such file or directory
                          /root/tmp/qt-everywhere-src-5.12.12/qtlocation/config.tests/winrt/main.cpp:30:28: fatal error: windows.system.h: No such file or directory
                          /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/alsa/alsatest.cpp:29:28: fatal error: alsa/asoundlib.h: No such file or directory
                          /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/khr/khr.cpp:29:29: fatal error: KHR/khrplatform.h: No such file or directory
                          /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/re2/re2.cpp:29:21: fatal error: re2/re2.h: No such file or directory
                          /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/snappy/snappy.cpp:29:20: fatal error: snappy.h: No such file or directory

                          to resolve it I installed below packages but no luck

                          libvkd3d-devel
                          kf5-kwindowsystem-devel
                          alsa-lib-devel
                          pcre2-devel
                          snappy-devel
                          
                          J 1 Reply Last reply 24 Mar 2022, 08:41
                          0
                          • K KiranS
                            24 Mar 2022, 08:39

                            @jsulm checked config log which has multiple dependency errors:

                            /root/tmp/qt-everywhere-src-5.12.12/qtdeclarative/config.tests/d3d12/d3d12.cpp:40:19: fatal error: d3d12.h: No such file or directory
                            /root/tmp/qt-everywhere-src-5.12.12/qtlocation/config.tests/winrt/main.cpp:30:28: fatal error: windows.system.h: No such file or directory
                            /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/alsa/alsatest.cpp:29:28: fatal error: alsa/asoundlib.h: No such file or directory
                            /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/khr/khr.cpp:29:29: fatal error: KHR/khrplatform.h: No such file or directory
                            /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/re2/re2.cpp:29:21: fatal error: re2/re2.h: No such file or directory
                            /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/snappy/snappy.cpp:29:20: fatal error: snappy.h: No such file or directory

                            to resolve it I installed below packages but no luck

                            libvkd3d-devel
                            kf5-kwindowsystem-devel
                            alsa-lib-devel
                            pcre2-devel
                            snappy-devel
                            
                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 24 Mar 2022, 08:41 last edited by
                            #13

                            @KiranS said in the opengl functionality tests failed:

                            but no luck

                            Still same errors?
                            I suggest to run configure from clean state (new build folder).

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

                            K 1 Reply Last reply 28 Mar 2022, 06:58
                            0
                            • J jsulm
                              24 Mar 2022, 08:41

                              @KiranS said in the opengl functionality tests failed:

                              but no luck

                              Still same errors?
                              I suggest to run configure from clean state (new build folder).

                              K Offline
                              K Offline
                              KiranS
                              wrote on 28 Mar 2022, 06:58 last edited by
                              #14

                              @jsulm Thank you for your help, errors disappeared after running configure in fresh directory. :)

                              A 1 Reply Last reply 20 May 2022, 00:15
                              2
                              • K KiranS
                                28 Mar 2022, 06:58

                                @jsulm Thank you for your help, errors disappeared after running configure in fresh directory. :)

                                A Offline
                                A Offline
                                agarny
                                wrote on 20 May 2022, 00:15 last edited by
                                #15

                                I was also having that problem, but configure is indeed fine with OpenGL when run from a fresh directory (and after installing the relevant OpenGL package(s), I can't recall which ones). Man, so much time wasted on such a simple fix.

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  imyhxy
                                  wrote on 31 May 2022, 12:14 last edited by
                                  #16

                                  Add -no-opengl to the configure command line option saves my life.

                                  1 Reply Last reply
                                  2

                                  • Login

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