Mingw (looking for a C++ compiler)

Not about OpenMW? Just about Morrowind in general? Have some random babble? Kindly direct it here.
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

Mingw (looking for a C++ compiler)

Post by bidik »

Anybody here uses mingw for windows? How is it, managed to compile OpenMW with it?

It looks like official mingw site http://www.mingw.org/ wasn't updated for 4 years already, what happened?

Not sure if I should install this https://mingw-w64.org/doku.php or this http://tdm-gcc.tdragon.net/
Last edited by bidik on 22 May 2017, 16:52, edited 2 times in total.
raven
Posts: 66
Joined: 26 May 2016, 09:54

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

Post by raven »

I've been using http://www.msys2.org/ for a couple of years now, mostly because they have a lot pre-built packages and a package manager (pacman).

Their recent bullet lib build is not optimized due to a gcc bug. You'd have to compile bullet yourself, can avoid the bug by excluding the examples.
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik »

wow, shift-ins to paste...

trying to install now, feels like a huge time sink again, hope to get lucky
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik »

How to compile hello world with it now? I'm typing gcc and mingw in, it says nothing found.
User avatar
psi29a
Posts: 5356
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

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

Post by psi29a »

Are you using a cmd shell or the msys2 (bash) shell? The bash shell should have the paths all set for you.
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik »

I'm running this

Image

And I'm typing this

Image
raven
Posts: 66
Joined: 26 May 2016, 09:54

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

Post by raven »

You have to install gcc first

pacman -S mingw-w64-x86_64-gcc

or better

pacman -S mingw-w64-x86_64-toolchain
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik »

thank you, installing now
bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik »

To compile a 32-bit program, I need to separately install a 32-bit mingw? What's the command for that?
raven
Posts: 66
Joined: 26 May 2016, 09:54

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

Post by raven »

mingw-w64-i686-

They have a wiki: https://github.com/msys2/msys2/wiki/Using-packages
Post Reply