Skip to content

1.1 Mac notes

Phil Duby edited this page Mar 15, 2020 · 4 revisions

Here are some notes for building Fritzing with Xcode and Qt under Mac OS X. Note that we recommend to use Qt Creator instead, as it is much easier to set up.

Using Xcode

  1. Download and install Xcode, if you don't have it. Next, open Xcode.

  2. Go through the preparations mentioned in the general build instructions

  3. 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-app

    qmake -spec macx-xcode

  4. Open the Fritzing.xcodeproj file.

  5. 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 a current version of Xcode.

  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 -no-mmx -no-3dnow -no-sse -no-sse2

If you have multiple mac SDKs installed, Dirk suggests adding the -sdk option, for example -sdk /Developer/SDKs/MacOSX10.8.sdk/

The configure process can take 30 minutes or more.

  1. Now type sudo make install. If something screws up, type make confclean and go back to ./configure. This will run for at least a few hours.

  2. 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/Qt/bin:$PATH
export PATH