====== Cross Compilers for Mac OS X ====== For some of my softwares (as [[http://galgas.rts-software.org/|galgas]]), I needed to built a multi platform distribution package, including executable for Windows and i386 Linux. As I mainly work on Macintosh, I have decided to built GCC cross compilers for Windows and i386 Linux. Then I have built Mac OS X packages in order to make installation simplest. I actually need C and C++, but as extra gift, I planed to include in the packages Objective-C, Java, Ada and Fortran compilers. It was an easy work for Win32 from MinGW packages, but I did not succeed in building Fortran 95 and Ada for i386 Linux. **I have not tested the Objective-C, Java, Ada and Fortran compilers for Win32**. **I have not tested the Objective-C and Java compilers for i386 Linux**. Sources packages, makefile and shell script for building tools are provided in the "sources" distributions. ====== Compiling for WIN32 on Mac OS X ====== This is a cross compilation of [[http://www.mingw.org/|MinGW]] on Mac OS X. A package installs all files in the given intallation directory, for example in ''/usr/local/i386-mingw32-3.4.5'' for release 2 for Intel Mac. All tools are located in the ''bin'' sub directory. You can add this path to your ''$PATH'' shell variable, or invoke the tools with their full path name: for example ''/usr/local/i386-mingw32-3.4.5/bin/i386-mingw32-gcc'' for gcc. Note tool names always begin by ''i386'', even for Power PC: for example, ''/usr/local/ppc-mingw32-4.3.0/bin/i386-mingw32-gcc''. You can find some sample code in [[mingwsamplecode|MinGW sample code page]]. ===== MinGW Binaries for Intel ===== ^ Version ^ Corresponds to... ^ Implemented languages ^ Installer to download ^ Installation directory ^ | 3 (february 2009) | MinGW 4.3.0 |C, C++, Objective-C, Objective C++, Java, Fortran |[[http://crossgcc.rts-software.org/download/MinGW 4.3.0 for Mac OS X (Intel).pkg.tar.bz2|MinGW 4.3.0 for Mac OS X (Intel).pkg.tar.bz2 (40.7 MB)]]|''/usr/local/i386-mingw32-4.3.0/''| | 2 (december 2006) | MinGW 3.4.5 |C, C++, Objective-C, Java, Ada, Fortran 77 |[[http://crossgcc.rts-software.org/download/MinGW-3.4.5-for-Mac-OS-X-Intel.tar.bz2|MinGW-3.4.5-for-Mac-OS-X-Intel.tar.bz2 (38.4 MB)]]|''/usr/local/i386-mingw32-3.4.5/''| ===== MinGW Binaries for ppc ===== Binaries for pcc should work on Mac OS X.3 and later. ^ Version ^ Corresponds to... ^ Implemented languages ^ Installer to download ^ Intallation directory ^ | 3 (february 2009) | MinGW 4.3.0 |C, C++, Objective-C, Objective C++, Java, Fortran |[[http://crossgcc.rts-software.org/download/MinGW 4.3.0 for Mac OS X (PPC).pkg.tar.bz2|MinGW 4.3.0 for Mac OS X (PPC).pkg.tar.bz2 (38.3 MB)]]|''/usr/local/ppc-mingw32-4.3.0/''| | 2 (december 2006) | MinGW 3.4.5 |C, C++, Objective-C, Java, Ada, Fortran 77 |[[http://crossgcc.rts-software.org/download/MinGW-3.4.5-for-Mac-OS-X-ppc.tar.bz2|MinGW-3.4.5-for-Mac-OS-X-ppc.tar.bz2 (38.3 MB)]]|''/usr/local/i386-mingw32-3.4.5/''| | 1 (december 2005) | MinGW 3.4.4 |C, C++, Objective-C, Java, Ada, Fortran 77 |[[http://crossgcc.rts-software.org/download/MinGW-3.4.4-for-Mac-OS-X-ppc.tar.bz2|MinGW-3.4.4-for-Mac-OS-X-ppc.tar.bz2 (37 MB)]]|''/usr/local/i386-mingw32-3.4.4/''| Yes, it is an error, ppc binaries for versions 1 and 2 install in an ''i386...'' directory. ===== MinGW Sources Packages ===== Builds ppc binaries on a PowerPC Mac, Intel binaries on an Intel Mac. ^ Version ^ Corresponds to... ^ File ^ Building Instructions ^ | 3 (february 2009) | MinGW 4.3.0 |[[http://crossgcc.rts-software.org/download/MinGW-4.3.0-for-mac-with-src.tar.bz2|MinGW-4.3.0-for-mac-with-src.tar.bz2 (79.8 MB)]]| File ''how-to-build.rtf'' in the source archive | | 2 (december 2006) | MinGW 3.4.5 |[[http://crossgcc.rts-software.org/download/macmingw-3.4.5-20060117-1-src.tar.bz2|macmingw-3.4.5-20060117-1-src.tar.bz2 (50.9 MB)]]| [[mingwformac|Building Instructions Page]] | Builds only ppc binaries, runs only on a Power PC Mac. ^ Version ^ Corresponds to... ^ File ^ Link ^ | 1 (december 2005) | MinGW 3.4.4 |[[http://crossgcc.rts-software.org/download/macmingw-3.4.4-20050522-1-src.tar.bz2|macmingw-3.4.4-20050522-1-src.tar.bz2 (45.4 MB)]]| [[mingwformac|Building Instructions Page]] | ====== Compiling for i386 Linux on MacOS X ====== This is a cross compilation of [[http://gcc.gnu.org/|GCC]] on Mac OS X. A package installs all files in the given installation directory, for example in ''/usr/local/i386-linux-4.1.1'' for release 2 for Intel Mac. All tools are located in the ''bin'' sub directory. You can add this path to your ''$PATH'' shell variable, or invoke the tools with their full path name: for example ''/usr/local/i386-linux-4.1.1/bin/i386-linux-gcc'' for gcc. ===== i386-Linux Binaries for Intel ===== ^ Version ^ Corresponds to... ^ Implemented languages ^ Installer to download ^ Installation directory ^ | 2 (december 2006) | gcc 4.1.1 |C, C++, Objective-C, Java |[[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.1.1-for-Mac-OS-X-Intel.tar.bz2|i386-linux-gcc-4.1.1-for-Mac-OS-X-Intel.tar.bz2 (92.7 MB)]]|''/usr/local/i386-linux-4.1.1/''| ===== i386-Linux Binaries for ppc ===== ^ Version ^ Corresponds to... ^ Implemented languages ^ Installer to download ^ Installation directory ^ | 2 (december 2006) | gcc 4.1.1 |C, C++, Objective-C, Java |[[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.1.1-for-Mac-OS-X-ppc.tar.bz2|i386-linux-gcc-4.1.1-for-Mac-OS-X-ppc.tar.bz2 (92.7 MB)]]|''/usr/local/i386-linux-4.1.1/''| |1 (december 2005) | gcc 4.0.2 |C, C++, Objective-C, Java |[[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.0.2-for-Mac-OS-X.tar.bz2|i386-linux-gcc-4.0.2-for-Mac-OS-X.tar.bz2 (87.4 MB)]]|''/usr/local/i386-linux-4.0.2/''| Yes, it is an error, ppc binaries install in an ''i386...'' directory. ===== i386-Linux Sources Packages ===== Builds ppc binaries on a PowerPC Mac, Intel binaries on an Intel Mac. ^ Version ^ Corresponds to... ^ File ^ Link ^ |2 (december 2006) | gcc 4.1.1 |[[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.1.1-for-mac-wo-src-tarballs.tar.bz2|i386-linux-gcc-4.1.1-for-mac-wo-src-tarballs.tar.bz2 (73.4 KB)]]\\ [[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.1.1-for-mac-with-src-tarballs.tar.bz2|i386-linux-gcc-4.1.1-for-mac-with-src-tarballs.tar.bz2 (106 MB)]]| [[i386linuxgccformac|Building Instructions]]| Builds only ppc binaries. ^ Version ^ Corresponds to... ^ File ^ Link ^ |1 (december 2005) | gcc 4.0.2 |[[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.0.2-for-mac-with-src-tarballs.tar.bz2|i386-linux-gcc-4.0.2-for-mac-with-src-tarballs.tar.bz2 (88.5 MB)]]\\ [[http://crossgcc.rts-software.org/download/i386-linux-gcc-4.0.2-for-mac-wo-src-tarballs.tar.bz2|i386-linux-gcc-4.0.2-for-mac-wo-src-tarballs.tar.bz2 (76.9 kB)]]|[[i386linuxgccformac|Building Instructions]]| ====== Compiling for Renesas H8 on MacOS X ====== [[http://www.kpitgnutools.com/|KPIT Cummins]] provides KPIT GNU Tools for Renesas micros. Here is a cross compilation of GNU H8 compiler suite for Mac OS X, from sources provided by KPIT Cummins. You can find [[kpit-h8|here]] Intel binaries, Power PC binaries, and source packages. ====== License ====== Copyright © 2005, 2006, 2009, 2010 by Pierre Molinaro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ====== Author ====== Pierre Molinaro . Pierre Molinaro is a member of the [[http://www.irccyn.ec-nantes.fr/irccyn/d/fr/equipes/TempsReel|Real-Time Sytems group]] from the [[http://www.irccyn.ec-nantes.fr/|IRCCyN Laboratory]] in Nantes, France. IRCCyN is an Unité Mixte de Recherche of [[http://www.cnrs.fr/|CNRS]]. Other softwares from the Real-Time Systems group can be found [[http://www.rts-software.org/|here]].