MegaGlest Forum

MegaGlest => MegaGlest => Topic started by: codeman_nz on 19 February 2015, 02:01:08

Title: Runtime error after building with Mingw
Post by: codeman_nz 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.
Title: Re: Runtime error after building with Mingw
Post by: titi 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.
Title: Re: Runtime error after building with Mingw
Post by: codeman_nz on 13 March 2015, 03:13:39
Well with no help from anyone on here I have successfully built it using mingw and SDL2.
Title: Re: Runtime error after building with Mingw
Post by: titi 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 ?