Preparations

In addition to the general build instructions, you need to take care of these steps:

  • Install the boost library:
  • Specify your platform:
    • Open the file phoenix.pro
    • Look for the line CONFIG += x86_64 x86 ppc and delete the platforms you don't need (probably ppc and one of the x86 platforms)

Using XCode

  1. It's much easier to use QtCreator!
  2. Download and install XCode if you don't have it. Next, open Xcode.
  3. Go through the preparations mentioned above
  4. Use qmake, a software tool which is in the QT bin folder: navigate to your Fritzing code folder and do something like:
          cd /Users/you/Documents/Fritzing/phoenix qmake -spec macx-xcode
  5. Open the Fritzing.xcodeproj file.
  6. Click the Build and go button or choose it from the build menu item.

Notes:
You will have to run qmake when you update your code from the SVN (if the project files--.pro or .pri--have changed).  You can do this from terminal.
If you're doing a clean build from xcode, you'll need to manually delete the fritzing file qrc_phoenixresources.cpp

If you need to: Building Qt From Source

  1. You've already installed xcode 3.0 or later
  2. Download the Qt framework source for mac and extract it somewhere.
  3. open up a terminal window, cd to the qt folder and type something like:
    ./configure  -universal -debug-and-release -platform macx-g++ -no-qt3support
    since 4.5.0, also including options: -no-mmx -no-3dnow -no-sse -no-sse2
  4. if you have multiple mac SDKs installed, Dirk suggests adding the -sdk option, for example:
    ./configure  -universal -debug-and-release -platform macx-g++  -sdk /Developer/SDKs/MacOSX10.5.sdk/ 
  5. the configure process can take 30 minutes or more
  6. now type "sudo make install
    if something screws up, type "make confclean" and go back to ./configure
  7. this will run for at least a few hours
  8. set the path to Qt.  If you're using a bash shell, create a ~/.bash_profile file containing something like the following:
    PATH-/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
    export PATH