Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. Want to set up Qt5 for developing application in Wandboard
Forum Updated to NodeBB v4.3 + New Features

Want to set up Qt5 for developing application in Wandboard

Scheduled Pinned Locked Moved India
59 Posts 2 Posters 38.7k 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.
  • M Offline
    M Offline
    Mayur Gaikwad
    wrote on last edited by
    #10

    Still I got the same error as,

    #include <GLES2/gl2.h>
    ^
    compilation terminated.
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.x 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
    /home/msil/Qt5.3.1/5.3/Src/qtbase/mkspecs/devices/linux-imx6-g++.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #11

      Just run a find command on your system and check where GLES2/gl2.h header file is present.

      157

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mayur Gaikwad
        wrote on last edited by
        #12

        Its giving me response as,

        msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src$ find GLES2/gl2.h
        find: `GLES2/gl2.h': No such file or directory

        Not only this reply its giving same reply to all the include files as

        find: unicode/utypes.h': No such file or directory find: pulse/pulseaudio.h': No such file or directory
        find: glib.h': No such file or directory find: dbus/dbus.h': No such file or directory

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #13

          No not like that, you need to learn how to use find on linux.
          If you have locate command, run updatedb and then run command "locate gl2.h"
          Once you get the location of that header file and its corresponding library set those to variables QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in /home/msil/Qt5.3.1/5.3/Src/qtbase/mkspecs/devices/linux-imx6-g++

          157

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mayur Gaikwad
            wrote on last edited by
            #14

            Now I got the respose as

            msil@msil-ThinkCentre-Edge71:~$ locate gl2.h
            /home/msil/Qt5.3.1/5.3/Src/qtbase/include/QtANGLE/GLES2/gl2.h
            /home/msil/Qt5.3.1/5.3/Src/qtbase/mkspecs/common/ios/GLES2/gl2.h
            /home/msil/Qt5.3.1/5.3/Src/qtbase/src/3rdparty/angle/include/GLES2/gl2.h
            /home/msil/Qt5.3.1/5.3/Src/qtwebkit/Source/ThirdParty/ANGLE/include/GLES2/gl2.h
            /home/msil/Qt5.3.1/5.3/gcc/mkspecs/common/ios/GLES2/gl2.h
            /home/msil/qt5/qtbase/mkspecs/common/ios/GLES2/gl2.h
            /home/msil/qt5/qtbase/src/3rdparty/angle/include/GLES2/gl2.h
            /usr/include/GLES2/gl2.h

            Now can you plz tell me which one of these paths i need to take..

            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #15

              Probably the last one and set it to QMAKE_INCDIR_OPENGL_ES2 also search for something like libGLESv2.so and set the path to QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 to may be -lGLESv2

              157

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mayur Gaikwad
                wrote on last edited by
                #16

                For -lGLESv2 its giving response as ,

                msil@msil-ThinkCentre-Edge71:~$ locate -lGLESv2 --limit
                locate: invalid value `GLESv2' of --limit

                plz clear if i am wrong while passing command.
                rest one is woking.

                Can you plz tell me in which file i find the variables QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2?

                Is it inside the file named "qmake.conf"?

                I am having two qmake.conf files on location..
                a) /home/msil/Qt5.3.1/5.3/gcc/mkspecs/linux-arm-gnueabi-g++
                b) /home/msil/Qt5.3.1/5.3/Src/qtbase/mkspecs/linux-arm-gnueabi-g++

                Which location file I have to modify?

                1 Reply Last reply
                0
                • p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #17

                  No, -lGLESv2 is the library that you have to pass to QMAKE_LIBS_OPENGL_ES2 so that compiler understands that it has to compile the code against this library. Don't search it. Try passing that one as it is to QMAKE_LIBS_OPENGL_ES2.

                  See if you go to last posts of yours in this thread, you will see the below statements

                  bq. OpenGL ES 2.x 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 /home/msil/Qt5.3.1/5.3/Src/qtbase/mkspecs/devices/linux-imx6-g++.

                  So the second path.

                  157

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mayur Gaikwad
                    wrote on last edited by
                    #18

                    You are right.

                    I did the same. Let I am explaining it with steps.

                    step1: Go to the path & edit qmake.conf file & save it.

                    msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src/qtbase/mkspecs/devices/linux-imx6-g++$ nano qmake.conf

                    Please find the code inside qmake file.

                    @

                    qmake configuration for the Freescale iMX6 boards (single, dual and quad)

                    This mkspec is based and tested on the ltib-source-release 3.0.15

                    Building ltib including glib, gpu-drivers and what ever you want to use (e.g. dbus or fontconfig)

                    This mkspec is tested with a framebuffer (eglfs) configuration (not testes with X11)

                    A typical configure line looks like:

                    /home/tsenyk/qt5/qt5/configure -opensource -confirm-license -make libs -device imx6 \

                    -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \

                    -sysroot <path-to-your-ltib-install>/rootfs -no-gcc-sysroot \

                    -prefix /usr/local/Qt-5.0.0/Qt5-imx6-1

                    NOTE: currently ltib doesn't produce a proper staging/sysroot-filessystem.

                    If gcc's --sysroot is used, the toolchain doesn't find basic binaries (e.g. crt1.o),

                    therefore you have to pass -no-gcc-sysroot to configure if you pass -sysroot to configure!

                    include(../common/linux_device_pre.conf)

                    EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_imx6.cpp

                    *QMAKE_INCDIR_OPENGL += /home/msil/Qt5.3.1/5.3/Src/qtwebkit/Source/ThirdParty/ANGLE/include/GLES2/gl2.h
                    QMAKE_LIBDIR_OPENGL += /usr/lib/i386-linux-gnu/libGLESv2.so
                    *
                    QMAKE_LIBS_EGL += -lEGL
                    QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
                    QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL

                    QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib

                    IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
                    IMX6_CFLAGS_RELEASE = -O2 $$IMX6_CFLAGS
                    QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
                    QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
                    QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
                    QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGS

                    include(../common/linux_arm_device_post.conf)

                    load(qt_config) @

                    step2: Go to the path & enter the Command

                    msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src/qtbase$ sudo ./configure -v -opensource -confirm-license -no-pch -no-xcb -no-opengl -opengl es2 -make libs -device-option CROSS_COMPILE=/home/msil/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf- -device linux-imx6-g++ -sysroot /media/msil/rootfs -no-gcc-sysroot -prefix /Qt5.3.1
                    [sudo] password for msil:

                    But after this again the same error occurs.

                    I am not getting what is wrong in this.

                    1 Reply Last reply
                    0
                    • p3c0P Offline
                      p3c0P Offline
                      p3c0
                      Moderators
                      wrote on last edited by
                      #19

                      Where's QMAKE_INCDIR_OPENGL_ES2 ?
                      Set path until the folder and donot include header filename.

                      Where's QMAKE_LIBDIR_OPENGL_ES2 ?
                      Set path until the folder and donot include library filename.

                      157

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mayur Gaikwad
                        wrote on last edited by
                        #20

                        You mean to say,
                        I have to include only the path & not the include files.

                        As per my understanding this must be,

                        QMAKE_INCDIR_OPENGL += /home/msil/Qt5.3.1/5.3/Src/qtwebkit/Source/ThirdParty/ANGLE/include/GLES2

                        QMAKE_LIBDIR_OPENGL += /usr/lib/i386-linux-gnu

                        Is it OK?

                        And what about QMAKE_LIBS_OPENGL_ES2 ?

                        Is it OK with QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL

                        1 Reply Last reply
                        0
                        • p3c0P Offline
                          p3c0P Offline
                          p3c0
                          Moderators
                          wrote on last edited by
                          #21

                          Yes the path's are correct but not the variables. See there's _ES2 appended to each variable.

                          157

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mayur Gaikwad
                            wrote on last edited by
                            #22

                            Ohhh, sorry

                            QMAKE_INCDIR_OPENGL_ES2 += /home/msil/Qt5.3.1/5.3/Src/qtwebkit/Source/ThirdParty/ANGLE/include/GLES2

                            QMAKE_LIBDIR_OPENGL_ES2 += /usr/lib/i386-linux-gnu

                            OK now?

                            And what about rest code in qmake.conf, is it ok?

                            1 Reply Last reply
                            0
                            • p3c0P Offline
                              p3c0P Offline
                              p3c0
                              Moderators
                              wrote on last edited by
                              #23

                              Sorry, set QMAKE_INCDIR_OPENGL_ES2 to /usr/include/GLES2/

                              157

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mayur Gaikwad
                                wrote on last edited by
                                #24

                                I set

                                QMAKE_INCDIR_OPENGL_ES2 = /usr/include/GLES2/

                                & rest code is as it is.
                                But after giving ./configure command problem is still as it is.

                                1 Reply Last reply
                                0
                                • p3c0P Offline
                                  p3c0P Offline
                                  p3c0
                                  Moderators
                                  wrote on last edited by
                                  #25

                                  But all the Paths are now correctly set ? Can you post the new qmake.conf ?

                                  157

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    Mayur Gaikwad
                                    wrote on last edited by
                                    #26

                                    Please see the new qmake.conf file

                                    @#

                                    qmake configuration for the Freescale iMX6 boards (single, dual and quad)

                                    This mkspec is based and tested on the ltib-source-release 3.0.15

                                    Building ltib including glib, gpu-drivers and what ever you want to use (e.g. dbus or fontconfig)

                                    This mkspec is tested with a framebuffer (eglfs) configuration (not testes with X11)

                                    A typical configure line looks like:

                                    /home/tsenyk/qt5/qt5/configure -opensource -confirm-license -make libs -device imx6 \

                                    -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \

                                    -sysroot <path-to-your-ltib-install>/rootfs -no-gcc-sysroot \

                                    -prefix /usr/local/Qt-5.0.0/Qt5-imx6-1

                                    NOTE: currently ltib doesn't produce a proper staging/sysroot-filessystem.

                                    If gcc's --sysroot is used, the toolchain doesn't find basic binaries (e.g. crt1.o),

                                    therefore you have to pass -no-gcc-sysroot to configure if you pass -sysroot to configure!

                                    include(../common/linux_device_pre.conf)

                                    EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_imx6.cpp

                                    QMAKE_INCDIR_OPENGL_ES2 += /usr/include/GLES2/
                                    QMAKE_LIBDIR_OPENGL_ES2 += /usr/lib/i386-linux-gnu/

                                    QMAKE_LIBS_EGL += -lEGL
                                    QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
                                    QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL

                                    QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib

                                    IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
                                    IMX6_CFLAGS_RELEASE = -O2 $$IMX6_CFLAGS
                                    QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
                                    QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
                                    QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
                                    QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGS

                                    include(../common/linux_arm_device_post.conf)

                                    load(qt_config)@

                                    1 Reply Last reply
                                    0
                                    • p3c0P Offline
                                      p3c0P Offline
                                      p3c0
                                      Moderators
                                      wrote on last edited by
                                      #27

                                      Can you make sure those libraries are for ARM ? You can use file command for that.
                                      eg.
                                      @
                                      file /usr/lib/i386-linux-gnu/libGLESv2.so
                                      @

                                      and post the output here

                                      157

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        Mayur Gaikwad
                                        wrote on last edited by
                                        #28

                                        No these files are not for ARM, its for Intel, see the o/p

                                        msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src/qtbase$ file /usr/lib/i386-linux-gnu/libGLESv2.so
                                        /usr/lib/i386-linux-gnu/libGLESv2.so: symbolic link to `mesa-egl/libGLESv2.so'

                                        msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src/qtbase$ file /usr/lib/i386-linux-gnu/mesa-egl/libGLESv2.so
                                        /usr/lib/i386-linux-gnu/mesa-egl/libGLESv2.so: symbolic link to `libGLESv2.so.2.0.0'

                                        msil@msil-ThinkCentre-Edge71:~/Qt5.3.1/5.3/Src/qtbase$ file /usr/lib/i386-linux-gnu/mesa-egl/libGLESv2.so.2.0.0
                                        /usr/lib/i386-linux-gnu/mesa-egl/libGLESv2.so.2.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=9a43029fd41b7b30967de0b2c1b43bcdd5316606, stripped

                                        How to get corresponding ARM files?

                                        1 Reply Last reply
                                        0
                                        • p3c0P Offline
                                          p3c0P Offline
                                          p3c0
                                          Moderators
                                          wrote on last edited by
                                          #29

                                          Can you again locate libGLESv2.so and check if there's other libraries and then running file command for each of them ?
                                          But since you have apt-get install'd the drivers it should have downloaded the ARM versions of those libraries instead of Intel.
                                          Is wandboard arm based for sure ?

                                          157

                                          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