How to Compile OpenGL for ARM
hi i tried compiling the opengl module for arm with no success.
How to compile opengl for ARM?
Can anyone help with steps.
What did fail ?
Did you get all the opengl libraries needed for arm to cross-compile Qt ?
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.
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.
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
yes gl.h is in GL subfolder inside /usr/include.
But where to get OpenGL packages for ARM.
OpenGL or OpenGL-ES?
Do you have a linux distribution for your target ?
are you asking about linux distribution of opengl?
No, about the linux distribution you are running on your board
@cat /proc/version@ command gives
Linux version 126.96.36.199 (ravivarman@linux) (gcc version 4.4.3 (crosstool-NG-1.8.2) ) #3 Tue May 14 14:40:1
9 IST 2013
This doesn't really help me, what system did you install on your target ? OpenEmbedded ? Angstrom ? Debian ?
Actually how to find it?
I'm using Digi Embedded Linux. I donno its distribution
pls look at the below link.
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
most probably debian.
because i use to run debian lib packages some time.
Debian is one thing but what you need to know is on top of what is their Qt 4 running (linuxfb or something else)
Actually our Target BSP is developed using LTIB.
IIRC, you also have linuxfb for Qt 5