Compilation problems on Windows platform

The 2009 Mana project went dormant around 2014 and was revived in 2023; it currently develops a client implementation for TMW and potentially other games.


User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Ок.

For the purity of the experiment:

1. Installed new host (WinXP SP3 English).
2. Installed Code:Blocks 12.11.
3. Updated MinGW to version 4.7.2-1.
4. Cloned source from git://github.com/mana/mana.git.
5. Copied libraries from https://github.com/mana/mana-mingw-libs and copy the include and lib folder in the MinGW directory.
6. Fixed mana.cbp (add chardb.cpp, chardb.h). Mana.cbp attached.
7. Compiled client. There are a few warnings, but that's okay. (Full compile log attached).
8. Copied all the required libraries to the folder with the compiled exe (pic.#001).
9. Try to run... Error. Missed two libraries (pic.#002, 003). Adding and run again (pic.#004)... Сrash program! (pic.#005, 006).
Attachments
003.jpg
003.jpg (10.84 KiB) Viewed 2547 times
002.jpg
002.jpg (15.21 KiB) Viewed 2547 times
001.jpg
001.jpg (61.09 KiB) Viewed 2547 times
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

extension...
Attachments
006.jpg
006.jpg (60.51 KiB) Viewed 2546 times
005.jpg
005.jpg (26.76 KiB) Viewed 2546 times
004.jpg
004.jpg (66.62 KiB) Viewed 2546 times
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Compile log and mana.cbp
Attachments
mana.cbp.zip
(3.3 KiB) Downloaded 28 times
FullLog.txt
(74.8 KiB) Downloaded 30 times
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by Ablu »

Can you try to run the application using the debugger in codeblocks and check why/where it crashs?
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Debager log and pic.
Attachments
DebagerLog.txt
(3.86 KiB) Downloaded 31 times
007.jpg
007.jpg (190.5 KiB) Viewed 2543 times
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by Ablu »

Hm. I have no idea atm. But I will try to find it out (I was able to reproduce it with windows... but my guichan build lacks debug symbols and I am unable to build guichan for windows on linux for some reason)...
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Is there a way to compile the client for windows?
User avatar
Bjørn
Manasource
Manasource
Posts: 1482
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by Bjørn »

vatarus wrote:Is there a way to compile the client for windows?
Isn't that what you just did?
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

I mean, is there any other way to compile a working client for windows?
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by Frost »

vatarus wrote:I mean, is there any other way to compile a working client for windows?
This usually works with Code:Blocks. It seems easier to fix whatever recently broke compiling than to create a new build process that uses a different toolchain.

Not every problem is solved in one weekend. Give them time to find the answer. :)
You earn respect by how you live, not by what you demand.
-unknown
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Ok. At the moment, work is a client - mana-2013.06.16.0313 (nightly build).

The crash problem of the compiled client remains (from source code).
Attachments
Windows client problems.pdf
(67.02 KiB) Downloaded 34 times
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03

Post by vatarus »

Сompiled gameserver.exe (from source code any branch) has the same problem as the client 2013.06.19.0340 (Nightly build).
Attachments
error.jpg
error.jpg (20.72 KiB) Viewed 2478 times
VataRus
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Compilation problems on Windows platform

Post by Ablu »

Do you somehow mixed up dlls of different mingw versions?
User avatar
vatarus
Peon
Peon
Posts: 30
Joined: 05 Aug 2011, 04:42

Re: Compilation problems on Windows platform

Post by vatarus »

Thank you Ablu. You gave the right path to find the problem.

1. I did a clean install of the Code:Blocks without the MinGW.
Then I did install a MinGW version 4.6.2 separately.
2. Compile the client from source. Client compile and run without any problems. Excellent!
3. Compile the server from source. Both the accountserver.exe and gameserver.exe is compiled without any problems.
Run the accountserver.exe. It works. Good!
Run the gameserver.exe. Get an error: it says that libgcc_s_sjlj-1.dll is missing.
I searched for this dll in my mingw installation but the only dll I found is: libgcc_s_dw2-1.dll.
Well, I asked one person about the problem.
He said to me:
You have to use -static-libgcc while compiling with mingw’s g++ to eliminate the dependacy on LIBGCC_S_SJLJ-1.DLL. You can do that by adding static-libgcc to the linker flags.

But I'm not a programmer, so do not understand this man.
Can you tell me where and what to do to fix this error?
VataRus
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Compilation problems on Windows platform

Post by Ablu »

Genereally you should have this dll somewhere around if you have mingw (if you updated/changed mingw maybe try a full rebuild of manaserv to force full recompile).

Otherwise, if you want to add this flag to the build go to the project build settings. Then to Linker settings. And add the link command to the "Other linker options" field.

Regards,
Ablu
Post Reply