6 Jan 02:04
Re: cross-compiling SDL for uclinux
From: <huangwei <at> sunplus.com.cn>
Subject: Re: cross-compiling SDL for uclinux
Newsgroups: gmane.comp.lib.sdl
Date: 2003-01-06 01:06:41 GMT
Subject: Re: cross-compiling SDL for uclinux
Newsgroups: gmane.comp.lib.sdl
Date: 2003-01-06 01:06:41 GMT
Mr.Sam Lantinga,
As follows it is the steps that I cross-compiling SDL for uclinux
1.using cross-compiling tool to compile SDL,and using --enable-static
--disable-esd(I don't know why must use this option,if not ,can not
be compiled successfully),--disable-shared(this is a puzzle to me ,too),
--prefix=/sdl-lib
2.then make ;make install;
then under the directory ../sdl-lib three files (libSDL.a
,libSDL.la,libSDLmain.a)are
generated.
3.then cross-compile the demos under directory .../test.
only two files can be compiled successfully(testtypes and testgl);
the link line is :
....
mipsel-linux-ld -d -r -o $@.tmp ../lib/crt0.o $< $(testver_DEPENDENCIES)
../lib/libc.a
../../libgcc.a;
mipsel-linux-ld -T ../elf2flt.ld -Ur -o $@.elf $@.tmp(the files
testver.tmp and
testver.elf can be generated)
mipsel-linux-ld -T ../elf2flt.ld -o $@.gdb $@.tmp (when executing
here,the errors will be
generated)
../elf2flt.ld -p $@.gdb -o $@.flt -r $@.elf
....
Regards,
Andy
RSS Feed