Cobra-x wrote:ok - i have yet gnustep and SDL komplete reinstalled - but this error stops me too. (before and after reinstall SDL)
Code: Select all
jmarco@cpu1:~/Projekte/CVS/oolite> make
Making all for objc_program oolite...
Compiling file src/Core/AI.m ...
In file included from src/Core/PlayerEntity.h:44,
from src/Core/entities.h:43,
from src/Core/AI.h:42,
from src/Core/AI.m:40:
src/SDL/SDLImage.h:12:23: error: SDL_image.h: File not found
make[1]: *** [shared_obj/AI.o] Error 1
make: *** [oolite.all.objc-program.variables] Error 2
AI.o is not really a file from SDL or gnustep - and not in any package from oolite (i have downloaded the complete tree, not only trunk
)
and thats all Information, who i become when i run make - sorry
I snipped your code segment for brevity. SDL_image.h is a header file provided by the SDL_image library package. AI.o is the file you're attempting to build, that is failing. Since it couldn't compile without the aforementioned header, it doesn't exist when you try and find it later.
Also, one thing to keep in mind is that the 'locate' command depends on a user-updated database of files in your filesystem. If you want to find something newer than the latest database update, you can either run 'updatedb' to update it, or use the 'find' command (check out 'man find', lots of different options to this one.
However, to be specific on what you're looking for here, you want to use 'find . -name AI.o', executed from the toplevel of the Oolite source tree)
Now, back to the crux of the issue (It's nearing 3am my time, and I'm being a little random) many distributions will include SDL_image within their main SDL package, some don't. Some may not even have a package for SDL_image at all.
I'd verify that it gets installed with the SDL package (A good place to start looking for the header file is /usr/include/SDL, or /usr/X11R6/include/SDL, or in rare [somewhat broken] occasions, or if you installed SDL and SDL_image manually from source, /usr/local/include/SDL)
If SDL_image.h doesn't exist in any of those places, but SDL is installed, I'd suggest either looking for an SDL_image package for your distribution. (don't forget any appropriate -devel packages!) Or alternatively, build SDL_image yourself. I'd suggest, if you go this route, to install it with the same --prefix as SDL (Most program's configure scripts can handle SDL and SDL_image being in separate prefixes, however, some can't.) it's a simple './configure && make && make install' process.