Hello,
I’ve had good success with the downloadable libraries for Visual C++,
but run into problems with cgywin (gcc 2.95.2). Doing “./configure”
“make” works well, until it runs into compilation problems. It
would seem that the makefiles arn’t sure if they’re targeted for Unix
or Windows (I’m just guessing, but I’ve attached some output).
So, RFM, and I tried the scripts “cross-configure.sh”
“cross-make.sh”, resulting in the same problems.
I hacked away at the makefiles and source, managed
to get a SDL.DLL, but with missing symbols. (Many less
symbols than the downloadable binaries for ming).
I get the impression that cygwin and SDL should be able
to work together, but it would take a little bit of
knowledgable tweaking to make it work smoothly.
Thanks in advance for your advice.
Cygwin for me is a way of keeping portable between Win32, Linux,
Visual C++ and gcc without rebooting. http://www.cygwin.com/
Nigel Stewart---------------------------------
$ bash ./configure
creating cache ./config.cache
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… yes
checking for working aclocal… missing
checking for working autoconf… missing
checking for working automake… missing
checking for working autoheader… missing
checking for working makeinfo… found
checking host system type… i686-pc-cygwin
checking target system type… i686-pc-cygwin
checking build system type… i686-pc-cygwin
checking for ranlib… ranlib
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
etc…
$ make
Making all in src
make[1]: Entering directory /cygdrive/h/Nigels/Raypp/SDL-1.1.6/src' Making all in main make[2]: Entering directory
/cygdrive/h/Nigels/Raypp/SDL-1.1.6/src/main’
gcc -DPACKAGE=“SDL” -DVERSION=“1.1.6” -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -I…/…/src/video/wincommon -DENABL
E_WINDIB -I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/win32 -I…/…/src/main -I…/…/src/audio -I…/…/sr
c/video -I…/…/src/events -I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread -I…/…/src/timer -I…/…/src/endia
n -I…/…/src/file -c SDL_main.c
SDL_main.c: In function console_main': SDL_main.c:162: warning: implicit declaration of function
atexit’
rm -f libSDLmain.a
…
Making all in wincommon
make[3]: Entering directory /cygdrive/h/Nigels/Raypp/SDL-1.1.6/src/video/wincommon' /bin/sh ../../../libtool --mode=compile gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.1.6\" -DHAVE_ALLOCA=1 -I. -I. -g -O2 - Wall -I../../../src/video/wincommon -DENABLE_WINDIB -I../../../include -I../../../include/SDL -I../../../src -I../../../ src/win32 -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/events -I../../../src/joystick -I ../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_sysevents .c mkdir .libs gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.1.6\" -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -I../../../src/video/wincommon -DENABLE_W INDIB -I../../../include -I../../../include/SDL -I../../../src -I../../../src/win32 -I../../../src/main -I../../../src/a udio -I../../../src/video -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../ ../../src/timer -I../../../src/endian -I../../../src/file -c SDL_sysevents.c -DPIC -o .libs/SDL_sysevents.lo In file included from SDL_sysevents.c:38: SDL_lowvideo.h:45: parse error before
SDL_Instance’
SDL_lowvideo.h:45: warning: type defaults to int' in declaration of
SDL_Instance’
SDL_lowvideo.h:45: warning: data definition has no type or storage class
SDL_lowvideo.h:46: parse error before SDL_Window' SDL_lowvideo.h:46: warning: type defaults to
int’ in declaration of SDL_Window' SDL_lowvideo.h:46: warning: data definition has no type or storage class SDL_lowvideo.h:56: parse error before
HWND’
SDL_lowvideo.h:62: parse error before HDC' SDL_lowvideo.h:65: parse error before
*‘
SDL_lowvideo.h:65: parse error before HWND' SDL_lowvideo.h:65: warning: type defaults to
int’ in declaration of LONG' SDL_lowvideo.h:65:
LONG’ declared as function returning a function
SDL_lowvideo.h:68: parse error before SDL_hcursor' SDL_lowvideo.h:68: warning: type defaults to
int’ in declaration of SDL_hcursor' SDL_lowvideo.h:68: warning: data definition has no type or storage class SDL_lowvideo.h:71: parse error before
SDL_bounds’
SDL_lowvideo.h:71: warning: type defaults to int' in declaration of
SDL_bounds’
SDL_lowvideo.h:71: warning: data definition has no type or storage class
SDL_lowvideo.h:80: parse error before window' In file included from SDL_sysevents.c:39: SDL_syswm_c.h:31: parse error before
screen_icn’
SDL_syswm_c.h:31: warning: type defaults to int' in declaration of
screen_icn’
–
Nigel Stewart (@Nigel_Stewart)
Research Student, Software Developer
Y2K is the new millenium for the mathematically challenged.