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 for
all’.
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
(…)( :)(’’)(: )(…)( :)(’’)(: )(…)( :)(’’)(: )(…)