What should I do to compile tmwserv?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

What should I do to compile tmwserv?

Post 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
User avatar
trapdoor
Novice
Novice
Posts: 216
Joined: 18 Feb 2007, 12:36

Post 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
Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

Post by Blamoo »

k... ill try to compile it under linux

thx :D
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

The server runs and compiles fine on windows.
  • 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.
Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

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

Post 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
Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

Post by Blamoo »

i did...

do i need enet library to compile it?
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

Post by Blamoo »

i need pthread and SQLite too right?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

yes, you do.
  • 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
Manaboy
Novice
Novice
Posts: 114
Joined: 21 Nov 2006, 07:44
Location: Germany

waht?

Post by Manaboy »

waht is tahts???
Event?
Hello my englich is not so good.

i from german :)

my lvl is 71
and my name is Manaboy in tmw
Blamoo
Novice
Novice
Posts: 98
Joined: 03 Feb 2006, 22:07

Re: waht?

Post by Blamoo »

Manaboy wrote:
waht is tahts???
Event?
what?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

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