mac-osx.txt 2.06 KB
Newer Older
1 2 3
Compiling KiCad on Apple Mac OS X
=================================
 First written: 2010-01-31
4
 by: Jerry Jacobs <xor.gate.engineering[at]gmail[dot]com>
5

6 7
 Modified at: 2014-02-07
 by: Marco Serantoni <marco.serantoni[at]gmail[dot]com>
8 9 10 11 12 13

Snow Leopard
------------

Requirements
  * XCode Tools    (http://developer.apple.com/tools/xcode)
14
  * bzr (bazaar)
15 16
  * CMake          (http://www.cmake.org)

17 18 19
  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.
20

21
Building Kicad with no support for Scripting
22 23
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

24 25 26 27 28
  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
29

30 31 32
      cmake -DKICAD_BUILD_DYNAMIC=ON .
      make

33 34 35 36 37
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
38

39
      cmake -DKICAD_BUILD_DYNAMIC=ON .
40
      make swig
41

42
  After successfully building you can set your KICAD_SCRIPTING* options (for example):
43

44
      cmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_WXPYTHON=ON -DKICAD_SCRIPTING_MODULES=ON .
45
      make
46

47 48
  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.
jerryjacobs's avatar
jerryjacobs committed
49

50 51
Building Kicad for other processors or Universal binaries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jerryjacobs's avatar
jerryjacobs committed
52

53
   I wish remember you should set the processor like
jerryjacobs's avatar
jerryjacobs committed
54

55
       cmake -DCMAKE_OSX_ARCHITECTURES="x86_64"
56

57
   for other platforms 
58

59 60
       cmake -DCMAKE_OSX_ARCHITECTURES="x86_64 -arch i386"
       cmake -DCMAKE_OSX_ARCHITECTURES="x86_64 -arch i386 -arch ppc"
61

62 63
   I know some you should prefer use ; as separator, this will be accomplished soon
   keeping support for both the syntaxes