compiling problems`

Ask for help regarding any technical issue or report any bug or OS independent issues.
User avatar
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

compiling problems`

Post by haggard » 24 Jan 2008, 22:49

ok im a newbie at this and ive been tryin to read other peoples topics to figure it out but i cant... i have code blocks, and i have the dev pak...dont know what to do with it but i have it. then i got sqlite...whatever that is and now i think im supposed to get some sort of pthread? im not sure can somene please please help me here step by step...basically stupid talk if you can. im in desperate need!!!!
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 24 Jan 2008, 22:56

What exactly do you want to compile? The new server, the client for the new server or the client for the current server?
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 25 Jan 2008, 01:00

whatever i need to do to test the new server
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 25 Jan 2008, 02:01

Then you will need the sourcecode of the new client and the new server.

Do you know how to use an SVN client to get the sourcecode?
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 25 Jan 2008, 04:12

haha not at all....i know i sound pathetic right now but im all up for learning new stuff and i tend to catch on quick.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 25 Jan 2008, 04:19

Then get a subversion client (I recommend either SmartSVN or TortoiseSVN) and learn to use it (consult their homepages, their readme files and their online help).

The directories you have to "check out" with your SVN client are:
https://themanaworld.svn.sourceforge.ne ... tmw/trunk/ (client)
and
https://themanaworld.svn.sourceforge.ne ... erv/trunk/ (server)

You will find some code::blocks project files in them. Open them and use build->build to attempt to compile them. It is very unlikely that it will work without an error because you most likely screwed something up while getting the dependencies. Post the errors you get and I can help you fixing them.
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 25 Jan 2008, 06:52

thanks crush, i wont be able to get to it until the beginning of next week on account of work but ill post whatever ive messed up on the forum...and also i have tortoiseSVN and ive actually already have a folder that has the client "check out" i did the whole right click, check out, put in directory and it downloaded all these files to the folder. thats as far as ive gotten with the svn but do i need to do yet another folder for the client then? and if i do should i put the server folder into the client folder?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 25 Jan 2008, 16:11

It would be better to put the server into a separate folder because it is a completely separate application.
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 29 Jan 2008, 19:16

ok i added a new folder for the server. so now i have the client and server svn....now what? i downloaded code::blocks and enet 1.1 (?) im sure there im supposed to have more than that but its a start right?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 29 Jan 2008, 19:36

Crush wrote:You will find some code::blocks project files in them. Open them and use build->build to attempt to compile them. It is very unlikely that it will work without an error because you most likely screwed something up while getting the dependencies. Post the errors you get and I can help you fixing them.
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 29 Jan 2008, 20:46

Crush wrote:
Crush wrote:You will find some code::blocks project files in them. Open them and use build->build to attempt to compile them. It is very unlikely that it will work without an error because you most likely screwed something up while getting the dependencies. Post the errors you get and I can help you fixing them.
This is the build log after i tried to build the client

