From: David B. <db...@ta...> - 2006-09-14 11:33:26
|
Hello Kai, Thanks for your interest in tuxmath! I am by no means a build wizard, but = I=20 think the problem is that the build process can't find SDL_mixer.h and=20 SDL_image.h. On my debian system, the SDL dev files are in three separate= =20 packages (libsdl1.2debian-alsa (for the main SDL lib), libsdl-image1.2-dev,= =20 and libsdl-mixer1.2-dev). Make sure you have the SuSE equivalents of=20 libsdl-image1.2-dev and libsdl-mixer1.2-dev installed, not just the dev fil= es=20 for libSDL itself. On Thursday 14 September 2006 00:12, Kai Ponte wrote: > I'm having an issue compiling the program. I've downloaded the source from > CVS and tried to compile. I get - first off all - an error with SDL_mixe= r. > I've installed this package for my system (SUSE 10.1) and the -devel file= s. > I even then downloaded the source and added that folder to my path. > > kai@sith:~/projects/tuxmath/tuxmath/trunk> locate SDL_mixer.h > /home/kai/projects/sdl/SDL_mixer-1.2.7/SDL_mixer.h The make process looks for header files in /usr/include/SDL. On my system: dbruce@debian:/usr/include/SDL$ locate SDL_mixer.h /usr/include/SDL/SDL_mixer.h See what you have in /usr/include/SDL. I don't know for sure that this is= =20 where they would be on SuSE, but I think so, and I know this is where tuxma= th=20 expects them. > > > yet when I compile, I get the following barrage of error messages... > > kai@sith:~/projects/tuxmath/tuxmath/trunk> make > BUILDING setup.o > mkdir -p obj > cc -Wall -g -I/usr/include/SDL -D_REENTRANT > -DDATA_PREFIX=3D\"/usr/local/share/tuxmath/\" -DDEBUG > -DVERSION=3D\"tuxmath-0.93\" -DSOUND src/setup.c -c -o obj/setup.o > src/setup.c:36:23: error: SDL_mixer.h: No such file or directory > src/setup.c:39:23: error: SDL_image.h: No such file or directory > In file included from src/setup.c:42: > src/tuxmath.h:115: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2= =80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute_= _=E2=80=99 > before =E2=80=98*=E2=80=99 token > src/tuxmath.h:116: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2= =80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute_= _=E2=80=99 > before =E2=80=98*=E2=80=99 token > src/setup.c:56: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=80= =99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute__= =E2=80=99 > before =E2=80=98*=E2=80=99 token > src/setup.c:57: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=80= =99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute__= =E2=80=99 > before =E2=80=98*=E2=80=99 token > src/setup.c: In function =E2=80=98initialize_SDL=E2=80=99: > src/setup.c:406: warning: implicit declaration of function =E2=80=98Mix_O= penAudio=E2=80=99 > src/setup.c: In function =E2=80=98seticon=E2=80=99: > src/setup.c:575: warning: implicit declaration of function =E2=80=98IMG_L= oad=E2=80=99 > src/setup.c:575: warning: assignment makes pointer from integer without a > cast make: *** [obj/setup.o] Error 1 This all happens because it can't find the header files. > > > Thinking the SDL_mixer issue is part of the problem, I'll compile with > nosound. No dice... > > > the make portion goes okay, but the make install does not: > > sith:/home/kai/projects/tuxmath/tuxmath/trunk # make install > COPYING BINARY TO /usr/local/bin > mkdir -p /usr/local/bin > mkdir -p /usr/local/share/tuxmath/ > strip tuxmath > strip: 'tuxmath': No such file This means that the tuxmath binary was not created. > cp tuxmath /usr/local/bin > cp: cannot stat `tuxmath': No such file or directory Ditto. > make: *** [install] Error 1 Hope this helps. =2D-=20 David Bruce |