From: Brendan L. <bm...@ri...> - 2010-09-01 16:51:45
|
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 |
From: David B. <dav...@gm...> - 2010-09-01 17:54:14
|
Hi, > 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. I always use aptitude myself, but apt-get is what is recommended on Ubuntu. The gui package tools on Ubuntu use apt-get rather than aptitude, and it is advisable to stick with one or the other. Aptitude used to have some significant advantages over apt-get, mainly better tracking of automatically-installed packages (so that installing and then uninstalling a package didn't leave one's system with all the no-longer-needed dependencies still there). For that reason, aptitude has been preferred over apt-get on Debian for several years. For the most part, I use Debian rather than Ubuntu. For whatever reason, Ubuntu has stuck with apt-get, but has also fixed the tracking issues so that AFAIK there is no longer much of an advantage to using aptitude. Aptitude also has an ncurses interactive menu mode, but I always just use it straight from the command line just like apt-get. Cheers, David |
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 > |
From: Brendan L. <bm...@ri...> - 2010-09-01 18:04:22
|
Make sure libt4k_common is being linked (also, make sure that it *should* be linked! In the branch named master, T4K_Functions ought not to be used)--look at the command for the linking step, which should have a bunch of arguments like -lSDL -lSDL_mixer -lpthread -lm and so forth. Is -lt4k_common one of them? On Wed, Sep 1, 2010 at 1:57 PM, blucalvin <blu...@gm...> wrote: > 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 > > |
From: Karl O. H. <ka...@hu...> - 2010-09-01 18:11:12
|
Wednesday 1. September 2010 skreiv blucalvin: >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 FWIW, I have the exact same problem. -- Karl Ove Hufthammer http://huftis.org/ Jabber: ka...@hu... |
From: David B. <dav...@gm...> - 2010-09-01 19:08:09
|
Hi, On Wed, Sep 1, 2010 at 1:11 PM, Karl Ove Hufthammer <ka...@hu...> wrote: > Wednesday 1. September 2010 skreiv blucalvin: >>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 OK, that's a bug in our code. "T4K_LoadScaledImage()" is a function from the new t4kcommon library, which is used by tuxmath's "commonification" branch. There shouldn't be any use of t4kcommon functions in the master branch (at least until we get around to making "commonification" the new "master", which should take place very soon). I would suggest going to line 206 in campaign.c and changing "T4K_LoadScaledImage" to "LoadScaledImage", assuming that is the correct function name in loaders.h/c, and see if it works. If so, it is your first bug fix! However, the "commonification" branch is really our current dev branch, so I wouldn't suggest spending too much time on the current master. Cheers, David |
From: blucalvin <blu...@gm...> - 2010-09-02 05:11:37
|
Bingo! Now got everything right. I changed the 206th line as Bruce had suggested and "make" along with "sudo make install" worked fine. And the music and sounds are working fine too. So now its up and running. On 2 September 2010 00:37, David Bruce <dav...@gm...> wrote: > Hi, > > On Wed, Sep 1, 2010 at 1:11 PM, Karl Ove Hufthammer <ka...@hu...> > wrote: > > Wednesday 1. September 2010 skreiv blucalvin: > >>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 > > OK, that's a bug in our code. "T4K_LoadScaledImage()" is a function > from the new t4kcommon library, which is used by tuxmath's > "commonification" branch. There shouldn't be any use of t4kcommon > functions in the master branch (at least until we get around to making > "commonification" the new "master", which should take place very > soon). > > I would suggest going to line 206 in campaign.c and changing > "T4K_LoadScaledImage" to "LoadScaledImage", assuming that is the > correct function name in loaders.h/c, and see if it works. If so, it > is your first bug fix! > > >However, the "commonification" branch is really our current dev > >branch, so I wouldn't suggest spending too much time on the current > >master. > So the code I have downloaded is the current master right? How can I get hold of the "commonification" branch? And is that term technical or just a reference name? I would like to start development as soon as possible. Looking forward to getting along with the job, Haris. > > Cheers, > > David > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Tuxmath-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxmath-devel > |
From: David B. <dav...@gm...> - 2010-09-02 14:43:01
|
Hi Haris, > So the code I have downloaded is the current master right? How can I get > hold of the "commonification" branch? And is that term technical or just a > reference name? I would like to start development as soon as possible. It is a remote branch of the tuxmath git repo - see: http://book.git-scm.com/4_tracking_branches.html If you haven't done so already, create a local git clone that supports pushing (i.e. writing) as well as pulling, and do the same for our new t4kcommon library: git clone git+ssh://blu...@gi.../git/tux4kids/tuxmath.git git clone git+ssh://blu...@gi.../git/tux4kids/t4kcommon.git (tuxmath and tuxtype have shared a lot of similar code for some time, and t4kcommon is our project to make this into a proper library). First go to your t4kcommon repo and build and install the library just as you did for tuxmath: mkdir build cd build autoreconf -if .. ../configure make sudo make install (you may need to add /usr/local/lib to your system's link path, which on Debian and Ubuntu can be done by simply running "sudo ldconfig" with no arguments. This only needs to be done once). Then go to your tuxmath git repo and check out the "commonification" branch: git branch --track commonification origin/commonification git checkout commonification This will change the contents of your local working copy to match the commonification branch. Now you can build and install our latest current version. I would recommend that you keep reading the git book and familiarize yourself with the "pull" and "push" operations, commits, and local branches. Your work flow could be something like this: (cd to tuxmath git directory) git checkout commonification git pull (work on some files with editor of choice, test your changes, etc.) git commit -a git push Everyone in the project has privileges to push commits into the repo, but try not to push anything that breaks stuff. Start out with minor, innocuous stuff. Of course, feel free to do whatever you want on your own machine. Local branches are good for trying out more radical ideas, and you can simply delete the branch whenever you like. It is considered good git practice to do development in local branches, and then use "merge" or "rebase" to move your work into the tree. You really need to get a feel for git before you can do much with the project. Best, David |