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 » 17 May 2017, 06:32

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: 62
Joined: 26 May 2016, 09:54

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

Post by raven » 17 May 2017, 09:12

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 » 17 May 2017, 09:38

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 » 17 May 2017, 10:15

How to compile hello world with it now? I'm typing gcc and mingw in, it says nothing found.

User avatar
psi29a
Posts: 3981
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

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

Post by psi29a » 17 May 2017, 10:18

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 » 17 May 2017, 10:30

I'm running this

Image

And I'm typing this

Image

raven
Posts: 62
Joined: 26 May 2016, 09:54

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

Post by raven » 17 May 2017, 10:53

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 » 17 May 2017, 11:00

thank you, installing now

bidik
Posts: 24
Joined: 28 Apr 2017, 12:06

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

Post by bidik » 17 May 2017, 11:40

To compile a 32-bit program, I need to separately install a 32-bit mingw? What's the command for that?

raven
Posts: 62
Joined: 26 May 2016, 09:54

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

Post by raven » 17 May 2017, 12:16

mingw-w64-i686-

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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests