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 37.5k 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.
  • 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
            • M Offline
              M Offline
              Mayur Gaikwad
              wrote on last edited by
              #30

              When I give locate libGLESv2.so then only a single file found which is for Intel version. No other file found.

              i am not getting what you asked about Wandboard, can you plz elaborate?

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

                I said that since you have installed opengl es libraries using apt-get i think it should have downloaded arm compatible libraries and not intel
                Can you
                @
                apt-get install libgles1-mesa libgles1-mesa-dev
                apt-get install freeglut3 freeglut3-dev
                @

                and then see if you get arm based libraries

                157

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

                  Still I am not getting the libGLESv2.so file other than previous.

                  Can you tell from scratch how to setup Qt for my wandboard application?

                  I think there is some wrong at my end while doing all this thing.

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

                    can I explain you in brief how i am started & how i reached at this stage in my project?

                    this will help you to know if i was wrong at some point during this progress.

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

                      First we need to configure Qt before compiling, so during configuration process we get this OpenGL ES error, we have installed the libraries, found the paths of it's related header files and libraries and saved it to qmake.conf using those variables.
                      The problem i guess here is those libraries are Intel and not ARM and we need ARM compatible libraries since board is ARM based.

                      One way would be try repeating the whole process again to errors if any.

                      Well i think best would be to ask on their "forums":http://www.wandboard.org/index.php/forums, someone definitel must have done it for ubuntu and not yocto..

                      157

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

                        Ok ,
                        Surely I will put the same problem at Wandboard forum. Lets see what is reply from that forum.

                        I will get back to you once they reply.

                        Thanks.

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

                          Hi,

                          Just backtracked, since you are cross compiling, need to set the paths of OpenGL ES libs and headers to that of your toolchain. You toolchain must have those header files and the library too.

                          157

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

                            As you said, can you tell me what are the OpenGL ES libraries & headers for Linaro toolchain (gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux) which i am using.

                            Also plz tell me where to set the paths of those files.

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

                              The same that we searched earlier:
                              header - GLES2/gl2.h i.e GLES2/*
                              library - libGLESv2.so

                              It must be in the toolchain.

                              157

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

                                Hi,

                                I have checked the header files & library files within the toolchain but its not there.

                                You can check it by downloading the toolchain from below link.

                                "https://releases.linaro.org/14.04/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz":http://

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

                                  Another possibility of those OpenGL libraries would be in the Ubuntu image that you have downloaded. Can you search for those in the Ubuntu that you have flashed on the board ?

                                  157

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

                                    Hi,

                                    I search at my end i got header file GLES2/gl2.h at multiple when i put command "file path/GLES2/gl2.h" then at every path it gives C source file in ASCII format.
                                    Also I got only one libGLESv2.so library which is Compatible to Intel.

                                    Can i search libGLESv2.so file for ARM on Internet & download it & copy to my toolchain?

                                    is it OK?

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

                                      bq. Can i search libGLESv2.so file for ARM on Internet & download it & copy to my toolchain?

                                      Not sure if that would work.

                                      But did you search if it is in the Ubuntu OS that you flashed on the board ?
                                      It surely must be there.
                                      And if it's there you will need to compile Qt in that environment so that it picks up the ARM compatible OpenGL libraries.

                                      157

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

                                        Yes, the library libGLESv2.so is avilable at the location /usr/lib/i386-linux-gnu/mesa-egl & it is with Ubuntu OS. So how can I generate ARM compatible library with this.

                                        Can you provide steps?

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

                                          Lets clarify few things

                                          1. Where are you compiling Qt ? on the WandBoard or on your development machine ?
                                          2. Where is this above library on the WandBoard or your machine ?

                                          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