Page 1 of 1

Error with browserbox.h/cpp when compiling 0.22.1 on Linux

Posted: 22 Feb 2007, 21:29
by micahpdx
I'm trying to compile on FC5 from source. I'm getting the following errors when running make (configure ran fine)

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
Any ideas?

Posted: 22 Feb 2007, 22:03
by Crush
Seems like guichan is not installed.

Posted: 22 Feb 2007, 22:32
by micahpdx
Configure got me on that, so I installed v0.5.0. Error happens still, during make. Maybe I'll try installing guichan from source rather than RPM. I'll let you know...

Code: Select all

checking for gcnGuichanVersion in -lguichan... yes

Posted: 22 Feb 2007, 22:36
by Matt
Well...the latest tmw version uses guichan 0.6.1 you know...

Posted: 22 Feb 2007, 22:37
by Crush
Guichan 0.5.0 doesn't work with the current version of tmw. You should get the 0.6.1 from the guichan homepage: http://guichan.sourceforge.net/

Posted: 23 Feb 2007, 05:01
by micahpdx
Ah yes, thank you. The INSTALL file says 0.5.0. I installed the newest guichan from source and that error has been corrected. However, now I have this one:

Code: Select all

gui/shoplistbox.cpp: In member function ‘virtual void ShopListBox::setSelected(int)’:
gui/shoplistbox.cpp:115: error: invalid conversion from ‘gcn::Widget*’ to ‘gcn::BasicContainer*’

Posted: 23 Feb 2007, 08:45
by Crush
What version exactly are yo compiling?

The current version on the SVN needs 0.6.1, the latest tarball from the download page 0.6.0.

Posted: 23 Feb 2007, 19:39
by micahpdx
I installed guichan 0.6.1 from source and am trying to make 0.0.22.1 tmw.

Posted: 23 Feb 2007, 19:44
by micahpdx
Duh-- just read what you said. I'm going to find guichan 0.6.0 instead of 0.6.1. Thanks again for all your help. I'll let you know.

Posted: 24 Feb 2007, 21:24
by micahpdx
That did it. Thanks for all your help. It's much appreciated.

Posted: 25 Feb 2007, 14:57
by Bjørn
I still think it would have been better if you had taken TMW 0.0.22.2 instead of downgrading your Guichan. We haven't been able to update the download page yet, but it's been available since the 17th.

Posted: 25 Feb 2007, 19:24
by micahpdx
Oh-- I didn't realize that. I'll check it out. Thanks.