Cross-compiler

OK. I got the cross-compiler, but I can’t use it. Could anyone
provide some hints as to how you go about using it? I find
the file layout very confusing; there’s bin directory in
win32/i386-pc-cygwin32/bin, but there’s no cc1 (the compiler stage)
in there. In stead, the cc1 is sitting over in
win32/lib/gcc-lib/i386-pc-cygwin32/cygnus-2.7.2-970404?! What’s up
with that? I’m highly confused.

What I think I need is a simple step-by-step explanation on how you
go about using this cross-compiler. I suppose you need to either
rename all the components (to e.g. win32-gcc, win32-ld etc) or do
some massive path trickery before envoking the cross-compilers…

Thanks in advance for any help on this!

/Emil

OK. I got the cross-compiler, but I can’t use it. Could anyone
provide some hints as to how you go about using it?

Sorry, I put the instructions on the web page:

  1. cd /usr
  2. unpack the archive – it will extract to ./win32

  3. go to the SDL source directory

  4. export PATH=/usr/win32/i386-pc-cygwin32/bin:$PATH
  5. get DirectX 5 headers from Microsoft, copy them from

    dx5sdk/sdk/inc/ to the directx/include/ directory in

    the SDL source distribution.

  6. ./directx/utils/fixdirectx.sh
  7. ./Configure win32
  8. make

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Hi!

My cross-compiler generates programs wich always say “this program
cannot be run in dos mode” (under Win95b, NOT in dos mode). What can I
do?

I just extracted the cross-compiler, copied the SDL-win32-devel files
(v1.1.6) into the cross-compiler dirs and then used the
cross-configure.sh and cross-make.sh scripts.

Thanks,

Karl.

Hi Karl,

My cross-compiler generates programs wich always say “this program
cannot be run in dos mode” (under Win95b, NOT in dos mode). What can I
do?

The last time I got this error message was when I tried to run a
cross-compiled Windows binary that I FTP?d to my Windows box using
ASCII transfer mode. After switching to BINARY transfer mode, it
suddenly worked. :wink:

Idiotic default values…

Best regards,
Holger–
holger.schemel at mediaways.net