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: 29 Sep 2007, 02:25

0.0.23 Doesn't Compile

Post 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.
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

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

Post by aaaantoine »

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: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

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: 26 Feb 2007, 23:26
Location: Graz, Austria

Post by blueberry »

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: 29 Sep 2007, 02:25

Post 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
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

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

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

Post 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
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post by Pajarico »

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

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