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. How to Compile OpenGL for ARM
Forum Updated to NodeBB v4.3 + New Features

How to Compile OpenGL for ARM

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 3 Posters 11.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.
  • D Offline
    D Offline
    dreamerindia
    wrote on 6 Aug 2013, 13:34 last edited by
    #1

    hi i tried compiling the opengl module for arm with no success.

    How to compile opengl for ARM?

    Can anyone help with steps.

    ~Ravivarman~

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Aug 2013, 14:19 last edited by
      #2

      Hi,

      What did fail ?

      Did you get all the opengl libraries needed for arm to cross-compile Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dreamerindia
        wrote on 7 Aug 2013, 05:35 last edited by
        #3

        Actually i'm developing the QT in qt creator and compiling it on QT-Eclipse Integrated IDE for ARM target.
        I Can Successfully compile and run the QWT widgets(http://qwt.sourceforge.net) in qt creator in x86 host.
        But when i try to compile it on eclipse for arm target it gives error in GLWidget.
        So i copied the QtOpenGL header files from qt sdk include folder (/home/ravivarman/qtsdk-2010.03/qt/include/) to arm target include folder (/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/include/)
        I also downloaded qwt lib files (http://www.openmamba.org/distribution/distromatic.html?tag=devel-future&pkg=libqwt.arm) for ARM and pasted in target lib directory (/exports/nfsroot-ccwmx51js/usr/lib/)

        When i compiled the qwt example project in Eclipse IDE i get these 4 errors.
        1.'GL_TEXTURE_2D' was not declared in this scope'
        2.'GLenum' has not been declared'
        3.'GLuint' does not name a type'
        4.'GL/gl.h: No such file or directory'

        gl.h is in /usr/include directory and GL_TEXTURE_2D,GLenum & GLuint are declared in this header.so i included this path in the project.still it showing error.

        kindly help.

        ~Ravivarman~

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on 7 Aug 2013, 07:57 last edited by
          #4

          Im totally not familiar with this, but maybe you are trying to compile the normal opengl for arm? As far as I know, arm only supports opengl Es for mobile devices/embedded systems.
          But probably someone with more knowledge should be able to help you.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 7 Aug 2013, 07:57 last edited by
            #5

            You need to get the OpenGL packages for ARM not just copy your headers in your cross-compiler environment.

            Also gl.h should be found in a GL sub-folder

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dreamerindia
              wrote on 7 Aug 2013, 08:51 last edited by
              #6

              yes gl.h is in GL subfolder inside /usr/include.

              But where to get OpenGL packages for ARM.

              OpenGL or OpenGL-ES?

              ~Ravivarman~

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 7 Aug 2013, 12:02 last edited by
                #7

                Do you have a linux distribution for your target ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dreamerindia
                  wrote on 7 Aug 2013, 12:23 last edited by
                  #8

                  are you asking about linux distribution of opengl?

                  ~Ravivarman~

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 7 Aug 2013, 13:01 last edited by
                    #9

                    No, about the linux distribution you are running on your board

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dreamerindia
                      wrote on 7 Aug 2013, 13:48 last edited by
                      #10

                      @cat /proc/version@ command gives

                      Linux version 2.6.31.14 (ravivarman@linux) (gcc version 4.4.3 (crosstool-NG-1.8.2) ) #3 Tue May 14 14:40:1
                      9 IST 2013

                      ~Ravivarman~

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 7 Aug 2013, 13:54 last edited by
                        #11

                        This doesn't really help me, what system did you install on your target ? OpenEmbedded ? Angstrom ? Debian ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dreamerindia
                          wrote on 7 Aug 2013, 14:10 last edited by
                          #12

                          Actually how to find it?

                          I'm using Digi Embedded Linux. I donno its distribution

                          pls look at the below link.

                          "http://www.digi.com/pdf/fs_digiembeddedlinux.pdf":http://www.digi.com/pdf/fs_digiembeddedlinux.pdf

                          ~Ravivarman~

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 7 Aug 2013, 15:26 last edited by
                            #13

                            The best is to check with Digi what exactly is provided with their system (framebuffer/DirectFB/OpenGL support etc...) then you'll be able to go further

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dreamerindia
                              wrote on 9 Aug 2013, 04:54 last edited by
                              #14

                              most probably debian.

                              because i use to run debian lib packages some time.

                              ~Ravivarman~

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 9 Aug 2013, 07:52 last edited by
                                #15

                                Debian is one thing but what you need to know is on top of what is their Qt 4 running (linuxfb or something else)

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dreamerindia
                                  wrote on 9 Aug 2013, 09:25 last edited by
                                  #16

                                  Actually our Target BSP is developed using LTIB.

                                  ~Ravivarman~

                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    dreamerindia
                                    wrote on 9 Aug 2013, 09:36 last edited by
                                    #17

                                    After reading "https://community.freescale.com/thread/261568":https://community.freescale.com/thread/261568 yea its linuxfb

                                    ~Ravivarman~

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 9 Aug 2013, 20:25 last edited by
                                      #18

                                      IIRC, you also have linuxfb for Qt 5

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0

                                      5/18

                                      7 Aug 2013, 07:57

                                      topic:navigator.unread, 13
                                      • Login

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