Page 1 of 1

0.0.23 Doesn't Compile

Posted: 29 Sep 2007, 02:32
by aaaantoine
Hi. New here.

This is the error output I get when I try to make tmw-0.0.23:

Code: Select all

gui/browserbox.h:93: error: ‘gcn::MouseEvent’ has not been declared
gui/browserbox.h:94: error: ‘gcn::MouseEvent’ has not been declared
gui/browserbox.cpp:242: error: variable or field ‘mousePressed’ declared void
gui/browserbox.cpp:242: error: ‘int BrowserBox::mousePressed’ is not a static member of ‘class BrowserBox’
gui/browserbox.cpp:242: error: ‘MouseEvent’ is not a member of ‘gcn’
gui/browserbox.cpp:242: error: ‘event’ was not declared in this scope
gui/browserbox.cpp:243: error: expected ‘,’ or ‘;’ before ‘{’ token
gui/browserbox.cpp:253: error: variable or field ‘mouseMoved’ declared void
gui/browserbox.cpp:253: error: ‘int BrowserBox::mouseMoved’ is not a static member of ‘class BrowserBox’
gui/browserbox.cpp:253: error: ‘MouseEvent’ is not a member of ‘gcn’
gui/browserbox.cpp:253: error: ‘event’ was not declared in this scope
gui/browserbox.cpp:254: error: expected ‘,’ or ‘;’ before ‘{’ token
make[2]: *** [tmw-browserbox.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Looks like I might be missing something, but the configure script didn't catch it. Let me know how to fix this.

Thanks.

Posted: 29 Sep 2007, 11:07
by ElvenProgrammer
What guichan version are you using?

Posted: 30 Sep 2007, 01:52
by aaaantoine
Thanks for the quick reply!

I have 0.4.0-4.1, according to Synaptic.

Posted: 30 Sep 2007, 05:33
by Crush
Guichan version 7.1 is required for tmw.

Posted: 30 Sep 2007, 12:58
by blueberry
As far as i know, guichan 6.1 works for 0.0.23, and 7.0 for the svn :)

Posted: 30 Sep 2007, 23:41
by aaaantoine
Okay. After installing 0.7.1-1, this is the error output of make:

Code: Select all

gui/gui.cpp: In member function ‘virtual void Gui::logic()’:
gui/gui.cpp:202: error: ‘class gcn::FocusHandler’ has no member named ‘applyChanges’
make[2]: *** [tmw-gui.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Posted: 02 Oct 2007, 17:45
by Bjørn
blueberry wrote:As far as i know, guichan 6.1 works for 0.0.23, and 7.0 for the svn :)
And he is correct, though it's 0.6.1 and 0.7.0. So install 0.6.1 and you should be fine, or use svn (branches/0.0).

Posted: 03 Oct 2007, 02:07
by aaaantoine
:?

I removed 0.7.1-1 and installed 0.6.1 to resolve the previous compile error, and the compile process progressed further (is this a bug? perhaps a feature in 0.6.1 was deprecated and removed...).

But then I got hit by a bombshell cluster of errors (about 1700 or so), with the common theme of "undefined reference to ...". For instance:

Code: Select all

tmw-viewport.o:(.rodata._ZTV8Viewport[vtable for Viewport]+0x290): undefined reference to `gcn::BasicContainer::logicChildren()'
tmw-viewport.o:(.rodata._ZTV8Viewport[vtable for Viewport]+0x2f0): undefined reference to `non-virtual thunk to gcn::BasicContainer::death(gcn::Event const&)'
tmw-window.o: In function `Window::mousePressed(gcn::MouseEvent&)':
/home/anthony/Desktop/tmw-0.0.23/src/gui/window.cpp:326: undefined reference to `gcn::Window::mousePressed(gcn::MouseEvent&)'
This sounds like I'm missing a parameter, or maybe I need to recompile from scratch. Little help please? :)

I just noticed the Debian packages, but since I'm in the middle of this compile -- and because I might try to contribute later on -- I'd like to see it through.

Posted: 03 Oct 2007, 07:06
by blueberry
I could imagine, that youve installed more than one guichan package at once. Have you unistalled the debian packages of guichan too? And did you run ./configure a second time before making it?
and...i hope you have the other dependencies installed which are stated in the INSTALL text file of the source, if not RTFM!!!

btw: wrong thread - this is definately no bug :) because its your fault. --> UNIX Support

Posted: 03 Oct 2007, 09:39
by Pajarico
Did you make a "make clean" before recompiling?

Posted: 03 Oct 2007, 14:27
by aaaantoine
blueberry wrote:I could imagine, that youve installed more than one guichan package at once. Have you unistalled the debian packages of guichan too?
I thought I had checkinstalled over the older package. Apparently, doing this did NOT remove/upgrade the original debian packages, probably because the package names were different. :oops: By removing the original Ubuntu packages, I fixed the problem with 0.6.1.
btw: wrong thread - this is definately no bug :) because its your fault. --> UNIX Support
Sounds logical, but it doesn't explain why guichan 0.6.1 progresses further in the compile process than guichan 0.7.1.
Pajarico wrote:Did you make a "make clean" before recompiling?
Aha! That's the command I was looking for.

Thank you all for your help! :D