How to compile SDL OpenGL Tutorials

Hi,

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
OpenGL-intro-1.1.1.tar.gz.

$ 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 configure.in and corrected it.

----- configure.in -----
case “$target” in
--mingw32*)
MATHLIB="“
SYS_GL_LIBS=”-lopengl32 -lglu32"
;;
--beos*)
MATHLIB="“
SYS_GL_LIBS=”-lGL"
;;
--darwin*)
MATHLIB="“
SYS_GL_LIBS=”"
;;
--cygwin*) <— [add]
MATHLIB="-lgl -lglu" <— [add]
SYS_GL_LIBS="" <— [add]
;; <— [add]
*)
MATHLIB="-lm"
AC_PATH_X
AC_PATH_XTRA
if test x$have_x = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS"
SYS_GL_LIBS="$X_LIBS -lGL -lGLU"
else
SYS_GL_LIBS="-lGL -lGLU"
fi
;;
----- configure.in -----

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

(: )(’’)( :)(…)(: )(’’)( :)(…)(: )(’’)( :)(…)(: )
Junichi Kuroki
E-Mail @Junichi_Kuroki
PostPet tora at chamise.ne.jp
P.S.R.C. http://www.chamise.ne.jp/mera/index.html
(…)( :)(’’)(: )(…)( :)(’’)(: )(…)( :)(’’)(: )(…)

Hi,

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

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

(: )(’’)( :)(…)(: )(’’)( :)(…)(: )(’’)( :)(…)(: )
Junichi Kuroki
E-Mail @Junichi_Kuroki
PostPet tora at chamise.ne.jp
P.S.R.C. http://www.chamise.ne.jp/mera/index.html
B.B.F. http://www.0-web.com/member/kuroki/
(…)( :)(’’)(: )(…)( :)(’’)(: )(…)( :)(’’)(: )(…)
-------------- next part --------------
A non-text attachment was scrubbed…
Name: configure.in
Type: application/octet-stream
Size: 2322 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010620/fff0e571/attachment.obj

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 service@qth.net Wed Jun 20 14:19:39 2001
Path: news.helsinki.fi!news.cc.tut.fi!newsfeed.media.kyoto-u.ac.jp!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!cyclone.columbus.rr.com!news.rr.com!cyclone-midwest.rr.com!typhoon.columbus.rr.com.POSTED!not-for-mail
Newsgroups: comp.graphics.api.opengl
References: <9gpivi$age99$1 at ID-37212.news.dfncis.de> <3b33710e.52681061 at news.xs4all.nl> <3b307aec_3 at news2.vip.uk.com>
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 typhoon.columbus.rr.com>
NNTP-Posting-Host: 65.24.254.70
X-Complaints-To: abuse at rr.com
X-Trace: typhoon.columbus.rr.com 993034849 65.24.254.70 (Wed, 20 Jun 2001 07:00:49 EDT)
NNTP-Posting-Date: Wed, 20 Jun 2001 07:00:49 EDT
Organization: Road Runner Columbus
Xref: news.helsinki.fi comp.graphics.api.opengl:94657

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: http://www.microsoft.com/PressPass/press/2000/Nov00/XPKPR.asp for more
info.
Also see here for a cool X-BOX OpenGL screenshoot:
http://www.microsoft.com/presspass/images/features/2001/05-16xbox-fullsize.j
pg
(Yes, the XBOX does do OpenGL, and Nascar Heat uses it exclusively)

Johnathan

“Martyn Dobson” <martyn_dobson at eggconnect.net> wrote in message
news:3b307aec_3 at news2.vip.uk.com

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

M.

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

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

Hi,

Some questions about the XBox.

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

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.
Fortunately.

  • 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 : http://www.marketgraph.nl/gallery/
Free car sim : http://www.marketgraph.nl/gallery/racer/