2010-01-31 19:49:53 +00:00
|
|
|
Compiling KiCad on Apple Mac OS X
|
|
|
|
=================================
|
|
|
|
First written: 2010-01-31
|
2014-02-07 18:53:54 +00:00
|
|
|
by: Jerry Jacobs <xor.gate.engineering[at]gmail[dot]com>
|
2010-01-31 19:49:53 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
Modified at: 2014-02-07
|
|
|
|
by: Marco Serantoni <marco.serantoni[at]gmail[dot]com>
|
2010-01-31 19:49:53 +00:00
|
|
|
|
|
|
|
Snow Leopard
|
|
|
|
------------
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
* XCode Tools (http://developer.apple.com/tools/xcode)
|
2013-06-05 12:03:16 +00:00
|
|
|
* bzr (bazaar)
|
2010-01-31 19:49:53 +00:00
|
|
|
* CMake (http://www.cmake.org)
|
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
The build of Kicad for OSX is now easier than before.
|
|
|
|
The building system will download and compile the needed libraries for you
|
|
|
|
patching them accordly to the needs.
|
2010-01-31 19:49:53 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
Building Kicad with no support for Scripting
|
2010-02-12 23:12:00 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
The building needs to know if you want a static binary or a dynamic one
|
|
|
|
Just set ONE of those two options KICAD_BUILD_STATIC or KICAD_BUILD_DYNAMIC
|
|
|
|
|
|
|
|
If you set KICAD_BUILD_DYNAMIC the building system will build all and include
|
|
|
|
the needed libraries for each executable in its bundle
|
2010-02-12 23:12:00 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
Building Kicad with support for Scripting
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Due some problems with some dependencies the build of this kind of binary is a bit
|
|
|
|
more complex, you should initially set KICAD_BUILD_DYNAMIC
|
|
|
|
then issue for example
|
2010-01-31 19:49:53 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
cmake -DKICAD_BUILD_DYNAMIC=ON
|
|
|
|
make lib-wxpython
|
2010-02-12 23:12:00 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
After successfully building you can set your KICAD_SCRIPTING* options (for example):
|
2010-02-12 23:12:00 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
cmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_WXPYTHON=ON
|
|
|
|
make
|
2010-02-12 23:12:00 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
The system will build all accordling your choices and package all in the bundle
|
|
|
|
I know bundles will be huge, but those will be autosufficient.
|
2010-02-14 14:59:43 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
Building Kicad for other processors or Universal binaries
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2010-02-14 14:59:43 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
I wish remember you should set the processor like
|
2010-02-14 14:59:43 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64"
|
2010-05-09 02:04:44 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
for other platforms
|
2010-05-09 02:04:44 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64 -arch i386"
|
|
|
|
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64 -arch i386 -arch ppc"
|
2010-05-09 02:04:44 +00:00
|
|
|
|
2014-02-07 18:53:54 +00:00
|
|
|
I know some you should prefer use ; as separator, this will be accomplished soon
|
|
|
|
keeping support for both the syntaxes
|