Hi there.
I've been trying to compile the simulator (for Sansa ClipV2 under Ubuntu 9.1, gcc4.4.1, ld2.20) without much success. I get the following messages/errors when trying to MAKE.
LD rockboxui
/home/myname/rockbox/simbuild/clip/uisimulator/libuisimulator.a(uisdl.o): In function `gui_message_loop':
/home/myname/rockbox/uisimulator/sdl/uisdl.c:147: undefined reference to `sqrt'
/home/myname/rockbox/simbuild/clip/uisimulator/libuisimulator.a(io.o): In function `sim_codec_load_ram':
/home/myname/rockbox/uisimulator/common/io.c:552: undefined reference to `dlopen'
...[some more undefined references here]
/home/myname/usr/lib/libSDL.a(SDL_alsa_audio.o): In function `UnloadALSALibrary':
SDL_alsa_audio.c:(.text+0x2a): undefined reference to `dlclose'
...[some more undefined references here]
/home/myname/usr/lib/libSDL.a(SDL_x11video.o): In function `X11_Available':
SDL_x11video.c:(.text+0x1f): undefined reference to `XOpenDisplay'
/home/myname/usr/lib/libSDL.a(SDL_x11video.o): In function `create_aux_windows':
SDL_x11video.c:(.text+0x522): undefined reference to `XCreateWindow'
...[much more undefined references here]
It seems to me that my build environment isn't configured correctly, but I can't figure out what's wrong exactly. Obviously the linker cannot find the math-library, but it's there. If I add '-lm' to the linker options in the Makefile manually the first error vanishes, but editing the auto-generated Makefile does not look much like a good solution to me.
The same goes for fcntl.h. The compiler seems to be unable to find it, but it's there (under /usr/include), however I can't get rid of this error by adding the path to the include path manually in the Makefile (which again would be a bad solution anyway).
All following errors are related to the SDL-library. I installed it in my user path, because I don't have the rights to install it globally...
Well, thanks in advance for hints and comments.
Ulf