Author Topic: Runtime error after building with Mingw  (Read 1444 times)

codeman_nz

  • Initiate
  • Posts: 3
    • View Profile
Runtime error after building with Mingw
« on: 19 February 2015, 02:01:08 »
Hi everyone,

I just built megaglest 3.11.0 using mingw and codeblocks.  It built fine but running it throws a runtime error from line 523 of thread.cpp.  It goes back to line 138 of thread.cpp:
MutexSafeWrapper safeMutex(&Thread::mutexthreadList);

The issue is that Thread::mutexthreadList is not constructed even though it has on line 28:
Mutex Thread::mutexthreadList;
which should construct it.

I am at a complete loss as to why it is doing this.  Help please.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Runtime error after building with Mingw
« Reply #1 on: 20 February 2015, 00:05:42 »
the mingw compile is not officially supported and  as far as I am aware noone  compiled a working binary using this yet.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

codeman_nz

  • Initiate
  • Posts: 3
    • View Profile
Re: Runtime error after building with Mingw
« Reply #2 on: 13 March 2015, 03:13:39 »
Well with no help from anyone on here I have successfully built it using mingw and SDL2.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Runtime error after building with Mingw
« Reply #3 on: 13 March 2015, 09:14:17 »
Cool!
Which changes did you made / how did you do it?  Can you make a description( or needed changes ) available so others can build it too ?

Especially libSDL 2.0 would be VERY nice to have! How hard was it ? Do you think you would be able to make a pull request for it ?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything