Page 2 of 2

Re: Mingw (looking for a C++ compiler)

Posted: 18 May 2017, 10:00
by bidik
Is it possible to compile Open Dynamics Engine with msys2 on windows?

http://www.ode.org/

https://www.ode-wiki.org/wiki/index.php ... ntable=yes

the second link only describes

sh autogen.sh
./configure
make
sudo make install

Is msys2 smart enough to compile those? Where will msys2 install it even, after "make install"?

Re: Mingw (looking for a C++ compiler)

Posted: 18 May 2017, 13:10
by AnyOldName3
You might need a full Cygwin install instead of just MinGW (but I'm not an expert), but things should work as long as their dependencies do.

Re: Mingw (looking for a C++ compiler)

Posted: 18 May 2017, 15:30
by raven
bidik wrote:Is msys2 smart enough to compile those? Where will msys2 install it even, after "make install"?
Just give it a try and see what happens. And while at it have a look at msys directories layout.

Re: Mingw (looking for a C++ compiler)

Posted: 19 May 2017, 19:16
by bidik
Thank you so much for recommending me msys2, I compiled 2 programs from the wild on windows! How did I live without it.

I'll keep an eye on cygwin too, it may come in handy later, thanks!

Re: [solved]Mingw (looking for a C++ compiler)

Posted: 21 May 2017, 03:53
by Mishtal
Consider also this framework: http://midipix.org/

Perhaps not quite ready to go yet, but it looks like it'll be powerful in the future.

Re: [solved]Mingw (looking for a C++ compiler)

Posted: 22 May 2017, 16:51
by bidik
There is something weird with runtime. I compiled a simple "cout << "Hello world!" << endl;", and it now requires libgcc_s_dw2-1.dll and libwinpthread-1.dll, and probably something else too.

I could static link them, but it would probably make my exe really huge for no good reason. (haven't tried yet though)

I could remove runtime completely, but I want to use std datatypes, what's the point of using C++ overwise.

Re: Mingw (looking for a C++ compiler)

Posted: 22 May 2017, 20:25
by psi29a
Pretty much the same problem as cygwin really.

Re: Mingw (looking for a C++ compiler)

Posted: 31 May 2017, 11:09
by bidik
Tried to compile one library using cmake, but it installed in the Program Files folder, instead of compiler's folder. Odd.

I'll move them manually of course, but maybe there is an option somewhere to move it in the correct path?

Library: https://github.com/electronicarts/EASTL ... eLists.txt

Commands:
cmake -G"MSYS Makefiles"
make
make install

There is also this page, but I only understood that I can't apply it to windows: https://cmake.org/cmake/help/v3.0/varia ... REFIX.html