Author Topic: Compiling simutrans  (Read 1210 times)

0 Members and 1 Guest are viewing this topic.

Offline hreintke

Compiling simutrans
« on: May 04, 2012, 11:35:41 AM »
LS,
Making the first steps in simutrans compiling. I am using a Win7 PC.
Took the folowing steps
- Installed and configured mingw
- Downloaded the simutrans masterbranch from git using zip file
- Updated config.template to get options set
- Started using make
This results in a compile with no errors and a simutrans executable in the build/default directory.
But starting that executable I get the errormessage "Can't start because libgcc_2_dw2-1.dll is missing.

Had the same issue when using a nightly build somewhere last week and that was solved later in the build.

Do I need to take additional steps to get this libary included ?

Any help appreciated.

Herman

Offline TurfIt

Re: Compiling simutrans
« Reply #1 on: May 04, 2012, 12:38:21 PM »
You need either obtain the .dlls ( libgcc and libstdc++) and place them where simutrans can find.
Or statically link them
Code: [Select]
-static-libgcc -static-libstdc++
to the linker will do. LDFLAGS...

Offline Milko

Re: Compiling simutrans
« Reply #2 on: May 04, 2012, 01:31:24 PM »
Hello hreintke

You need either obtain the .dlls ( libgcc and libstdc++) and place them where simutrans can find.

I found the dll in the folder "\ mingw \ bin". Then I put them in the base folder simutrans with sim.exe.
The needed dll's are libgcc_s_dw2-1.dll and libstdc++-6.dll.

Giuseppe
« Last Edit: May 04, 2012, 01:39:46 PM by Milko »