[NOT A BUG] can't "make" 0.0.20

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
gumbyscout
Peon
Peon
Posts: 2
Joined: 30 Jul 2006, 00:33

[NOT A BUG] can't "make" 0.0.20

Post by gumbyscout »

I downloaded the source and configured it fine (no errors), but when I tell it to make it comes up with some errors. The first error I fixed which was this:

Making all in src
make[2]: Entering directory `/mnt/hdb1/tmw-0.0.20/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DTMW_DATADIR=\""/usr/local/share/tmw/"\" -Wall -Werror -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0` -g -O2 -MT tmw-char_server.o -MD -MP -MF ".deps/tmw-char_server.Tpo" -c -o tmw-char_server.o `test -f 'gui/char_server.cpp' || echo './'`gui/char_server.cpp; \
then mv -f ".deps/tmw-char_server.Tpo" ".deps/tmw-char_server.Po"; else rm -f ".deps/tmw-char_server.Tpo"; exit 1; fi
In file included from gui/char_server.cpp:34:
net/network.h:28:21: SDL_net.h: No such file or directory
In file included from gui/char_server.cpp:34:
net/network.h:77: error: 'TCPsocket' is used as a type, but is not defined as a
type.
make[2]: *** [tmw-char_server.o] Error 1
make[2]: Leaving directory `/mnt/hdb1/tmw-0.0.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hdb1/tmw-0.0.20'
make: *** [all] Error 2

I fixed this error by pasting SDL_net.h in every folder in tmw-0.0.20 folder (I don't know how everything works so just put it everywhere :P) But after I "fixed" this error I get this one right after which I don't know how to "fix":

Making all in src
make[2]: Entering directory `/mnt/hdb1/tmw-0.0.20/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DTMW_DATADIR=\""/usr/local/share/tmw/"\" -Wall -Werror -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0` -g -O2 -MT tmw-char_select.o -MD -MP -MF ".deps/tmw-char_select.Tpo" -c -o tmw-char_select.o `test -f 'gui/char_select.cpp' || echo './'`gui/char_select.cpp; \
then mv -f ".deps/tmw-char_select.Tpo" ".deps/tmw-char_select.Po"; else rm -f ".deps/tmw-char_select.Tpo"; exit 1; fi
In file included from gui/char_select.cpp:24:
gui/char_select.h:42: error: base class `gcn::ActionListener' has incomplete
type
gui/char_select.h:96: error: base class `gcn::ActionListener' has incomplete
type
gui/char_select.cpp: In constructor `
CharSelectDialog::CharSelectDialog(Network*, LockedArray<LocalPlayer>*,
unsigned char)':
gui/char_select.cpp:78: error: no matching function for call to `Button::Button
(const char[3], const char[3], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:79: error: no matching function for call to `Button::Button
(const char[7], const char[7], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:80: error: no matching function for call to `Button::Button
(const char[4], const char[4], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:81: error: no matching function for call to `Button::Button
(const char[7], const char[7], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:82: error: no matching function for call to `Button::Button
(const char[9], const char[9], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:83: error: no matching function for call to `Button::Button
(const char[5], const char[5], CharSelectDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp: In member function `void CharSelectDialog::action(const
std::string&)':
gui/char_select.cpp:161: error: cannot allocate an object of type `
CharDeleteConfirm'
gui/char_select.cpp:161: error: because the following virtual functions are
abstract:
/usr/include/guichan/actionlistener.hpp:92: error: virtual void
gcn::ActionListener::action(const std::string&, gcn::Widget*)
gui/char_select.cpp: In constructor `
CharCreateDialog::CharCreateDialog(Window*, int, Network*, unsigned char)':
gui/char_select.cpp:237: error: no matching function for call to `Button::
Button(const char[2], const char[10], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:238: error: no matching function for call to `Button::
Button(const char[2], const char[10], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:240: error: no matching function for call to `Button::
Button(const char[2], const char[10], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:241: error: no matching function for call to `Button::
Button(const char[2], const char[10], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:243: error: no matching function for call to `Button::
Button(const char[7], const char[7], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:244: error: no matching function for call to `Button::
Button(const char[7], const char[7], CharCreateDialog* const)'
gui/button.h:38: error: candidates are: Button::Button(const Button&)
gui/button.h:44: error: Button::Button(const std::string&,
const std::string&, gcn::ActionListener*)
gui/char_select.cpp:270: error: no matching function for call to `
gcn::TextField::addActionListener(CharCreateDialog* const)'
/usr/include/guichan/widget.hpp:440: error: candidates are: virtual void
gcn::Widget::addActionListener(gcn::ActionListener*)
gui/char_select.cpp: In member function `void CharCreateDialog::action(const
std::string&)':
gui/char_select.cpp:298: error: cannot allocate an object of type `OkDialog'
gui/char_select.cpp:298: error: because the following virtual functions are
abstract:
/usr/include/guichan/actionlistener.hpp:92: error: virtual void
gcn::ActionListener::action(const std::string&, gcn::Widget*)
make[2]: *** [tmw-char_select.o] Error 1
make[2]: Leaving directory `/mnt/hdb1/tmw-0.0.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hdb1/tmw-0.0.20'
make: *** [all] Error 2

I would really like to play this game, so I would appreciate if someone could assist me.
Dr Wahl
Warrior
Warrior
Posts: 317
Joined: 09 Apr 2006, 06:15
Location: Washington

Post by Dr Wahl »

looks like there is a problem with guichan (no suprise there...). have you tried compiling the latest guichan from source?
Image
User avatar
Platyna
Grand Knight
Grand Knight
Posts: 2215
Joined: 19 Nov 2005, 13:19
Location: Poland
Contact:

Post by Platyna »

net/network.h:28:21: SDL_net.h: No such file or directory
Do you have SDL properly installed? Messing with header files is wrong.
See here: http://forums.themanaworld.org/viewtopic.php?t=1178

Regards.
gumbyscout
Peon
Peon
Posts: 2
Joined: 30 Jul 2006, 00:33

Post by gumbyscout »

I complied everything from source that was listed in the "INSTALL" file. I can't seem to get SDL to work. SDL doesn't have sound support on my computer and I don't know why. My system is a Debian Linspire build.

P.S. I complied SDL the first time from source (didn't work). Then I installed it using CNR (older version of SDL), and it still doesn't work.
User avatar
Platyna
Grand Knight
Grand Knight
Posts: 2215
Joined: 19 Nov 2005, 13:19
Location: Poland
Contact:

Post by Platyna »

Debian should have SDL and SDL_net packages. Also try passing --prefix=/usr to configure.

Regards.
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

Notice how the INSTALL files tells you that TMW needs Guichan 0.4.0 specifically. It looks like you installed the recently released Guichan 0.5.0. TMW is not compatible with that version yet (the next release will require it).
Locked