This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
question about adding SDL on microwindow
- From: "b8944028" <b8944028 at stmail dot cgu dot edu dot tw>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sat, 27 Sep 2003 18:05:20 +0800
- Subject: [ECOS] question about adding SDL on microwindow
Hi,
I want to build SDL on microwindow and then make a image for arm platform
using gnu crosscompiler tools.(SDL is a library supporting microwindow.
http://www.libsdl.org)
My steps are:
copy /sdl to /ecos-2.0/packages/services/gfx/mw/v2_0/src
edit /ecos-2.0/packages/services/gfx/mw/v2_0/cdl/microwindows.cdl
# SDL
compile \
sdl124/src/SDL.c \
.....
then
mkdir work
ecosconfig new ipaq
ecosconfig tree
make
arm-elf-gcc -Iinstall/include test.c -Linstall/lib -Ttarget.ld -nostdlib
Here I have error messages like these:
/tmp/ccAX799g.o: In function `SDL_InitSubSystem':
/tmp/ccAX799g.o(.text+0x38): undefined reference to `SDL_TimerInit'
collect2: ld returned 1 exit status
In test.c, I have included the .h file needed and I also have added
related .c file to microwindows.cdl
What's wrong ?
Thanks for your help.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss