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

                  Hi,

                  1. Right now I am compiling code in Qt which is installed on my desktop PC. i haven't port Qt on wandboard.
                  2. The above path which i mentioned is on system directory. thats means its in my PC rootfs.
                  1 Reply Last reply
                  0
                  • p3c0P Offline
                    p3c0P Offline
                    p3c0
                    Moderators
                    wrote on last edited by
                    #46

                    Ok.
                    Do you have the Ubuntu OS for WandBoard image? If not you can create it from the OS that is flashed on your board using dd command. Then mount that image on your Host PC so that you can compile Qt in that ARM compatible Ubuntu OS environment.

                    Can you see "this":http://www.ics.com/blog/building-qt-5-raspberry-pi#.U9tTk3Ka60k ? It explains nicely how to compile Qt5 for Raspberry Pi. I think it will be a similar process with just toolchain and compiling environment changes. Anyway it explains nicely about the cross compiling so that you get understanding what cross compiling is.

                    Edited

                    157

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

                      Let me tell you, how i reached to this stage of developement, so that you can notice what part is done & what is left.

                      I have followed Robert Nelson Method to set up SD card to boot Wandboard. I have successfully boot the Wandboard which will create command prompt & arm login on Wandboard. Also i have tested a simple "Hello Word" program written in vi editor & cross compile from Linaro Toolchain (gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux) on wandboard.

                      Also I have download "qt-opensource-linux-x86-5.3.1.run" file & run it using terminal commands.

                      Then i generate new project in Qtcreater of Qt5.3.1 & then compile it for local platform. Its compile successfuly gives o/p file for host machine (My desktop PC).
                      Now I want to do the same (that is cross compiling) for target board (Wandboard). For that I want to set up compilers, Kits, debuggers, Devices & Qt versions ( from the path Tools > Options > Build & Run) which will generate o/p file for Wandboard.

                      Now tell me what to do next.

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

                        bq. Also i have tested a simple “Hello Word” program written in vi editor & cross compile from Linaro Toolchain (gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux) on wandboard.

                        The hello world program you have compiled requires just an arm gcc compiler which is provided by the toolchain and nothing other external.

                        bq. For that I want to set up compilers, Kits, debuggers, Devices & Qt versions ( from the path Tools > Options > Build & Run) which will generate o/p file for Wandboard.

                        For this you need to compile Qt5 for Wandboard first but for that you need ARM compatible OpenGL ES libraries which are not on your host machine but are on your target machine.

                        For that you have to mount the ARM compatible Ubuntu OS's image on your host system so that you get the complete environment and compilation can carry on.

                        After compilation succeeds you can add this Qt5 build as a kit to the Qt creator also compiler to be set as the arm linaro gcc so that when you compile applications it compiles for the arm.

                        Now you first need to find way to mount that WandBoard Ubuntu OS's image on your host system.
                        Refer to the ICS link that i posted earlier where you can see how to create an image and how to mount it.

                        157

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

                          Hi,

                          I have ported the Ubuntu image for wandboard in to the SD card using Win32imagewriter.
                          I have observed the file type of "libGLESv2.so.2.0.0" & it gives ARM compatible.
                          I have copied both "gl2.h" & "libGLESv2.so.2.0.0" file at my pc Desktop. Now tell me what to do next to configure the file?

                          Can i replace these files with the Intel compatible files located at toolchain?

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

                            bq. I have ported the Ubuntu image for wandboard in to the SD card using Win32imagewriter.

                            Did you flashed it back on to SD card ? You must not.
                            You have to create image file from OS on the SD card.
                            So do you have the image file ?

                            157

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

                              Actually I have downloaded ubuntu image file from "http://www.wandboard.org/index.php/downloads".
                              Then i format my SD card & port that image file into SD card using card reader & "Win32DiskImager-0.9.5-install" tool.
                              Then I read the SD card using card reader & search the files “gl2.h” & “libGLESv2.so.2.0.0” in the sd card.

                              I got these files in SD card, then I copied that files to my desktop.

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

                                bq. Then i format my SD card & port that image file into SD card using card reader & “Win32DiskImager-0.9.5-install” tool.

                                Good that you flashed it. But we need the image file which you have downloaded from the said site.

                                Ok, Now you need to mount that image on your host system.
                                For that go to the ICS link that i posted earlier as refer from,

                                bq. You will need the offset for the Linux image to mount it. If it's not otherwise provided with the download, you can determine it using losetup. There are 512 bytes per sector, so in the example below the offset is 122880 * 512 = 62914560.
                                $ sudo /sbin/losetup /dev/loop0 raspberry-working-image.img
                                $ sudo /sbin/fdisk -l /dev/loop0
                                ...
                                Device Boot Start End Blocks Id System
                                /dev/loop0p1 8192 122879 57344 c W95 FAT32
                                /dev/loop0p2 122880 3788799 1832960 83 Linux
                                ...
                                $ sudo /sbin/losetup -d /dev/loop0
                                Now create a mount point and mount the image:
                                $ sudo mkdir /mnt/raspberry-rootfs
                                $ sudo mount -o loop,offset=62914560
                                raspberry-working-image.img /mnt/raspberry-rootfs
                                $ ls /mnt/raspberry-rootfs
                                bin dev home lost+found mnt proc run selinux sys usr
                                boot etc lib media opt root sbin srv tmp var

                                Follow above as per your requirements.

                                bq. I got these files in SD card, then I copied that files to my desktop.

                                No use of copying those files on your host system as it will possibly require the whole environment which you are going to create now by mounting the image file as explained in above steps.

                                157

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

                                  Hi,

                                  As per the previous discussion, i haved tried that command sequence but I am getting stuck at below command.
                                  *sudo mount -o loop,offset=62914560 \

                                  Wandboard-Ubuntu-image.img /mnt/wandboard-rootfs/*

                                  It gives error as mount: you must specify the filesystem type.

                                  After searching on net i pass filesystem type in command as
                                  *sudo mount -o loop,offset=62914560 \

                                  Wandboard-Ubuntu-image.img /mnt/wandboard-rootfs/ -t ext3*
                                  then the response is
                                  mount: wrong fs type, bad option, bad superblock on /dev/loop0,
                                  missing codepage or helper program, or other error
                                  In some cases useful info is found in syslog - try
                                  dmesg | tail or so

                                  After this I tried the command dmeg | tail but the response is not understanding.

                                  Can you plz help me to resolve this?

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

                                    Can you show what type is it ?
                                    file Wandboard-Ubuntu-image.img

                                    157

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

                                      It is a x86 boot sector

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

                                        Sorry to mention but i too don't know. Try searching the internet for how to mount that image.

                                        157

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

                                          Hi,

                                          We have decided to move on Yocto instead of Ubuntu.
                                          So I am now staring on Yocto. while building Qt using yocto on wandboard I require your help.

                                          Hope you will support me at that time.

                                          Thanks for your outstanding support till now.

                                          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