diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-06-29 16:06:26 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-06-29 16:06:26 +0200 |
commit | 3b34580548d5060bae35a0f787e1c80b4a294123 (patch) | |
tree | aa1fdf05dc8e4ac3bb4c9784f4c08b37f0edd15e /INSTALL.md | |
parent | 5a12a0605b06a4971f7005b26f6591de9c69837d (diff) | |
parent | f5f14fe6cef66e807d01b4f2e4be500b9e1019f5 (diff) | |
download | otp-3b34580548d5060bae35a0f787e1c80b4a294123.tar.gz otp-3b34580548d5060bae35a0f787e1c80b4a294123.tar.bz2 otp-3b34580548d5060bae35a0f787e1c80b4a294123.zip |
Merge branch 'egil/install-osx' into maint
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/INSTALL.md b/INSTALL.md index a7bc0a53e4..70d465831d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -693,20 +693,27 @@ Universal binaries and 64bit binaries are mutually exclusive options. Building a fast Erlang VM on Mac OS Lion ---------------------------------------- -Starting with XCode 4.2, Apple no longer includes a "real" `gcc` +Starting with Xcode 4.2, Apple no longer includes a "real" `gcc` compiler (not based on the LLVM). Building with `llvm-gcc` or `clang` will work, but the performance of the Erlang run-time system will not be the best possible. Note that if you have `gcc-4.2` installed and included in `PATH` -(from a previous version of XCode), `configure` will automatically +(from a previous version of Xcode), `configure` will automatically make sure that `gcc-4.2` will be used to compile `beam_emu.c` (the source file most in need of `gcc`). If you don't have `gcc-4.2.` and want to build a run-time system with the best possible performance, do like this: -Install XCode from the AppStore if it is not already installed. +Install Xcode from the AppStore if it is not already installed. + +For Xcode 4.3 you will also need to download "Command Line Tools" +via the Downloads preference pane i Xcode. + +Some tools may still be lacking or out-of-date, we recommend using +[Homebrew](https://github.com/mxcl/homebrew/wiki/installation) or +Macports update those tools. Install MacPorts (<http://www.macports.org/>). Then: @@ -717,7 +724,23 @@ If you want to build the `wx` application, get wxMac-2.8.12 (`wxMac-2.8.12.tar.gz` from <http://sourceforge.net/projects/wxwindows/files/2.8.12/>) and build: - $ arch_flags="-arch i386" ./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --prefix=/usr/local --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --enable-unicode --with-opengl --disable-shared +Export the path for MacOSX10.6.sdk, + + $ export SDK=/Developer/SDKs/MacOSX10.6.sdk + +In Xcode 4.3 the path has changed so use the following instead, + + $ export SDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk + +Then configure and build wx, + + $ arch_flags="-arch i386" ./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --prefix=/usr/local --with-macosx-sdk="$SDK" --with-macosx-version-min=10.6 --enable-unicode --with-opengl --disable-shared + $ make + $ sudo make install + +To link wx properly we will also need to build and install `wxStyledTextCtrl` + + $ cd contrib/src/stc $ make $ sudo make install |