Page 1 of 2

compiling problems`

Posted: 24 Jan 2008, 21:49
by haggard
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!!!!

Posted: 24 Jan 2008, 21:56
by Crush
What exactly do you want to compile? The new server, the client for the new server or the client for the current server?

Posted: 25 Jan 2008, 00:00
by haggard
whatever i need to do to test the new server

Posted: 25 Jan 2008, 01:01
by Crush
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?

Posted: 25 Jan 2008, 03:12
by haggard
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.

Posted: 25 Jan 2008, 03:19
by Crush
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.

Posted: 25 Jan 2008, 05:52
by haggard
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?

Posted: 25 Jan 2008, 15:11
by Crush
It would be better to put the server into a separate folder because it is a completely separate application.

Posted: 29 Jan 2008, 18:16
by haggard
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?

Posted: 29 Jan 2008, 18:36
by Crush
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.

Posted: 29 Jan 2008, 19:46
by haggard
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

Posted: 29 Jan 2008, 20:00
by Jaxad0127
It appears you don't have libxml installed (or it can't be found by the compiler).

Posted: 29 Jan 2008, 21:15
by Crush
The same applies to SDL.

Note that you have to add the include folder for the SDL headers manually in the project settings.

Posted: 29 Jan 2008, 22:25
by haggard
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

Posted: 30 Jan 2008, 07:58
by ElvenProgrammer
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)