ARM OpenGL on SDL

Hi All:
I compiled successful SDL1.2.14, by this:
./configure --enable-video-qtopia --enable-video-directfb
–enable-video-opengl --disable-video-dummy --disable-video-fbcon
–disable-video-dga --disable-arts-shared --disable-arts --disable-esd
–disable-esd-shared --disable-alsa --disable-cdrom --disable-video-x11
–disable-nasm --disable-diskaudio --disable-mintaudio
–disable-video-ps2gs --disable-atari-ldg --disable-video-photon
–disable-nas --host=arm-linux --prefix=/opt/rootfs/cross/arm/libsdl

When try to compile the testgl.c program, get a “cannot find -lGL” error.
I can’t find openGL libs by Google, so Please tell me where to down the
openGL lib.

processor: ARM1176JZF

thanks–
Bian Jiang
http://www.wifihack.net/
http://golang-china.org/

I am not an expert, but as far as I know, the dev kit for ARM boards are
not freely available. You must contact the vendor of your board or ARM
(https://silver.arm.com/).

Lo?c

Le 28/06/2010 13:07, Bian Jiang a ?crit :> Hi All:

 I compiled successful SDL1.2.14, by this:
./configure --enable-video-qtopia --enable-video-directfb 

–enable-video-opengl --disable-video-dummy --disable-video-fbcon
–disable-video-dga --disable-arts-shared --disable-arts --disable-esd
–disable-esd-shared --disable-alsa --disable-cdrom --disable-video-x11
–disable-nasm --disable-diskaudio --disable-mintaudio
–disable-video-ps2gs --disable-atari-ldg --disable-video-photon
–disable-nas --host=arm-linux --prefix=/opt/rootfs/cross/arm/libsdl

When try to compile the testgl.c program, get a "cannot find -lGL"
error. I can’t find openGL libs by Google, so Please tell me where to
down the openGL lib.

processor: ARM1176JZF

thanks


Bian Jiang
http://www.wifihack.net/
http://golang-china.org/



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

just a guess, you are on a platform with OpenGL ES instead of std OpenGL?
Something embedded i presume. OpenGL ES ist completely different to normal
OpenGL and as far as i’ve read SDL 1.2 does not support GLES natively.On Mon, 28 Jun 2010 19:07:46 +0800, Bian Jiang wrote:

Hi All:?? ? I compiled successful SDL1.2.14, by this:??
?./configure --enable-video-qtopia --enable-video-directfb
–enable-video-opengl --disable-video-dummy --disable-video-fbcon
?–disable-video-dga --disable-arts-shared --disable-arts --disable-esd
–disable-esd-shared --disable-alsa --disable-cdrom --disable-video-x11
–disable-nasm ?–disable-diskaudio --disable-mintaudio
–disable-video-ps2gs --disable-atari-ldg --disable-video-photon
?–disable-nas --host=arm-linux --prefix=/opt/rootfs/cross/arm/libsdl
??When try to compile the testgl.c program, get a ?"cannot find -lGL"
error. ?I can’t find openGL libs by Google, so Please tell me where to
down the openGL lib.
?processor: ARM1176JZF
thanks


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

What system are you running? If you can run X, you can probably run
Mesa, you’ll have access to a software implementation of OpenGL, which
is perfect since it doesn’t sound like you have specialized graphics
hardware.On Mon, Jun 28, 2010 at 7:07 AM, Bian Jiang wrote:

Hi All:
?? ? I compiled successful SDL1.2.14, by this:
?? ?./configure --enable-video-qtopia --enable-video-directfb
–enable-video-opengl --disable-video-dummy --disable-video-fbcon
?–disable-video-dga --disable-arts-shared --disable-arts --disable-esd
–disable-esd-shared --disable-alsa --disable-cdrom --disable-video-x11
–disable-nasm ?–disable-diskaudio --disable-mintaudio
–disable-video-ps2gs --disable-atari-ldg --disable-video-photon
?–disable-nas --host=arm-linux --prefix=/opt/rootfs/cross/arm/libsdl
??When try to compile the testgl.c program, get a ?“cannot find -lGL” error.
?I can’t find openGL libs by Google, so Please tell me where to down the
openGL lib.
?processor: ARM1176JZF
thanks

Bian Jiang
http://www.wifihack.net/
http://golang-china.org/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/

OpenGL may be available : I have a SmartQ V7 (Linux SmartQ 2.6.28 #908
PREEMPT Fri Mar 12 16:32:21 CST 2010 armv6l GNU/Linux) ; SDL and OpenGL
are available on the device:

user at SmartQ:~/SDL$ ldd ./testgl
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4002f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400c2000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x400e2000)
libm.so.6 => /lib/libm.so.6 (0x4015a000)
libc.so.6 => /lib/libc.so.6 (0x401cd000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x402fa000)
libdl.so.2 => /lib/libdl.so.2 (0x403ba000)
libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x403c5000)
libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x4043a000)
libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x4044a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40468000)
/lib/ld-linux.so.3 (0x40000000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x4047b000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x405a8000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x405bf000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x405cc000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x405d6000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x405e3000)
librt.so.1 => /lib/librt.so.1 (0x405f4000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x40603000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x40625000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x40630000)

