I'm having trouble installing both mingw32 and mingw64 on Linux or MacOS. I've tried many different package repositories and multiple versions of Linux. I'm happy to use anything.
Thanks.
On Ubuntu, you can get going in many cases with "apt-get install gcc-mingw32"
If you need to install both the 64-bit and 32-bit mingw compilers, try this:
For 64-bit build systems:
apt-get install libmpfr1ldbl
wget http://ppa.launchpad.net/mingw-packages/ppa/ubuntu/pool/main/w/w64-toolchain/x86-64-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
dpkg -i x86-64-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
For 32-bit build systems:
wget http://ppa.launchpad.net/mingw-packages/ppa/ubuntu/pool/main/w/w64-toolchain/i686-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
dpkg -i i686-w64-mingw32-toolchain_1.0b+201011211643-0w2273g93970b22426p16~karmic1_amd64.deb
Source for this tip: http://ubuntuforums.org/showthread.php?t=1705566
On Fedora, you can install mingw32 using standard yum. To install mingw64, follow the instructions at:
http://www.advancedhpc.com/tower_servers/tower_server_products.html
$ cd /etc/yum.repos.d $ sudo wget http://fedoraproject.org/wiki/MinGW/CrossCompilerFramework#Development_and_testing_repository $ yum update $ yum install mingw64-gcc mingw64-g++ mingw64-zlib
Best bet for cross-compiling seems to be Fedora, which gives you both mingw32 and mingw64:
http://fedoraproject.org/wiki/MinGW/CrossCompilerFramework
sudo yum install mingw32-gcc-c++
I haven't been able to find a 64-bit cross-compiler for Mac.