Skip to content

Instantly share code, notes, and snippets.

@jimk
Created April 30, 2012 23:51
Show Gist options
  • Save jimk/2563724 to your computer and use it in GitHub Desktop.
Save jimk/2563724 to your computer and use it in GitHub Desktop.
Installing RAFT on OS X Lion
You'll find that getting QT to play nicely on Lion is less than intuitive and painful much less getting all of the Eric IDE pre-requisites working, as well. In a effort to ease your pains, here's the steps that I went through:
btw, these instructions are assuming you have an Intel Mac (I doubt Lion supports PowerPC, though).
Xcode
- What developer hasn't installed Xcode on his Mac, yet?!?
- Xcode has the build tools that everything needs so you'll need this.
Python
- I think the OS X version of Python will work but I used python2.7 from Homebrew
- You can figure this part out for yourself <= I'm too lazy!
Qt 4.8.1 <= as of this writing
- Download the SDK from here: http://qt-project.org/downloads
- I used the Online SDK installer but the Offline installer will probably work too.
- Just install the pkg like you normally would but be patient since this WILL take a while.
SIP
- Don't ask me what this is, just install it because you need it.
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf sip-<some version number>.tar.gz
- cd sip-<some version number>
- export MACOSX_DEPLOYMENT_TARGET=10.7
- python configure.py -n --arch=x86_64 -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
- make
- sudo make install
QScintilla - Qt4
- Don't ask me what this is, just install it because you need it.
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf QScintilla-<some version number>.tar.gz
- cd QScintilla-<some version number>
- cd Qt4
- /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake qscintilla.pro -spec /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/macx-g++
- make
- sudo make install
PyQt
- This is used to bind python to the Qt framework
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf PyQt-mac-<some version number>.tar.gz
- cd PyQt-mac-<some version number>
- export QTDIR=/Users/<username>/QtSDK
- python configure.py -q /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake -a --use-arch=x86_64
- accept the license
- make
- sudo make install
QScintilla - python
- cd QScintilla-<some version number>
- cd Python
- python configure.py
- make
- sudo make install
RAFT (finally)
- Download RAFT here: svn checkout http://raft.googlecode.com/svn/trunk/ raft-read-only
- cd raft-read-only
- sudo python setup.py py2app <= I'm not sure if I had to install p2app before this
- and finally:
- open dist
- double-click on RAFT.app <= hooray!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment