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

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

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

Post 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?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

Is it possible that your guichan version is outdated? The version required for TMW is 0.7 AFAIK.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post by seconddevil »

PS:

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

Ubuntu Gutsy Gibbon
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post by seconddevil »

ok, that makes sense now. Thanks
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post 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
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post by seconddevil »

My SDL is

Code: Select all

ii  libsdl1.2-dev  1.2.11-9ubuntu Simple DirectMedia Layer development files
User avatar
Falcata
Novice
Novice
Posts: 137
Joined: 10 Nov 2006, 01:55
Location: Michiana
Contact:

Post 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?
I'm a proud member of the Online Campaign for Real English, a movement for those who believe in capital letters, correct spelling, and good sentence structure.
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post by seconddevil »

I downloaded and built 0.7 from source. Is there something special I have to do after ./configure && make && make install?
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post by seconddevil »

oliver
Peon
Peon
Posts: 14
Joined: 07 Oct 2007, 17:44

Post 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 :-)
seconddevil
Peon
Peon
Posts: 9
Joined: 26 Nov 2007, 18:42

Post 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 :)
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post 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.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply