-
Notifications
You must be signed in to change notification settings - Fork 841
1.1 Mac notes
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.
-
Download and install Xcode, if you don't have it. Next, open Xcode.
-
Go through the preparations mentioned in the general build instructions
-
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
-
Open the
Fritzing.xcodeproj
file. -
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
-
You've already installed a current version of Xcode.
-
Download the Qt framework source for mac and extract it somewhere.
-
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.
-
Now type
sudo make install
. If something screws up, typemake confclean
and go back to./configure
. This will run for at least a few hours. -
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
COPYRIGHT FRITZING.ORG ALL RIGHTS RESERVED