Hi all,
I want to bore all my friends and family with the really cool things
I’ve been writing with SDL/OpenGL, meaning, I’d like to generate win32
executables on my Linux box.
After Googling, I followed the instructions given here:
http://www.libsdl.org/extras/win32/cross/README.txt
It took a little coaxing, but the gcc and binutils build went okay, and
appears to be installed correctly in /usr/local. I then downloaded the
scripts:
http://www.libsdl.org/extras/win32/cross/cross-configure.sh
http://www.libsdl.org/extras/win32/cross/cross-make.sh
Since I don’t know how to use autoconf (yet), the first script doesn’t
do me much good.
I really don’t know what I’m doing, since the only thing I’ve ever cross
compiled for was Lego Mindstorms, I naively copied cross-make.sh into
one of my projects and typed “sh cross-make.sh”. This is what I got:
colorgcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Waggregate-return -Wpointer-arith -Wcast-qual -Wcast-align
-Wmissing-declarations -Wnested-externs -Wredundant-decls
-Wwrite-strings -Winline -Werror -g3 sdl-config --cflags
-c -o init.o
init.c
as: unrecognized option `-Qy’
make: *** [init.o] Error 1
I’m beginning to see that the configure step was necessary for this,
since it appears to be using my “normal” makefile which is unsuited for
cross compiling for win32 (ie calling colorgcc rather than mingw32).
The error “as: unrecognized option `-Qy’” is a bit troubling; I hope it
doesn’t mean the cross compiling tools are broken (I didn’t see any
obvious error msgs when they installed). My as man page doesn’t list a
-Q option. Maybe my as needs updating.
I’ve hit a brick wall.
Is there a way to cross compile for a win32 application without needing
autotools?
Alternatively, is there a way to cross compile for a win32 without
needing to learn autotools?
Autotools are on my list todo, but there’s only so many things you can
learn at once.
Thanks!
Pete