Documents/OS X Build
Contents
Building Nut/OS on OS X
Installing Xcode
[[File:../../img/xcodeicon.jpg|Xcode Icon]] Apple's Xcode package contains all the tools we need to build the cross toolchain. Open Terminal and enter
$ gcc --version
If the response is similar to
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) Copyright (C) 2005 Free Software Foundation, Inc.
then GCC is already available and probably there is no need to install it again. However, if the response is
-bash: gcc: command not found
then you need to download Xcode from
developer.apple.com/tools/xcode/
A registration is required, but this is free of charge.
Leave the Terminal window open. We'll need it later on.
[[../../img/xcode_inst00.png|[[File:../../img/xcode_inst00th.png|128x83px|Xcode Installation Step 0]]]] [[../../img/xcode_inst01.png|[[File:../../img/xcode_inst01th.png|128x95px|Xcode Installation Step 1]]]] [[../../img/xcode_inst02.png|[[File:../../img/xcode_inst02th.png|128x95px|Xcode Installation Step 2]]]] [[../../img/xcode_inst03.png|[[File:../../img/xcode_inst03th.png|128x95px|Xcode Installation Step 3]]]] [[../../img/xcode_inst04.png|[[File:../../img/xcode_inst04th.png|128x95px|Xcode Installation Step 4]]]] [[../../img/xcode_inst05.png|[[File:../../img/xcode_inst05th.png|128x95px|Xcode Installation Step 5]]]]
Installing wxWidgets
$ curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.8.7.tar.gz
$ cd wxmac-2.8.7 $ mkdir build-release $ cd build-release $ ../configure --disable-shared --enable-unicode \ --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk \ --with-macosx-version-min=10.4
$ make $ sudo make install
Installing Lua
$ curl -O http://www.lua.org/ftp/lua-5.0.3.tar.gz $ tar -xzf lua-5.0.3.tar.gz
$ cd lua-5.0.3 $ make $ sudo make install
Installing Nut/OS
$ curl -O http://www.lua.org/ftp/lua-5.0.3.tar.gz $ tar -xzf lua-5.0.3.tar.gz
$ wx-config --version