How to add SDL to a image?

Hi,

I want to build SDL on eCos, make a image ,and finally run this image on
ipaq h3800.

I choose a SDL demo , and make all .c files that demo need.I also include
.h files. I got error messages. All SDL function the demo use are undefined.

My steps are

create a work folder for target

mkdir work

and then add microwm package(I put SDL in mw)

ecosconfig add mw

create file tree in work(copy settings and files from source)

ecosconfig tree

make
Here error messages appear…

These simple steps(make .c needed and include .h needed) don’t work,
but I don’t know what should I do. Would any one give me suggestions ?

Thanks for your help.

Hi,

Hi.

I want to build SDL on eCos, make a image ,and
finally run this image on
ipaq h3800.

I choose a SDL demo , and make all .c files that
demo need.I also include
.h files. I got error messages. All SDL function the
demo use are undefined.

  • snip *

make
Here error messages appear…

please provide the error messages, as you have been
somewhat vauge… you can save them to a file by
typing ‘make 2> errors’ instead of ‘make’.

from what I’ve gathered (‘all SDL function the demo
use are undefined’) you’re suffering from one of three
problems, which one I can’t tell without more info:

case 1: The compiler isn’t finding the header files.
There should be a message near the top if this is the
case. You’ll need to add a flag to get the compiler to
locate them.

case 2: The linker isn’t linking the library files.
You’l need to add a flag to get the linker to link
them.

case 3: The library files don’t exist, because you
never built the library - just the demo. In this case,
you’ll have to build the library first.__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com