User:SNMoore
From Openmoko
Contents |
Mac OS X Recipe 1: Install MacPorts
Install MacPorts
See http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
Install X11 before Xcode Tools; that way the X11 SDK will be automatically selected when installing Xcode Tools
Install all the GCC variants when installing Xcode Tools
- Customize > Cross Development > all
Verify shell environment
Finder > Applications > Utilities > Terminal.app
$ cat ~/.profile
# Your previous .profile (if any) is saved as .profile.mpsaved
# Setting the path for MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
Verify gcc & make
Finder > Applications > Utilities > Terminal.app
$ gcc_select --list
Available compiler versions:
3.3 3.3-fast 4.0
$ which gcc make
/usr/bin/gcc
/usr/bin/make
$ gcc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ make --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Update MacPorts
Finder > Applications > Utilities > Terminal.app
$ sudo port selfupdate
MacPorts base version 1.5 installed
Downloaded MacPorts base version 1.5
The MacPorts installation is not outdated and so was not updated
selfupdate done!
