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 ES 2.0 functionality test failed
QtWS25 Last Chance

The OpenGL ES 2.0 functionality test failed

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 2 Posters 8.6k 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.
  • S Offline
    S Offline
    small_bird
    wrote on 5 Oct 2016, 11:09 last edited by small_bird 10 May 2016, 11:18
    #1

    When I cross-compiled qt5.6.1 for my arm board, I got the following error:

    OpenGL ES 2.0 auto-detection... ()
    arm-arago-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I/home/smallbird/tslib1.4/include -I/usr/opengles2/include/GLES2 -I/usr/opengles2/include/GLES2 -I../../../mkspecs/linux-arm-gnueabi-g++ -o opengles2.o openglesp
    arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
    as: unrecognized option '-mfloat-abi=softfp'
    Makefile:177: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.0 disabled.
    The OpenGL ES 2.0 functionality test 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
    /usr/qt-everywhere-opensource-src-5.6.1/qtbase/mkspecs/linux-arm-gnueabi-g++.

    However, I have already designated the Include and Library path and the header files and library files are got through the way that I cross-compiled mesa-12.
    Many people have came across this kind of problem ! Does anyone know the reason ?
    Hope this topic can help more people !
    Thanks in advance !

    J 1 Reply Last reply 5 Oct 2016, 11:58
    0
    • S small_bird
      5 Oct 2016, 11:09

      When I cross-compiled qt5.6.1 for my arm board, I got the following error:

      OpenGL ES 2.0 auto-detection... ()
      arm-arago-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I/home/smallbird/tslib1.4/include -I/usr/opengles2/include/GLES2 -I/usr/opengles2/include/GLES2 -I../../../mkspecs/linux-arm-gnueabi-g++ -o opengles2.o openglesp
      arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
      as: unrecognized option '-mfloat-abi=softfp'
      Makefile:177: recipe for target 'opengles2.o' failed
      make: *** [opengles2.o] Error 1
      OpenGL ES 2.0 disabled.
      The OpenGL ES 2.0 functionality test 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
      /usr/qt-everywhere-opensource-src-5.6.1/qtbase/mkspecs/linux-arm-gnueabi-g++.

      However, I have already designated the Include and Library path and the header files and library files are got through the way that I cross-compiled mesa-12.
      Many people have came across this kind of problem ! Does anyone know the reason ?
      Hope this topic can help more people !
      Thanks in advance !

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 5 Oct 2016, 11:58 last edited by
      #2

      @small_bird These directories are on your host PC:

      -I/usr/opengles2/include/GLES2 -I/usr/opengles2/include
      

      you need to use those from your sysroot.

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

      S 1 Reply Last reply 5 Oct 2016, 12:26
      2
      • J jsulm
        5 Oct 2016, 11:58

        @small_bird These directories are on your host PC:

        -I/usr/opengles2/include/GLES2 -I/usr/opengles2/include
        

        you need to use those from your sysroot.

        S Offline
        S Offline
        small_bird
        wrote on 5 Oct 2016, 12:26 last edited by
        #3

        @jsulm I know what you mean. However, the compiler has found the headers and the libraries. Why it still tell me that I need to designate the path variables ?

        J 1 Reply Last reply 5 Oct 2016, 12:31
        0
        • S small_bird
          5 Oct 2016, 12:26

          @jsulm I know what you mean. However, the compiler has found the headers and the libraries. Why it still tell me that I need to designate the path variables ?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 5 Oct 2016, 12:31 last edited by
          #4

          @small_bird The actual issue is this:

          arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
          as: unrecognized option '-mfloat-abi=softfp'
          

          I don't know why this happens.
          arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory - looks like the C++ compiler is not found.
          as: unrecognized option '-mfloat-abi=softfp' - looks like the wrong assembler (x86) is called.

          Is your build environment broken? How do you call configure?

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

          S 2 Replies Last reply 5 Oct 2016, 12:34
          1
          • J jsulm
            5 Oct 2016, 12:31

            @small_bird The actual issue is this:

            arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
            as: unrecognized option '-mfloat-abi=softfp'
            

            I don't know why this happens.
            arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory - looks like the C++ compiler is not found.
            as: unrecognized option '-mfloat-abi=softfp' - looks like the wrong assembler (x86) is called.

            Is your build environment broken? How do you call configure?

            S Offline
            S Offline
            small_bird
            wrote on 5 Oct 2016, 12:34 last edited by small_bird 10 May 2016, 12:37
            #5

            @jsulm

            #!/bin/sh
            ./configure
            -v
            -prefix /home/smallbird/qt5.6.1
            -release
            -continue
            -confirm-license
            -plugin-sql-sqlite
            -qt-libjpeg
            -qt-libpng
            -qt-zlib
            -opengl es2
            -no-c++11
            -qpa xcb
            -qt-xcb
            -opensource
            -xplatform linux-arm-gnueabi-g++
            -force-pkg-config
            -make examples
            -no-dbus
            -pkg-config
            -qt-freetype
            -qt-pcre
            -I/home/smallbird/tslib1.4/include
            -L/home/smallbird/tslib1.4/lib
            exit

            This is my configuration.

            J 1 Reply Last reply 5 Oct 2016, 12:37
            0
            • S small_bird
              5 Oct 2016, 12:34

              @jsulm

              #!/bin/sh
              ./configure
              -v
              -prefix /home/smallbird/qt5.6.1
              -release
              -continue
              -confirm-license
              -plugin-sql-sqlite
              -qt-libjpeg
              -qt-libpng
              -qt-zlib
              -opengl es2
              -no-c++11
              -qpa xcb
              -qt-xcb
              -opensource
              -xplatform linux-arm-gnueabi-g++
              -force-pkg-config
              -make examples
              -no-dbus
              -pkg-config
              -qt-freetype
              -qt-pcre
              -I/home/smallbird/tslib1.4/include
              -L/home/smallbird/tslib1.4/lib
              exit

              This is my configuration.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 5 Oct 2016, 12:37 last edited by
              #6

              @small_bird said in The OpenGL ES 2.0 functionality test failed:

              -sysroot /

              "-sysroot /"? So, your host PC file-system is your sysroot? This is for sure not going to work.

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

              S 2 Replies Last reply 5 Oct 2016, 12:38
              1
              • J jsulm
                5 Oct 2016, 12:37

                @small_bird said in The OpenGL ES 2.0 functionality test failed:

                -sysroot /

                "-sysroot /"? So, your host PC file-system is your sysroot? This is for sure not going to work.

                S Offline
                S Offline
                small_bird
                wrote on 5 Oct 2016, 12:38 last edited by
                #7

                @jsulm Sorry for that, I have corrected it.

                1 Reply Last reply
                0
                • J jsulm
                  5 Oct 2016, 12:31

                  @small_bird The actual issue is this:

                  arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
                  as: unrecognized option '-mfloat-abi=softfp'
                  

                  I don't know why this happens.
                  arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory - looks like the C++ compiler is not found.
                  as: unrecognized option '-mfloat-abi=softfp' - looks like the wrong assembler (x86) is called.

                  Is your build environment broken? How do you call configure?

                  S Offline
                  S Offline
                  small_bird
                  wrote on 5 Oct 2016, 12:43 last edited by
                  #8

                  @jsulm
                  But you really remind me of some method.
                  There is some option that could change the configuration: -mfloat-abi=softfp.

                  1 Reply Last reply
                  0
                  • J jsulm
                    5 Oct 2016, 12:37

                    @small_bird said in The OpenGL ES 2.0 functionality test failed:

                    -sysroot /

                    "-sysroot /"? So, your host PC file-system is your sysroot? This is for sure not going to work.

                    S Offline
                    S Offline
                    small_bird
                    wrote on 5 Oct 2016, 13:24 last edited by
                    #9

                    @jsulm
                    But you really remind me of some method.
                    There is some option that could change the configuration: -mfloat-abi=softfp.
                    It is -qreal option. However, it can only change the qreal type.
                    Then how to solve the problem ?

                    J 1 Reply Last reply 6 Oct 2016, 04:20
                    0
                    • S small_bird
                      5 Oct 2016, 13:24

                      @jsulm
                      But you really remind me of some method.
                      There is some option that could change the configuration: -mfloat-abi=softfp.
                      It is -qreal option. However, it can only change the qreal type.
                      Then how to solve the problem ?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 6 Oct 2016, 04:20 last edited by
                      #10

                      @small_bird The first problem to solve is:

                      arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
                      

                      It looks like something is wrong with your build environment. Are you able to build a simple C++ program with this environment?

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

                      S 1 Reply Last reply 6 Oct 2016, 08:34
                      1
                      • J jsulm
                        6 Oct 2016, 04:20

                        @small_bird The first problem to solve is:

                        arm-arago-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
                        

                        It looks like something is wrong with your build environment. Are you able to build a simple C++ program with this environment?

                        S Offline
                        S Offline
                        small_bird
                        wrote on 6 Oct 2016, 08:34 last edited by
                        #11

                        @jsulm No, I can not build c++ program. The error is the same !

                        J 1 Reply Last reply 6 Oct 2016, 08:39
                        0
                        • S small_bird
                          6 Oct 2016, 08:34

                          @jsulm No, I can not build c++ program. The error is the same !

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 6 Oct 2016, 08:39 last edited by
                          #12

                          @small_bird Then I would say your build environment (compiler) is broken.

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

                          S 1 Reply Last reply 6 Oct 2016, 08:45
                          0
                          • J jsulm
                            6 Oct 2016, 08:39

                            @small_bird Then I would say your build environment (compiler) is broken.

                            S Offline
                            S Offline
                            small_bird
                            wrote on 6 Oct 2016, 08:45 last edited by
                            #13

                            @jsulm Yes, I am checking for that. However, gcc compiler is all right.

                            1 Reply Last reply
                            0

                            10/13

                            6 Oct 2016, 04:20

                            • Login

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