From: David B. <dav...@gm...> - 2012-02-28 11:51:14
|
Hi Haris, The master branch of tuxmath is no longer compatible with t4kcommon-0.1.1. It requires the newer t4kcommon in git, which will be 1.0.0 (new major number because of this incompatibility). So, just install the latest git for t4kcommon and tuxmath should build correctly. I am trying to get new releases of t4kcommon and tuxmath out this week. David On Feb 28, 2012 3:29 AM, "Haris Ibrahim K. V." <blu...@gm...> wrote: > Hi David, > > On compiling tuxmath and running make, I ran into a few errors that said > > *variable white and yellow undeclared in function help_add_comet() in > comets.c* > *../../src/menu_lan.c: In function ‘draw_player_table’: > ../../src/menu_lan.c:486: error: ‘bright_green’ undeclared (first use in > this function) > ../../src/menu_lan.c:486: error: (Each undeclared identifier is reported > only once > ../../src/menu_lan.c:486: error: for each function it appears in.) > ../../src/menu_lan.c:491: error: ‘red’ undeclared (first use in this > function) > * > > On tracing through the code a while, I found out that these were of type > SDL_Color. So I put the corresponding declarations in the tuxmath.h file > and the compilation went forward revealing more errors. > > *../../src/setup.c: In function ‘initialize_SDL’: > ../../src/setup.c:646: error: invalid use of void expression > * > So for the sake of seeing where the compilation would go to, I commented > out the function above and went on with the compilation. Then the following > errors appeared: > > */home/haris/tux4kids/tuxmath/build/src/../../src/menu_lan.c:487: > undefined reference to `bright_green' > /home/haris/tux4kids/tuxmath/build/src/../../src/setup.c:928: undefined > reference to `CleanupT4KCommon' > * > I tried commenting out the both above and the make install worked fine. > But on running it, I was greeted with a 'segmentation fault'. I tried > checking around for CleanupT4KCommon in the tuxmath source directories as > well as the t4k_common-0.1.1 source directories but did not find it. > > I've attached my diff along with this mail. > > Do let me know where I missed something. > > Thanks, > -- > Haris Ibrahim K. V. > sosaysharis.wordpress.com > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Tuxmath-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxmath-devel > > |