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
QtWS25 Last Chance

How to Compile OpenGL for ARM

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 3 Posters 11.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.
  • D Offline
    D Offline
    dreamerindia
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 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 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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 last edited by
                  #8

                  are you asking about linux distribution of opengl?

                  ~Ravivarman~

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 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 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
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 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 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
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 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 last edited by
                              #14

                              most probably debian.

                              because i use to run debian lib packages some time.

                              ~Ravivarman~

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 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 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 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
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 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

                                      • Login

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