From: blucalvin <blu...@gm...> - 2010-09-01 17:58:14
|
Hi, To start of again fresh, I followed both Bruce's and Brendan's advice and uninstalled all that I had installed from source like SDL_image, etc. I cloned the repository anew with my "pull-push" privilege and ran autoreconf (which worked fine when ran twice). Then while executing the configure file, it pointed out which all libraries were missing. I apt-cache searched each of them and apt-get installed them too. Everything went well and finally I ran 'make' within the "build" directory. Here came the problem! A lot of stuff came written on the screen of whose end was: { campaign.o: In function `briefPlayer': /home/haris/mywork/project/tuxmath/build/src/../../src/campaign.c:206: undefined reference to `T4K_LoadScaledImage' collect2: ld returned 1 exit status make[2]: *** [tuxmath] Error 1 make[2]: Leaving directory `/home/haris/mywork/project/tuxmath/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/haris/mywork/project/tuxmath/build' make: *** [all] Error 2 } And when I ran sudo make install, the end of the long line of outputs was: { campaign.o: In function `briefPlayer': /home/haris/mywork/project/tuxmath/build/src/../../src/campaign.c:206: undefined reference to `T4K_LoadScaledImage' collect2: ld returned 1 exit status make[1]: *** [tuxmath] Error 1 make[1]: Leaving directory `/home/haris/mywork/project/tuxmath/build/src' make: *** [install-recursive] Error 1 } What maybe wrong here now? It had worked fine earlier (without music). Thanks, Haris. On 1 September 2010 22:21, Brendan Luchen <bm...@ri...> wrote: > Hi Haris, > > To expand on what David said, make sure you first update the package > manager: > > sudo apt-get update > > Then look for the package: > > apt-cache search SDL > > This will list a ton of libraries--I think they're in alphabetical > order, though, so you can find what you need quickly. Look for a > version ending in "dev" or (in some cases) "devel" and either copy it > from the terminal window, or remember it, char for char. To install > it: > > sudo apt-get install <exact package name> > > BTW, you might also use aptitude instead of apt-get/apt-cache. As far > as I know, it does the same thing in a slightly-easier-to-use way. > > HTH, > Brendan > |