From: David B. <dav...@gm...> - 2010-09-01 15:21:57
|
Hi, >> Error: I couldn't load a music file: >> /usr/local/share/tuxmath/sounds/game.mod > > Does that file exist? I see below that at least the directory > /usr/local/share/tuxmath/sound exists, so I think you have run "sudo > make install". > >> The Simple DirectMedia error that occured was: >> Unrecognized music format > > Maybe you don't have all the needed libraries. > >> And there is no sound while the game is working. IIRC the "*.mod" sound files are played by libmikmod, which I think is an optional dependency for SDL_mixer. If you install SDL_mixer via apt, it will get installed automatically, if you don't have it already. But if you just build SDL_mixer from source, it is possible that the build will succeed even if you don't have libmikmod. I would recommend doing something like: apt-cache search libsdl and see what the exact names are for libsdl-dev, libsdl-mixer-dev, libsdl-image-dev, libsdl-ttf-dev, and libsdl-pango-dev on your system (as well as xml2-dev and rsvg2-dev) and install them with apt-get. IIRC, they are something like "libsdl1.2-dev", "libsdl-mixer1.2-dev", and so forth. Then, you may want to remove the versions you built from source that are in /usr/local/lib. Really, apt is your friend. Anytime you need a tool or library, first check to see if it is in your distro, before you build it from source from the upstream site. If you do this, the builds of our project should work very easily. David |