Compile Error (CodeBlocks)

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Compile Error (CodeBlocks)

Post by vatarus »

Hi
I have a problem with compilation.
Has anyone had a similar problem?

I use CodeBlocks 10.05.
Attachments
error.txt
(9.87 KiB) Downloaded 99 times
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Compile Error (CodeBlocks)

Post 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.
Former programmer for the TMWA server.
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: Compile Error (CodeBlocks)

Post 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?
User avatar
meway
TMW Classic
TMW Classic
Posts: 1737
Joined: 04 Jan 2009, 05:02
Location: Detroit MI

Re: Compile Error (CodeBlocks)

Post by meway »

Let me see if I can't compile it in code::blocks
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: Compile Error (CodeBlocks)

Post by vatarus »

Full Build Log
Attachments
BuildLog.txt
(84.5 KiB) Downloaded 84 times
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Compile Error (CodeBlocks)

Post 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).
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: Compile Error (CodeBlocks)

Post by vatarus »

Linking settings for guichan (see screenshots).

Tell me, please, what is wrong?
Attachments
2013-03-29_185621.jpg
2013-03-29_185621.jpg (48.89 KiB) Viewed 3608 times
2013-03-29_185607.jpg
2013-03-29_185607.jpg (49.36 KiB) Viewed 3608 times
2013-03-29_185344.jpg
2013-03-29_185344.jpg (57.25 KiB) Viewed 3608 times
rentt
Newly Registered User
Posts: 3
Joined: 16 Apr 2013, 07:10

Re: Compile Error (CodeBlocks)

Post by rentt »

I got the same error. Any suggestions?
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Compile Error (CodeBlocks)

Post 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.
rentt
Newly Registered User
Posts: 3
Joined: 16 Apr 2013, 07:10

Re: Compile Error (CodeBlocks)

Post 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?
rentt
Newly Registered User
Posts: 3
Joined: 16 Apr 2013, 07:10

Re: Compile Error (CodeBlocks)

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