Project : The Mana World
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Program Files\tmw client\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: src\animatedsprite.cpp
In file included from src\/animatedsprite.h:27,
from src\animatedsprite.cpp:24:
src\/resources/spritedef.h:32:25: libxml/tree.h: No such file or directory
In file included from src\/animatedsprite.h:27,
from src\animatedsprite.cpp:24:
src\/resources/spritedef.h:98: error: `xmlNodePtr' has not been declared
src\/resources/spritedef.h:98: error: ISO C++ forbids declaration of `node' with no type
src\/resources/spritedef.h:104: error: `xmlNodePtr' has not been declared
src\/resources/spritedef.h:104: error: ISO C++ forbids declaration of `node' with no type
src\/resources/spritedef.h:110: error: `xmlNodePtr' has not been declared
src\/resources/spritedef.h:112: error: ISO C++ forbids declaration of `animationNode' with no type
src\/resources/spritedef.h:118: error: `xmlNodePtr' has not been declared
src\/resources/spritedef.h:118: error: ISO C++ forbids declaration of `includeNode' with no type
In file included from src\animatedsprite.cpp:26:
src\/graphics.h:27:39: guichan/sdl/sdlgraphics.hpp: No such file or directory
In file included from src\animatedsprite.cpp:26:
src\/graphics.h:58: error: `gcn' has not been declared
src\/graphics.h:58: error: expected class-name before '{' token
src\/graphics.h:91: error: `gcn' has not been declared
In file included from src\animatedsprite.cpp:31:
src\/resources/image.h:29:17: SDL.h: No such file or directory
src\/resources/image.h:38:24: SDL_opengl.h: No such file or directory
In file included from src\animatedsprite.cpp:31:
src\/resources/image.h:144: error: expected `)' before "glimage"
src\/resources/image.h:155: error: `SDL_Rect' does not name a type
src\/resources/image.h:159: error: `GLuint' does not name a type
src\/resources/image.h: In member function `virtual int Image::getWidth() const':
src\/resources/image.h:100: error: `mBounds' undeclared (first use this function)
src\/resources/image.h:100: error: (Each undeclared identifier is reported only once for each function it appears in.)
src\/resources/image.h: In member function `virtual int Image::getHeight() const':
src\/resources/image.h:107: error: `mBounds' undeclared (first use this function)
src\/resources/image.h: At global scope:
src\/resources/image.h:182: error: `GLuint' has not been declared
src\/resources/image.h:183: error: ISO C++ forbids declaration of `image' with no type
In file included from src\animatedsprite.cpp:34:
src\/utils/xml.h:40: error: `xmlNodePtr' was not declared in this scope
src\/utils/xml.h:40: error: expected primary-expression before "const"
src\/utils/xml.h:40: error: expected primary-expression before "int"
src\/utils/xml.h:40: error: initializer expression list treated as compound expression
src\/utils/xml.h:46: error: `xmlNodePtr' was not declared in this scope
src\/utils/xml.h:46: error: expected primary-expression before "const"
src\/utils/xml.h:46: error: expected primary-expression before "double"
src\/utils/xml.h:46: error: initializer expression list treated as compound expression
src\/utils/xml.h:52: error: conflicting declaration 'std::string XML::getProperty'
src\/utils/xml.h:40: error: 'XML::getProperty' has a previous declaration as `int XML::getProperty'
src\/utils/xml.h:52: error: type mismatch with previous external decl of `std::string XML::getProperty'
src\/utils/xml.h:40: error: previous external decl of `int XML::getProperty'
src\/utils/xml.h:52: error: declaration of `std::string XML::getProperty'
src\/utils/xml.h:40: error: conflicts with previous declaration `int XML::getProperty'
src\/utils/xml.h:52: error: `xmlNodePtr' was not declared in this scope
src\/utils/xml.h:52: error: expected primary-expression before "const"
src\/utils/xml.h:52: error: expected primary-expression before "const"
src\/utils/xml.h:57: error: `xmlNodePtr' does not name a type
Process terminated with status 1 (0 minutes, 6 seconds)
41 errors, 0 warnings
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Post by Jaxad0127 » 29 Jan 2008, 21:00

It appears you don't have libxml installed (or it can't be found by the compiler).
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 29 Jan 2008, 22:15

The same applies to SDL.

Note that you have to add the include folder for the SDL headers manually in the project settings.
  • 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
haggard
Novice
Novice
Posts: 190
Joined: 20 Jan 2006, 04:27
Location: Ohio

Post by haggard » 29 Jan 2008, 23:25

Crush wrote:The same applies to SDL.

Note that you have to add the include folder for the SDL headers manually in the project settings.
um where do i get both and instructions on adding the include folder for the sdl headers?...and i think im might have gotten libxml at one point in time just didnt know what to do with it
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 30 Jan 2008, 08:58

Get the DevPak linked in the sticky of this forum, rename it to .tar.bz2 and then extract the iclude/lib folders in your compiler folder (i.e. c:\mingw)

In Code::Blocks go to Projects -> Build Options -> Directories -> Add
Browse to your SDL header installation (i.e. c:\mingw\include\SDL)
Post Reply