How to compile SDL OpenGL Tutorials


I’m download and build SDL 1.2.1.
I’m using Cygwin.

I succeeded in compile and execution of SDL-1.2.1/test .
I thought that he wanted to practice OpenGL.
I observed SDL OpenGL tutorials and did download and build of

$ tar zxf OpenGL-intro-1.1.1.tar.gz
$ cd OpenGL-intro-1.1.1
$ ./configure
creating cache ./config.cache
creating Data29/Makefile
creating Data30/Makefile

$ make
Making all in Data06
make[1]: Entering directory /cygdrive/c/user/kuroki/OpenGL-intro-1.1.1/Data06' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /cygdrive/c/user/kuroki/OpenGL-intro-1.1.1/Data06' . . . make[1]: Entering directory/cygdrive/c/user/kuroki/OpenGL-intro-1.1.1’
gcc -DPACKAGE=“OpenGL-intro” -DVERSION=“1.1.1” -DX_DISPLAY_MISSING=1 -I. -I.
-g -O2 -I/usr/local/include -I/usr/local/include/SDL -Dmain=SDL_main
-I/usr/include/mingw -DWIN32 -Uunix -DHAVE_OPENGL -c lesson02.c
gcc -g -O2 -I/usr/local/include -I/usr/local/include/SDL -Dmain=SDL_main
-I/usr/include/mingw -DWIN32 -Uunix -DHAVE_OPENGL -o lesson02 lesson02.o
-lGL -lGLU -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -mno-cygwin
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/…/…/…/…/i686-pc-cygwin/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** [lesson02] Error 1
make[1]: Leaving directory `/cygdrive/c/user/kuroki/OpenGL-intro-1.1.1’
make: *** [all-recursive] Error 1

However, the error occurred.
I thought that a cause was in and corrected it.

----- -----
case “$target” in
SYS_GL_LIBS=”-lopengl32 -lglu32"
--cygwin*) <— [add]
MATHLIB="-lgl -lglu" <— [add]
SYS_GL_LIBS="" <— [add]
;; <— [add]
if test x$have_x = xyes; then
----- -----

However, the problem was unsolvable.
Someone, please teach me the right method.

(: )(’’)( :)(…)(: )(’’)( :)(…)(: )(’’)( :)(…)(: )
Junichi Kuroki
E-Mail @Junichi_Kuroki
PostPet tora at
(…)( :)(’’)(: )(…)( :)(’’)(: )(…)( :)(’’)(: )(…)


However, the problem was unsolvable.
Someone, please teach me the right method.

The cause of a problem was found.
I corrected
This file is appended to mail.

(: )(’’)( :)(…)(: )(’’)( :)(…)(: )(’’)( :)(…)(: )
Junichi Kuroki
E-Mail @Junichi_Kuroki
PostPet tora at
(…)( :)(’’)(: )(…)( :)(’’)(: )(…)( :)(’’)(: )(…)
-------------- next part --------------
A non-text attachment was scrubbed…
Type: application/octet-stream
Size: 2322 bytes
Desc: not available

Since I noticed this in news: Does SDL already
support XBox (with OpenGL), or will that be part
of future SDL?

– Timo Suoranta – @Timo_K_Suoranta
-------------- next part --------------

From Wed Jun 20 14:19:39 2001
References: <9gpivi$age99$1 at> <3b33710e.52681061 at> <3b307aec_3 at>
Lines: 84
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2488.0001
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2488.0001
Message-ID: <Bn%X6.56342$V5.6085237 at>
X-Complaints-To: abuse at
X-Trace: 993034849 (Wed, 20 Jun 2001 07:00:49 EDT)
NNTP-Posting-Date: Wed, 20 Jun 2001 07:00:49 EDT
Organization: Road Runner Columbus

The XBOX runs a special version of embedded Windows CE. To develop for it,
you need:

  • The DirectX 8 Platform Adaptation Kit
  • Embedded Visual C++ Platform Development Kit (Windows CE version)
  • Xbox Prototype Kit (XPK)

All are free of charge (minus nominal shipping/CD fee), and I think all are
available for download (no MSDN membership needed either).

In fact, Microsoft has done a very good thing with their Xbox Independent
Developer Program. Not only do they allow 3rd party developers access to
their SDKs for the XBOX, they even allow them to publish games, too. Of
course, your game still would have to be GOOD, and you would need to have a
contract with a licensed XBOX Game Distributor before you could have a
chance seeing it in places like Wal-Mart. But as far as having a Sony
Quality Engineer hover over you just to get at the development kits, there
is nothing like that with the XBOX that I can see.

Of course, this also means you can create games and demos for the XBOX using
the above development packages and a CD-RW drive (or DVD-RAM/ROM drive,
which the XBOX also supports).

This is a far cry from what Sony or Nintendo would even think of doing.

See: for more
Also see here for a cool X-BOX OpenGL screenshoot:
(Yes, the XBOX does do OpenGL, and Nascar Heat uses it exclusively)


“Martyn Dobson” <martyn_dobson at> wrote in message
news:3b307aec_3 at

Doesn’t the xbox run Windows CE ?? If so then they could miss out the
ICD driver interface and code a version of directx more specifically for
machine, seen as though the hardware shouldn’t change much?!? Then that
willReply-To: “Johnathan Leppert” <leppert at>
From: (Johnathan Leppert)
Subject: Re: XBox and OpenGL???
Date: Wed, 20 Jun 2001 11:00:49 GMT
mean no OpenGL.


Ruud van Gaal wrote in message
news:3b33710e.52681061 at

On Wed, 20 Jun 2001 09:23:19 +0200, “Gernot.Frisch” <Gernot.Frisch at> wrote:


Some questions about the XBox.

  • Will it support OpenGL? I mean NVidia chips are known for good OpenGL

I do think so. I know WindowsXP supports OpenGL(1.1), and that
pressure is too high for MS NOT to put OpenGL on the X-Box.

  • Will a nobody like me and others be able to develop for the XBox?

I think there’s a certain quality assurance that is needed to release
stuff for the X-Box. Although ofcourse, in this world, I would not be
surprised if software for the X-Box can be ported easily (it uses
DX8.1) and the mess of the PC floods over to the X-Box. :wink:

  • Has anyone seen a SDK for it, yet?

It’s available, but not for free, IIRC. You have to become a real
developer for that.

Ruud van Gaal, GPL Rank +53.25
Pencil art :
Free car sim :