0.0.23 Doesn't Compile

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
aaaantoine
Peon
Peon
Posts: 12
Joined: Sat Sep 29, 2007 3:25 am

0.0.23 Doesn't Compile

Post by aaaantoine » Sat Sep 29, 2007 3:32 am

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.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Sat Sep 29, 2007 12:07 pm

What guichan version are you using?
aaaantoine
Peon
Peon
Posts: 12
Joined: Sat Sep 29, 2007 3:25 am

Post by aaaantoine » Sun Sep 30, 2007 2:52 am

Thanks for the quick reply!

I have 0.4.0-4.1, according to Synaptic.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Sun Sep 30, 2007 6:33 am

Guichan version 7.1 is required for tmw.
  • 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.
User avatar
blueberry
Novice
Novice
Posts: 107
Joined: Tue Feb 27, 2007 12:26 am
Location: Graz, Austria

Post by blueberry » Sun Sep 30, 2007 1:58 pm

As far as i know, guichan 6.1 works for 0.0.23, and 7.0 for the svn :)
aaaantoine
Peon
Peon
Posts: 12
Joined: Sat Sep 29, 2007 3:25 am

Post by aaaantoine » Mon Oct 01, 2007 12:41 am

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
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: Thu Dec 09, 2004 7:50 pm
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » Tue Oct 02, 2007 6:45 pm

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).
aaaantoine
Peon
Peon
Posts: 12
Joined: Sat Sep 29, 2007 3:25 am

Post by aaaantoine » Wed Oct 03, 2007 3:07 am

:?

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.
User avatar
blueberry
Novice
Novice
Posts: 107
Joined: Tue Feb 27, 2007 12:26 am
Location: Graz, Austria

Post by blueberry » Wed Oct 03, 2007 8:06 am

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
User avatar
Pajarico
Warrior
Warrior
Posts: 592
Joined: Mon Feb 28, 2005 8:29 pm
Contact:

Post by Pajarico » Wed Oct 03, 2007 10:39 am

Did you make a "make clean" before recompiling?
Lv.: Maggot
Please, read the FAQ before posting.
aaaantoine
Peon
Peon
Posts: 12
Joined: Sat Sep 29, 2007 3:25 am

Post by aaaantoine » Wed Oct 03, 2007 3:27 pm

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
Post Reply