PDA

View Full Version : Error while compiling The mana world


Lifesteeler
November 4th, 2005, 06:38 AM
hi, i get this error when im compiling the mana world from source,
EDIT: this is what seems to be the error message in its whole... also there are no missing libraries before it.

: undefined reference to `non-virtual thunk to gcn::TextBox::mousePress(int, int , int)'
collect2: ld returned 1 exit status
make[1]: *** [tmw] Error 1
make[1]: Leaving directory `/home/lifesteeler/Desktop/Installs/tmw/tmw-0.0.17/sr c'
make: *** [install-recursive] Error 1


anyone know what to do? since im stuck...

Sslaxx
November 4th, 2005, 06:47 AM
Looks like an incomplete thing to me. Does it say anything about missing libraries before that error, or syntax errors or the like?

Lifesteeler
November 4th, 2005, 07:26 AM
nope, it runs perfectly until it stops with that error...

madjo
November 5th, 2005, 07:35 PM
when you ran ./configure did that throw any issues/problems at you?

Bjørn
November 17th, 2005, 08:35 AM
: undefined reference to `non-virtual thunk to gcn::TextBox::mousePress(int, int , int)'
collect2: ld returned 1 exit status
It's a linker error related to the Guichan (http://guichan.sourceforge.net/) library. The cause of this is probably that the guichan-dev package you installed was compiled with an incompatible version of GCC than the GCC you are trying to compile The Mana World (http://themanaworld.org/) with.

One solution would be to compile and install Guichan manually, I did this on my system using the $HOME prefix (./configure --prefix=$HOME) so that I didn't need to be root for it and there was no way it could mess up later Guichan installs. Of course that'd also require setting up CPLUS_INCLUDE_PATH, LD_LIBRARY_PATH and LIBRARY_PATH environment variables in your ~/.bashrc to make sure include and library files are found.