Page 1 of 1

Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 02:22
by vatarus
Hi
I have a problem with compilation.
Has anyone had a similar problem?

I use CodeBlocks 10.05.

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 02:25
by o11c
Looks like you're missing the guichan library?

Note that the Code::Blocks project might not be kept up-to-date - though I'm not sure whether there have been any changes in the mana codebase lately that would invalidate it.

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 03:04
by vatarus
Thanks o11c

There is the guichan library in the project.
Most likely the CodeBlocks project is no longer supported.

Do you know how to compile client for windows?
How to compile, for example, nightly builds for Windows?

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 03:12
by meway
Let me see if I can't compile it in code::blocks

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 05:13
by vatarus
Full Build Log

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 07:15
by Ablu
vatarus: Please check the linking settings for guichan. You have to set it to the correct path. So make sure that the guichan libary is available in the searchpath for the libraries (if you lack the binaries, you find them here: https://github.com/mana/mana-mingw-libs/tree/master/lib).

Re: Compile Error (CodeBlocks)

Posted: 29 Mar 2013, 08:02
by vatarus
Linking settings for guichan (see screenshots).

Tell me, please, what is wrong?

Re: Compile Error (CodeBlocks)

Posted: 16 Apr 2013, 07:13
by rentt
I got the same error. Any suggestions?

Re: Compile Error (CodeBlocks)

Posted: 16 Apr 2013, 07:21
by Ablu
Ah sorry missed the earlier reply here. Are you sure that you have the guichan ddl's in your lib folder? You need those files: https://github.com/mana/mana-mingw-libs/tree/master/lib

EDIT: I was just able to try it on a windows pc. I was able to link/build it without modifiying any settings. So only copy the files to the right locations, open codeblocks and compile.

Re: Compile Error (CodeBlocks)

Posted: 16 Apr 2013, 07:50
by rentt
I guess I dit it.
I have git the whole project "mana-mingw-libs" on my disk. In Code::Blocks my build options look like this:

build options->Search directories->Compiler
src\
include
..\mana-mingw-libs\include\libxml
..\mana-mingw-libs\include
libs\enet\include
build options->Search directories->Linker
lib
..\mana-mingw-libs\lib

FYI, I am using Code::Blocks 12.11 on Win7. And I have successfully compiled the "accountserver" and "gameserver".
Forgive me, I have another question not relate to this topic. I am confused with
clientDataPath to the path of your client data.
serverDataPath to the path of your server data.
at the doc http://doc.manasource.org/server_configuration. Where can I get the server data and client data. The example folder seems simple. Can the "tmwa-client-data" and "tmwa-server-data" at github work?

Re: Compile Error (CodeBlocks)

Posted: 24 Apr 2013, 02:45
by rentt
Thanks Ablu!
This linker error caused by binary incompatible. The libraries and the source compiled with different GCC. With the help of Ablu, assign the gcc compiler in Code::Blocks with the official MingW. If you still get such issue, try to change a gcc version or ask the developer update the library.