Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: swamp-dog AT ntlworld DOT com (Guy Harrison) To: Subject: Re: Problems with SDL Date: Sun, 04 Aug 2002 15:31:40 GMT Message-ID: <3d4e4876.251394315@smtp.ntlworld.com> References: <20020804083713 DOT 16334 DOT qmail AT web10108 DOT mail DOT yahoo DOT com> In-Reply-To: <20020804083713.16334.qmail@web10108.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g74FX4M27940 On Sun, 4 Aug 2002 10:37:13 +0200 (CEST), Sylvain Petreolle wrote: >Hi list, > >I compiled SDL cvs without problems and installed it. >Trying to compile the test programs result in fail. > >The 'configure' program from the test directory chacks for SDL 1.2.3 >installed and says it isn't. > >Looking in config.log as requested gives me a lot of undefined >references. searching through the mailing list archives doesn't give >any valuable results, so I'm posting the errors (only a part). Possibly the same problem I got with SDL 1.2.4 - missing libs. I didn't investigate too hard (I only wanted an audio mixer for FreeCiv so a video-disabled mingw build would do). However, I do recall running the tests before crippling it. I dug out my hacked sdl-config, pasted below. Hope it helps. >configure:4325: gcc -o conftest.exe -g -O2 -I/usr/local/include >-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 >-Uunix -mno-cygwin conftest.c -L/usr/local/lib -lmingw32 -lSDLmain >-lSDL -mwindows -mno-cygwin >&5 >/usr/local/lib/libSDL.a(SDL_systimer.o): In function `SDL_StartTicks': >/home/Nom/SDL12/src/timer/SDL_systimer.c:73: undefined reference to >`timeBeginPeriod AT 4' >/home/Nom/SDL12/src/timer/SDL_systimer.c:74: undefined reference to >`timeGetTime AT 0' >/usr/local/lib/libSDL.a(SDL_systimer.o): In function `SDL_GetTicks': >/home/Nom/SDL12/src/timer/SDL_systimer.c:101: undefined reference to >`timeGetTime AT 0' >/usr/local/lib/libSDL.a(SDL_systimer.o): In function >`SDL_SYS_TimerInit': >/home/Nom/SDL12/src/timer/SDL_systimer.c:189: undefined reference to >`timeBeginPeriod AT 4' >/home/Nom/SDL12/src/timer/SDL_systimer.c:195: undefined reference to >`timeSetEvent AT 20' >/usr/local/lib/libSDL.a(SDL_systimer.o): In function >`SDL_SYS_TimerQuit': >/home/Nom/SDL12/src/timer/SDL_systimer.c:206: undefined reference to >`timeKillEvent AT 4' >/home/Nom/SDL12/src/timer/SDL_systimer.c:208: undefined reference to >`timeEndPeriod AT 4' >/usr/local/lib/libSDL.a(SDL_dibaudio.o): In function `SetMMerror': >/home/Nom/SDL12/src/audio/windib/SDL_dibaudio.c:141: undefined >reference to `waveOutGetErrorTextA AT 12' >/usr/local/lib/libSDL.a(SDL_dibaudio.o): In function `DIB_PlayAudio': >/home/Nom/SDL12/src/audio/windib/SDL_dibaudio.c:174: undefined >reference to `waveOutWrite AT 12' >/usr/local/lib/libSDL.a(SDL_dibaudio.o): In function `DIB_CloseAudio': #!/bin/sh prefix=/usr/local exec_prefix=${prefix} exec_prefix_set=no usage="\ Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo $prefix ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo $exec_prefix ;; --version) echo 1.2.4 ;; --cflags) if test ${prefix}/include != /usr/include ; then # Handle oddities in Win32 path handling (assumes prefix) prefix=`echo ${prefix} | sed 's,^//\([A-Z]\),\1:,'` includes=-I${prefix}/include fi echo -I${prefix}/include/SDL ;; --libs) libdirs="-L${exec_prefix}/lib " echo $libdirs -lSDL ;; --static-libs) # --libs|--static-libs) libdirs="" echo $libdirs -lSDL -luser32 -lgdi32 -lwinmm ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done -- swamp-dog AT ntlworld DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/