Page 1 of 1

Problems building TMW from svn (both trunk and branches/0.0)

Posted: 26 Nov 2007, 18:48
by seconddevil
Hello, when trying to build the mana world, I get up to this stage and the build fails.

Code: Select all

~/work/tmw/branches/0.0$ make
...
...
...
g++ -DHAVE_CONFIG_H -I. -I..  -DTMW_DATADIR=\""/usr/local/share/tmw/"\"   -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0`  -g -O2 -MT tmw-chat.o -MD -MP -MF .deps/tmw-chat.Tpo -c -o tmw-chat.o `test -f 'gui/chat.cpp' || echo './'`gui/chat.cpp
In file included from gui/chat.cpp:33:
gui/chatinput.h:29:37: error: guichan/focuslistener.hpp: No such file or directory
gui/chatinput.h:35: error: expected class-name before ‘{’ token
make[2]: *** [tmw-chat.o] Error 1
make[2]: Leaving directory `/home/dsm/work/tmw/branches/0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dsm/work/tmw/branches/0.0'
make: *** [all] Error 2
~/work/tmw/branches/0.0$ 
I checked in the guichan directory and found that the file "focuslistener.hpp" does not exist, so tried changing for "focushandler.hpp" which was the nearest include in the directory

(BTW: code tags are broken for #include <...>)

Unfortunately, this does not work either, I still get "gui/chatinput.h:35: error: expected class-name before ‘{’ token" errors.

Any ideas?

Posted: 26 Nov 2007, 18:54
by Crush
Is it possible that your guichan version is outdated? The version required for TMW is 0.7 AFAIK.

Posted: 26 Nov 2007, 18:59
by seconddevil
PS:

ii libguichan0-de 0.6.1-3 small, efficient C++ GUI library

Ubuntu Gutsy Gibbon

Posted: 26 Nov 2007, 19:02
by seconddevil
ok, that makes sense now. Thanks

Posted: 26 Nov 2007, 19:20
by seconddevil
Well, that fixed the problem, but now I have come across a different one:

Code: Select all

...
...
...
tmw-windowcontainer.o:(.rodata._ZTV15WindowContainer[vtable for WindowContainer]+0x11c): undefined reference to `gcn::Widget::_getFocusListeners()'
tmw-windowcontainer.o:(.rodata._ZTV15WindowContainer[vtable for WindowContainer]+0x174): undefined reference to `non-virtual thunk to gcn::BasicContainer::death(gcn::Event const&)'
tmw-graphics.o:(.rodata._ZTV8Graphics[vtable for Graphics]+0x40): undefined reference to `gcn::SDLGraphics::getColor() const'
tmw-openglgraphics.o:(.rodata._ZTV14OpenGLGraphics[vtable for OpenGLGraphics]+0x40): undefined reference to `gcn::SDLGraphics::getColor() const'
collect2: ld returned 1 exit status
make[2]: *** [tmw] Error 1
make[2]: Leaving directory `/home/dsm/work/tmw/branches/0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dsm/work/tmw/branches/0.0'
make: *** [all] Error 2
~/work/tmw/branches/0.0$ 
Any ideas? Is my SDL version old as well (guessing)

Thanks

Posted: 26 Nov 2007, 19:34
by seconddevil
My SDL is

Code: Select all

ii  libsdl1.2-dev  1.2.11-9ubuntu Simple DirectMedia Layer development files

Posted: 26 Nov 2007, 20:44
by Falcata
Your version of SDL isn't the problem. Those error messages still indicate a problem with Guichan.

Do you have the development libraries for guichan installed?

Posted: 26 Nov 2007, 21:06
by seconddevil
I downloaded and built 0.7 from source. Is there something special I have to do after ./configure && make && make install?

Posted: 26 Nov 2007, 22:08
by seconddevil

Posted: 26 Nov 2007, 22:13
by oliver
Instead of building Guichan from source, maybe you can try the Guichan 0.7 packages from Ubuntu Hardy:
http://packages.ubuntu.com/cgi-bin/sear ... elease=all

You can manually download the .deb files for libguichan2 and libguichan2-dev there.
Not sure if all required dependencies can be satisfied on Gutsy, but it might be worth a try. At least that should be simpler and less error-prone than building from source :-)

Posted: 27 Nov 2007, 17:46
by seconddevil
Brilliant. That is indeed a cleaner solution.

I am now re-building TMW with these packages.

PS: where can I find a list of servers I can connect to?

As in main server + dev servers. I'll be building my own soon, but have been unable so far.

Many thanks for your hep, I hope I'll be of use in the future :)

Posted: 27 Nov 2007, 17:51
by Crush
You can find a list of servers on the wiki:
http://wiki.themanaworld.org/index.php/Servers

When you want your server to be public feel free to add it there.