Cross-compiling troubles

hi

I’m trying to cross-compile some SDL-projects for Win32.
The library itself (current CVS) compiled fine, but the test-programs didn’t:

celeron:/usr/lib/SDL/test # make
gcc -DPACKAGE=“SDL_tests” -DVERSION=“1.1.0” -I. -I. -g -O2
-I/usr/local/cross-tools/i386-mingw32/include
-I/usr/local/cross-tools/i386-mingw32/include/SDL -Dmain=SDL_main -c testver.c
gcc -g -O2 -I/usr/local/cross-tools/i386-mingw32/include
-I/usr/local/cross-tools/i386-mingw32/include/SDL -Dmain=SDL_main -o testver
testver.o -L/usr/local/cross-tools/i386-mingw32/lib -lmingw32 -lSDLmain -lSDL
-luser32 -lgdi32 -lwinmm -ldxguid -mwindows
/usr/local/cross-tools/i386-mingw32/lib/libSDL.a(SDL_stretch.lo): In function
SDL_SoftStretch': /usr/lib/SDL/src/video/SDL_stretch.c:234: undefined reference tocopy_row’ make: *** [testver] Error 1

Is it my fault? Can anyone see what’s wrong?
By the way, it took me a while to find out that I have to run make distclean
(not only make clean) before running configure to cross-compile an already
compiled program (the old sdl-config path seems to be cached). Perhaps one
should add this to the README.Win32.

cu,
Martin Renold

hi

I’m trying to cross-compile some SDL-projects for Win32.
/usr/local/cross-tools/i386-mingw32/lib/libSDL.a(SDL_stretch.lo): In function
SDL_SoftStretch': /usr/lib/SDL/src/video/SDL_stretch.c:234: undefined reference tocopy_row’ make: *** [testver] Error 1

This is fixed in the CVS code, thanks!

Is it my fault? Can anyone see what’s wrong?
By the way, it took me a while to find out that I have to run make distclean
(not only make clean) before running configure to cross-compile an already
compiled program (the old sdl-config path seems to be cached). Perhaps one
should add this to the README.Win32.

Will do, thanks.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

This is fixed in the CVS code, thanks!

Wow, not bad, the speed here!
Thanks, now it works fine.

Martin Renold–
Sent through GMX FreeMail - http://www.gmx.net

This is fixed in the CVS code, thanks!

Wow, not bad, the speed here!
Thanks, now it works fine.

Great. :slight_smile:

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

This is fixed in the CVS code, thanks!

Wow, not bad, the speed here!
Thanks, now it works fine.

Martin Renold