I'm attempting to install a game that uses SDL. I've installed the latest stable release of SDL (SDL-1.2.14) and SDL_gfx-2.0.22 from source. During game compilation, I receive this error:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -I./guichan/include -DPKG_DATADIR=\""/usr/local/share/manaplus/"\" -DLOCALEDIR=\""/usr/local/share/locale"\" -Wall -DUSE_INTERNALGUICHAN -MT gui/widgets/manaplus-avatarlistbox.o -MD -MP -MF gui/widgets/.deps/manaplus-avatarlistbox.Tpo -c -o gui/widgets/manaplus-avatarlistbox.o `test -f 'gui/widgets/avatarlistbox.cpp' || echo './'`gui/widgets/avatarlistbox.cpp
In file included from ./localplayer.h:28:0,
./client.h:33:27: fatal error: SDL_framerate.h: No such file or directory
make: *** [gui/widgets/manaplus-avatarlistbox.o] Error 1
make: Leaving directory `/home/adam/manaplus/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/adam/manaplus'
make: *** [all] Error 2
SDL_framerate.h is a part of the SDL_gfx library. The game is searching /usr/include/SDL for the appropriate include files, however, the SDL libraries that I've installed from source have been installed in /usr/local/lib by their respective packages.
I see two solutions to this but don't know how to do so. I install the libraries in the directory the game is searching for the files or I have the game search a different directory for the SDL files instead of its default. I think it would be easier to have the game search for /usr/local/lib where my SDL libraries are located during compilation and I've tried "make -I/usr/local/lib" but still receive the same error. What should I do to fix this problem?