1.2.1 and Cygwin: library problem

OS: Windows 98
SDL: source snapshot as of May, 10th.
Cygwin: fresh install w/all packages, as of May 10th.
GCC: comes w/Cygwin, says it’s 2.95.3-4.

make runs OK, then reports:

(cd . && ln -s SDL_getenv.o SDL_getenv.lo)
/bin/sh …/libtool --mode=link gcc -g -O2 -Wall -I…/src/video/wincommon
-DENABLE_WINDIB -I/usr/include/mingw -DWIN32 -Uunix -I…/include
-I…/include/SDL -I…/src -I…/src/win32 -I…/src/main -I…/src/audio -I…/s
rc/video
-I…/src/events -I…/src/joystick -I…/src/cdrom -I…/src/thread -I…/src/ti
mer -I…/src/endian
-I…/src/file -o libSDL.la -rpath /usr/local/lib -release
1.2 -version -info 0:1:0 SDL.lo
SDL_error.lo SDL_fatal.lo SDL_getenv.lo main/libarch.la audio/libaudio.la
video/libvideo.la events/libevents.la joystick/libjoystick.la
cdrom/libcdrom.la
thread/libthread.la timer/libtimer.la endian/libendian.la
file/libfile.la -luser32 -lgdi32
-lwinmm -mno-cygwin
rm -fr .libs/libSDL.la .libs/libSDL.* .libs/libSDL-1.2.*

*** Warning: This library needs some functionality provided by -luser32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lgdi32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lwinmm.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

then it runs OK again until the end, when it tries to build SDL.dll,
and reports all calls to functions in those libs as undefined references,
and stops.

Any idea?

Cheers,
Stephen - @Stephen

OS: Windows 98
SDL: source snapshot as of May, 10th.
Cygwin: fresh install w/all packages, as of May 10th.
GCC: comes w/Cygwin, says it’s 2.95.3-4.

Okay, it looks like Cygwin moved the Win32 API libraries. The latest
CVS snapshot uses the new location: http://www.libsdl.org/cvs.html

I also put together an archive so you can build SDL with DirectX
support in the Cygwin environment. Just download the following
archive and unpack it in the root directory “/” and rebuild SDL:
http://www.libsdl.org/Xmingw32/directx-cygwin.tar.gz

See ya!
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

Okay, it looks like Cygwin moved the Win32 API libraries. The latest
CVS snapshot uses the new location: http://www.libsdl.org/cvs.html

What did you change? I ask, because the same problem applies to SDL_mixer and
possibly other libs or apps as well.

Proff–
Florian ‘Proff’ Schulze - @Florian_Schulze
Homepage: - http://proff.fly.to
PGP-Key available from - http://www.keyserver.net/en/

  • Sam Lantinga :

Okay, it looks like Cygwin moved the Win32 API libraries. The latest
CVS snapshot uses the new location: http://www.libsdl.org/cvs.html

Almost perfect: “make install” copies SDL.DLL into /usr/local/lib which
doesn’t seem to be in the $PATH, by default, so “./configure” in the test
directory reports that SDL isn’t installed.

Manually copying SDL.DLL into /usr/local/bin did it. Tests run OK,
except for testwm that reports it can’t toggle full-screen mode, but does
run full-screen if started with -fullscreen.

xrick (http://www.bigorno.net/xrick/) now compiles under cygwin, but
switching to full-screen mode crashes the game.

Cheers,
Stephen

Okay, it looks like Cygwin moved the Win32 API libraries. The latest
CVS snapshot uses the new location: http://www.libsdl.org/cvs.html

What did you change?

I added /usr/lib/w32api to the list of directories to search for libraries.

I ask, because the same problem applies to SDL_mixer and
possibly other libs or apps as well.

Thanks, I just updated the libraries I maintain. Just copy ltmain.sh
and ltconfig from the SDL CVS archive to wherever you need the update.

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

Manually copying SDL.DLL into /usr/local/bin did it. Tests run OK,
except for testwm that reports it can’t toggle full-screen mode, but does
run full-screen if started with -fullscreen.

This is the correct behavior on Win32.

xrick (http://www.bigorno.net/xrick/) now compiles under cygwin, but
switching to full-screen mode crashes the game.

Sounds like a bug. Try debugging and see what’s happening.
Make sure you’re not specifying SDL_HWSURFACE in the display mode flags.

See ya!
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

Thanks, I just updated the libraries I maintain. Just copy ltmain.sh
and ltconfig from the SDL CVS archive to wherever you need the update.

I have checked out the latest CVS (23. May) of SDL, SDL_mixer and SDL_net.
SDL and SDL_mixer configure and compile fine, but SDL_net still doesn’t find
SDL. I looked a bit into the automake files and it seems like a small program is
used to detect the SDL version instead of sdl-config, is that intentional?
Copying ltmain.sh and ltconfig over to SDL_net doesn’t help.

Proff–
Florian ‘Proff’ Schulze - @Florian_Schulze
Homepage: - http://proff.fly.to
PGP-Key available from - http://www.keyserver.net/en/

Oohh !! Someone compiled a WIN Version of XRick, even if it runs only
under windowed mode please send the EXE to wizard at syntheticsoft.com !!

( Please compile it with ATARI ST GFX ! )

Thanks !

“Sam Lantinga” schrieb im Newsbeitrag news:E1523a7-0008GG-00 at roboto.devolution.com…> > Manually copying SDL.DLL into /usr/local/bin did it. Tests run OK,

except for testwm that reports it can’t toggle full-screen mode, but does
run full-screen if started with -fullscreen.

This is the correct behavior on Win32.

xrick (http://www.bigorno.net/xrick/) now compiles under cygwin, but
switching to full-screen mode crashes the game.

Sounds like a bug. Try debugging and see what’s happening.
Make sure you’re not specifying SDL_HWSURFACE in the display mode flags.

See ya!
-Sam Lantinga, Lead Programmer, Loki Software, Inc.