1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
14 <em>Translations of this page are also available in the following languages:
</em> <a href=
"geda-devmacosx.ru.html" class=
"wikilink1" title=
"geda-devmacosx.ru.html">Русский
</a>.
18 See also: Building the pcb package on OS X by Jon Schneider
21 <h2 id=
"gedaonthemac">gEDA On The Mac
</h2>
25 There are a number of options with running gEDA on the mac. You can install via the fink or macports package management or build from the source or some combination of the two. Both fink and macports will install software in a directory off the root or
"sandbox
" (fink /sw and macports /opt) so they don
't co-mingle software with your native mac software. You can read more about the pros and cons of each online.
29 I have both fink and macports package managers installed and have been using macports lately. I added some code to my .bash_profile that lets me choose what package manager I want to use on shell startup by setting my path variable. I
've pasted it below.
33 Personally, I use macports to install dependencies and build and install geda from the source. This makes it easy for me to grab the latest code from the git repository.
35 <pre class=
"code">PS3=
"Which port?:
"
36 echo
"Choose from the list below.
"
37 select NAME in macports fink mac
41 echo
"Setting path to prefer $NAME.
"
43 macports) export PATH=/opt/local/bin:${PATH} PS1=
"opt-\A-[\w]\$
" ;;
44 fink) test -r /sw/bin/init.sh
&& . /sw/bin/init.sh PS1=
"sw-\A-[\w\\$
" ;;
45 *) PS1=
"osx-\A-[\w]\$
" ;;
48 echo
"Path set to
" $PATH
</pre>
52 <h2 id=
"gedaviafink">gEDA via Fink
</h2>
56 You can link to instructions on installing gEDA via fink from the gEDA download page or go directly to http://www.ghz.cc/charles/fink/. Using fink, gEDA can be installed from binaries or compiled from a recent development snapshot, if the fink unstable branch is enabled. (Please see the Fink documentation on how to enable the unstable branch.)
60 Once Fink is installed, gEDA (and other programs) can be installed from the command line or through a graphical tool called fink commander.
61 From the command line, the principal gEDA suite programs can be installed with the command:
63 <pre class=
"code">fink install geda-bundle
</pre>
67 <h2 id=
"gedaviamacports">gEDA via macports
</h2>
71 I am in the process of putting together a macports release of gEDA. You can download macports from http://www.macports.org/. I use macports with the GUI Porticus. You can download that from here http://porticus.alittledrop.com/.
75 Until the macports release is ready, you can use Porticus (or macports command line) to install these dependent projects, then download and compile the source from the gEDA download page.
78 <li class=
"level1"><div class=
"li"> gettext
</div>
80 <li class=
"level1"><div class=
"li"> guile
</div>
82 <li class=
"level1"><div class=
"li"> gtk2
</div>
84 <li class=
"level1"><div class=
"li"> groff
</div>
89 I
've also installed python25 and python_select. python_select let
's you choose what version of python your mac will run as the default python.
93 As described here:
<a href=
"geda-gaf_building_git_version.html#macports" class=
"wikilink1" title=
"geda-gaf_building_git_version.html">Building gEDA/gaf
</a>, to run the software, you need to set an environment variable to allow Guile to load its shared libraries:
95 <pre class=
"code">$ export LTDL_LIBRARY_PATH=/opt/local/lib
</pre>
99 <h2 id=
"buildingtheproject">Building The Project
</h2>
103 Once you have the dependencies installed (either via fink or macports) just follow the instructions in the developer section for building and installing. I had no issues (there was an issue with strnlen function being used in gschem, which isn
't part of the standard gcc libraries, but once that was fixed I was able to build and run with no problems). I have also setup an XCode project to debug gEDA code in. I will post that up to the site as soon as it
's ready.
108 <h2 id=
"workingwithpython">Working With Python
</h2>
112 Currently I am working with myEclipse and the PyDev python plugin. You can download Eclipse http://www.eclipse.org/ or myEclipse http://www.eclipse.org/ which is Eclipse bundled with plugins and currently costs $
31.75 per year for a subscription. You can download PyDev here http://pydev.sourceforge.net/. It seems to have an annoying popup unless you buy a license, but other than that it seems to work well in Eclipse for working with python code.
117 <h2 id=
"currentmacissues">Current Mac Issues
</h2>
120 <li class=
"level1"><div class=
"li"> gEDA Manager does not currently run because it needs pyinotify which is based on Linux kernel infrastructure. If anyone knows a way to get gEDA Manager running on mac that is appreciated. Otherwise I plan on looking at a cross platform way to modify gEDA Manager.
</div>
126 <h2 id=
"gedaviavirtualbox">gEDA via VirtualBox
</h2>
130 An alternative method to run gEDA programs on the Mac is to install them under Linux in an virtualization environment. VirtualBox is a professional-grade x86 virtualization program that is available under the GPL. After installing this program, you can download and install a linux distribution within that environment. This method has the advantage of using precompiled linux-oriented binaries, and installatoin - even accounting for for downloading and installing the guest OS - can be
<em>very fast
</em> compared to compiling and building the gEDA suite in Fink.
134 The gEDA suite programs have been tested and appear to work properly under Ubuntu running within VirtualBox on the Mac. After downloading and installing VirtualBox, download Ubuntu and launch its installer, following the VirtualBox instructions. Once Ubuntu is installed, you can install gEDA following (simplified, standard) procedures for installing gEDA under linux. From the command line,
136 <pre class=
"code">sudo apt-get install geda
</pre>
139 This installs gschem , gnetlist,
& gattrib. Then, to install additional applications:
141 <pre class=
"code">sudo apt-get install geda-utils
142 sudo apt-get install pcb-gtk
143 sudo apt-get install gerbv
144 sudo apt-get install geda-xgsch2pcb
</pre>