As mentioned in another post, it’s probably the Mesa implementation.
The bad news is that the X server is not configured correctly :frowning:

user at SmartQ:~/SDL$ ./testgl
Couldn’t set GL mode: Couldn’t find matching GLX visual

For hardware 3D, as you mentioned, there is OpenGL ES with Mali GPU or
other chips. But the drivers/dev kits are not often freely downloadable
: see for example http://forums.arm.com/index.php?showtopic=14236

Anyway, to develop on ARM hardware, the only way is to contact the
hardware vendor or look at the forums for that hardware. Some ARM
partners are more ‘open source’ than others… for example TI for the
beagleboard.

Regards,
Lo?c

Le 28/06/2010 13:58, Christoph Nelles a ?crit :> Hi,

just a guess, you are on a platform with OpenGL ES instead of std OpenGL?
Something embedded i presume. OpenGL ES ist completely different to normal
OpenGL and as far as i’ve read SDL 1.2 does not support GLES natively.

On Mon, 28 Jun 2010 19:07:46 +0800, Bian Jiang wrote:

Hi All: I compiled successful SDL1.2.14, by this:
./configure --enable-video-qtopia --enable-video-directfb
–enable-video-opengl --disable-video-dummy --disable-video-fbcon
–disable-video-dga --disable-arts-shared --disable-arts --disable-esd
–disable-esd-shared --disable-alsa --disable-cdrom --disable-video-x11
–disable-nasm --disable-diskaudio --disable-mintaudio
–disable-video-ps2gs --disable-atari-ldg --disable-video-photon
–disable-nas --host=arm-linux --prefix=/opt/rootfs/cross/arm/libsdl
When try to compile the testgl.c program, get a "cannot find -lGL"
error. I can’t find openGL libs by Google, so Please tell me where to
down the openGL lib.
processor: ARM1176JZF
thanks

What system are you running? If you can run X, you can probably run
Mesa, you’ll have access to a software implementation of OpenGL, which
is perfect since it doesn’t sound like you have specialized graphics
hardware.

My system running on Qtopia2.2.0 and processor is ARM1176JZF.

I will try cross compile Mesa.

ThanksOn Tue, Jun 29, 2010 at 2:46 AM, Donny Viszneki <donny.viszneki at gmail.com>wrote:


Bian Jiang
http://www.wifihack.net/
http://golang-china.org/

OpenGL may be available : I have a SmartQ V7 (Linux SmartQ 2.6.28 #908
PREEMPT Fri Mar 12 16:32:21 CST 2010 armv6l GNU/Linux) ; SDL and OpenGL are
available on the device:

user at SmartQ:~/SDL$ ldd ./testgl
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4002f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400c2000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x400e2000)
libm.so.6 => /lib/libm.so.6 (0x4015a000)
libc.so.6 => /lib/libc.so.6 (0x401cd000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x402fa000)
libdl.so.2 => /lib/libdl.so.2 (0x403ba000)
libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x403c5000)
libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x4043a000)
libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x4044a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40468000)
/lib/ld-linux.so.3 (0x40000000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x4047b000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x405a8000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x405bf000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x405cc000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x405d6000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x405e3000)
librt.so.1 => /lib/librt.so.1 (0x405f4000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x40603000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x40625000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x40630000)

As mentioned in another post, it’s probably the Mesa implementation.
The bad news is that the X server is not configured correctly :frowning:

user at SmartQ:~/SDL$ ./testgl
Couldn’t set GL mode: Couldn’t find matching GLX visual

For hardware 3D, as you mentioned, there is OpenGL ES with Mali GPU or
other chips. But the drivers/dev kits are not often freely downloadable :
see for example http://forums.arm.com/index.php?showtopic=14236

Anyway, to develop on ARM hardware, the only way is to contact the hardware
vendor or look at the forums for that hardware. Some ARM partners are more
’open source’ than others… for example TI for the beagleboard.

Regards,
Lo?c

  I think I have to contact the hardware vendor for more information.

ThanksOn Tue, Jun 29, 2010 at 3:54 AM, Lo?c LAMBERT <dev.lambert at free.fr> wrote:


Bian Jiang
http://www.wifihack.net/
http://golang-china.org/