Page 1 of 1

What should I do to compile tmwserv?

Posted: 22 Jun 2007, 19:49
by Blamoo
what should i do to compile tmwserv? step by step plz... im newbie...

i've downloaded codeblocks, tmw-svn.DevPak, dev-c++ and lastest source code( https://svn.sourceforge.net/svnroot/the ... erv/trunk/)

and now?

build log:

Code: Select all

Project   : TMWServ Gameserver
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\WINDOWS\Desktop\trunk\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: src\game-server\trigger.cpp
src\game-server\trigger.cpp:24:35: game-server/trigger.hpp: No such file or directory
src\game-server\trigger.cpp:26:40: game-server/mapcomposite.hpp: No such file or directory
src\game-server\trigger.cpp:27:40: game-server/movingobject.hpp: No such file or directory
src\game-server\trigger.cpp:28:34: game-server/object.hpp: No such file or directory
src\game-server\trigger.cpp:29:33: game-server/state.hpp: No such file or directory
src\game-server\trigger.cpp:31: error: `WarpAction' has not been declared
src\game-server\trigger.cpp:31: error: variable or field `process' declared void
src\game-server\trigger.cpp:31: error: `Object' was not declared in this scope
src\game-server\trigger.cpp:31: error: `obj' was not declared in this scope
src\game-server\trigger.cpp:32: error: expected `,' or `;' before '{' token
src\game-server\trigger.cpp:40: error: `TriggerArea' has not been declared
src\game-server\trigger.cpp:40: error: `Rectangle' has not been declared
src\game-server\trigger.cpp:40: error: `TriggerAction' has not been declared
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `TriggerArea' with no type
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `r' with no type
src\game-server\trigger.cpp:41: error: ISO C++ forbids declaration of `ptr' with no type
src\game-server\trigger.cpp: In function `int TriggerArea(int, int&, int*)':
src\game-server\trigger.cpp:41: error: only constructors take base initializers
src\game-server\trigger.cpp:41: error: `OBJECT_OTHER' undeclared (first use this function)
src\game-server\trigger.cpp:41: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\game-server\trigger.cpp:43: error: `setMapId' undeclared (first use this function)
src\game-server\trigger.cpp: At global scope:
src\game-server\trigger.cpp:46: error: `TriggerArea' is not a class or namespace
src\game-server\trigger.cpp: In function `void update()':
src\game-server\trigger.cpp:48: error: `MapComposite' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `map' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `gameState' undeclared (first use this function)
src\game-server\trigger.cpp:48: error: `getMapId' undeclared (first use this function)
src\game-server\trigger.cpp:50: error: `MovingObjectIterator' undeclared (first use this function)
src\game-server\trigger.cpp:50: error: expected `;' before "i"
src\game-server\trigger.cpp:50: error: `i' undeclared (first use this function)
src\game-server\trigger.cpp:52: error: `mZone' undeclared (first use this function)
src\game-server\trigger.cpp:54: error: `mAction' undeclared (first use this function)
Process terminated with status 1 (0 minutes, 2 seconds)
30 errors, 0 warnings
 

please help me... im a DELPHI programmer... not a C++ programmer T_T

Posted: 23 Jun 2007, 08:54
by trapdoor
I would advise not to run the server on windows, instead use a UNIX or linux box and compile it & run it on there.

--
trapdoor

Posted: 23 Jun 2007, 15:53
by Blamoo
k... ill try to compile it under linux

thx :D

Posted: 24 Jun 2007, 18:39
by Crush
The server runs and compiles fine on windows.

Posted: 24 Jun 2007, 23:54
by Blamoo
Crush wrote:The server runs and compiles fine on windows.

but i dont know what should i do... im a delphi programmer... not a c++ programmer T_T

Posted: 25 Jun 2007, 08:11
by ElvenProgrammer
To compile the server you need to add the src folder to the include directiories for the compiler or get latest svn to fix it

Posted: 26 Jun 2007, 13:37
by Blamoo
i did...

do i need enet library to compile it?

Posted: 26 Jun 2007, 14:58
by ElvenProgrammer

Posted: 26 Jun 2007, 23:00
by Blamoo
i need pthread and SQLite too right?

Posted: 27 Jun 2007, 00:01
by Crush
yes, you do.

Posted: 27 Jun 2007, 07:04
by ElvenProgrammer

waht?

Posted: 05 Jul 2007, 17:27
by Manaboy
waht is tahts???
Event?

Re: waht?

Posted: 05 Jul 2007, 23:10
by Blamoo
Manaboy wrote:
waht is tahts???
Event?
what?

Posted: 05 Jul 2007, 23:22
by Crush
Just ignore manaboy. He doesn't speak enough english to understand what's going on here let alone enough to express himself. But that doesn't stop him from trying anyway.