[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building Tuxmath with KDevelop



On Mon, Oct 10, 2005 at 05:20:23PM -0400, David Bruce wrote:
> 
> I installed the source package for TuxMath using the source option for 
> apt-get, and also grabbed libsdl-dev.

AFAIK, there is no such package (libsdl-dev), but rather several
libsdl-*-dev packages, containing various components (though, maybe
I haven't looked properly, or that's just a typo on your part...). 
Anyhow, the two header files the build is unhappy about, should be in

  libsdl-mixer1.2-dev  (-> SDL_mixer.h)
  libsdl-image1.2-dev  (-> SDL_image.h)

Have you installed those?  

> I tried the "Import Existing Project" 
> option in KDevelop.  When I try to build the project, it fails (see below).  
> I think the problem may be that I need to tell it where to find the SDL libs.

I'm not a expert for KDevelop issues, but I think that should be OK.
The option '-I/usr/include/SDL' (on the cc commandline - see below)
should be all that's needed...

> 
> cd '/home/dbruce/programming/tuxmath/tuxmath-0.0.20050316' && make -k 
> BUILDING tuxmath.o
> mkdir obj
> cc -Wall -g -I/usr/include/SDL -D_REENTRANT 
> -DDATA_PREFIX=\"/usr/share/tuxmath/\" -DDEBUG -DVERSION=\"2005.01.03\" 
> -DSOUND src/tuxmath.c -c -o obj/tuxmath.o
> In file included from src/tuxmath.c:21:
> src/setup.h:26:23: error: SDL_mixer.h: No such file or directory

What files do you actually have in /usr/include/SDL/ ?

Cheers,
Almut



Reply to: