Compilation problems on Windows platform
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Ок.
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).
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 (10.84 KiB) Viewed 2547 times
-
- 002.jpg (15.21 KiB) Viewed 2547 times
-
- 001.jpg (61.09 KiB) Viewed 2547 times
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
extension...
- Attachments
-
- 006.jpg (60.51 KiB) Viewed 2546 times
-
- 005.jpg (26.76 KiB) Viewed 2546 times
-
- 004.jpg (66.62 KiB) Viewed 2546 times
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Compile log and mana.cbp
- Attachments
-
- mana.cbp.zip
- (3.3 KiB) Downloaded 28 times
-
FullLog.txt
- (74.8 KiB) Downloaded 30 times
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Can you try to run the application using the debugger in codeblocks and check why/where it crashs?
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Debager log and pic.
- Attachments
-
DebagerLog.txt
- (3.86 KiB) Downloaded 31 times
-
- 007.jpg (190.5 KiB) Viewed 2543 times
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
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)...
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Is there a way to compile the client for windows?
- Bjørn
- 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
Isn't that what you just did?vatarus wrote:Is there a way to compile the client for windows?
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
I mean, is there any other way to compile a working client for windows?
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
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.vatarus wrote:I mean, is there any other way to compile a working client for windows?
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
-unknown
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
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).
The crash problem of the compiled client remains (from source code).
- Attachments
-
- Windows client problems.pdf
- (67.02 KiB) Downloaded 34 times
Re: libgcc_s_sjlj-1.dll not found (client ver. 2013.06.19.03
Сompiled gameserver.exe (from source code any branch) has the same problem as the client 2013.06.19.0340 (Nightly build).
- Attachments
-
- error.jpg (20.72 KiB) Viewed 2478 times
VataRus
Re: Compilation problems on Windows platform
Do you somehow mixed up dlls of different mingw versions?
Re: Compilation problems on Windows platform
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?
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
Re: Compilation problems on Windows platform
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
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