This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]