Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 7470e5ba72ba56f1e2ffc81f92c36e65 > files > 28

geda-docs-1.8.2-7.mga7.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title></title>
  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />
  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>


<h2 class="sectionedit1469"><a name="geda_on_the_mac" id="geda_on_the_mac">gEDA On The Mac</a></h2>
<div class="level2">

<p>
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&#039;t co-mingle software with your native mac software.  You can read more about the pros and cons of each online.
</p>

<p>
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&#039;ve pasted it below.
</p>

<p>
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.
</p>
<pre class="code">PS3=&quot;Which port?:&quot;
echo &quot;Choose from the list below.&quot;
select NAME in macports fink mac
do
	break
done
echo &quot;Setting path to prefer $NAME.&quot;
case $NAME in 
macports) export PATH=/opt/local/bin:${PATH} PS1=&quot;opt-\A-[\w]\$&quot; ;; 
fink) test -r /sw/bin/init.sh &amp;&amp; . /sw/bin/init.sh PS1=&quot;sw-\A-[\w\\$&quot; ;; 
*) PS1=&quot;osx-\A-[\w]\$&quot; ;; 
esac

echo &quot;Path set to &quot; $PATH</pre>

</div>
<!-- EDIT1469 SECTION "gEDA On The Mac" [1-1251] -->
<h2 class="sectionedit1470"><a name="geda_via_fink" id="geda_via_fink">gEDA via Fink</a></h2>
<div class="level2">

<p>
You can link to instructions on installing gEDA via fink from the gEDA <a href="http://www.geda.seul.org/download.html" class="urlextern" title="http://www.geda.seul.org/download.html"  rel="nofollow">download page</a> or go directly to <a href="http://www.ghz.cc/charles/fink/" class="urlextern" title="http://www.ghz.cc/charles/fink/"  rel="nofollow">http://www.ghz.cc/charles/fink/</a>.  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.)  
</p>

<p>
Once Fink is installed, gEDA (and other programs) can be installed from the command line or through a graphical tool called <a href="http://finkcommander.sourceforge.net/" class="urlextern" title="http://finkcommander.sourceforge.net/"  rel="nofollow">fink commander</a>.   
From the command line, the principal gEDA suite programs can be installed with the command:
</p>
<pre class="code">fink install geda-bundle</pre>

</div>
<!-- EDIT1470 SECTION "gEDA via Fink" [1252-1994] -->
<h2 class="sectionedit1471"><a name="geda_via_macports" id="geda_via_macports">gEDA via macports</a></h2>
<div class="level2">

<p>
I am in the process of putting together a macports release of gEDA.  You can download macports from <a href="http://www.macports.org/" class="urlextern" title="http://www.macports.org/"  rel="nofollow">http://www.macports.org/</a>.  I use macports with the <acronym title="Graphical User Interface">GUI</acronym> Porticus.  You can download that from here <a href="http://porticus.alittledrop.com/" class="urlextern" title="http://porticus.alittledrop.com/"  rel="nofollow">http://porticus.alittledrop.com/</a>.
</p>

<p>
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.
</p>
<ul>
<li class="level1"><div class="li"> gettext</div>
</li>
<li class="level1"><div class="li"> guile</div>
</li>
<li class="level1"><div class="li"> gtk2</div>
</li>
<li class="level1"><div class="li"> groff</div>
</li>
</ul>

<p>
I&#039;ve also installed python25 and python_select.  python_select let&#039;s you choose what version of python your mac will run as the default python.
</p>

</div>
<!-- EDIT1471 SECTION "gEDA via macports" [1995-2641] -->
<h2 class="sectionedit1472"><a name="building_the_project" id="building_the_project">Building The Project</a></h2>
<div class="level2">

<p>
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&#039;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&#039;s ready.
</p>

</div>
<!-- EDIT1472 SECTION "Building The Project" [2642-3145] -->
<h2 class="sectionedit1473"><a name="working_with_python" id="working_with_python">Working With Python</a></h2>
<div class="level2">

<p>
Currently I am working with myEclipse and the PyDev python plugin.  You can download Eclipse <a href="http://www.eclipse.org/" class="urlextern" title="http://www.eclipse.org/"  rel="nofollow">http://www.eclipse.org/</a> or myEclipse <a href="http://www.eclipse.org/" class="urlextern" title="http://www.eclipse.org/"  rel="nofollow">http://www.eclipse.org/</a> which is Eclipse bundled with plugins and currently costs $31.75 per year for a subscription.  You can download PyDev here <a href="http://pydev.sourceforge.net/" class="urlextern" title="http://pydev.sourceforge.net/"  rel="nofollow">http://pydev.sourceforge.net/</a>.  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.
</p>

</div>
<!-- EDIT1473 SECTION "Working With Python" [3146-3644] -->
<h2 class="sectionedit1474"><a name="current_mac_issues" id="current_mac_issues">Current Mac Issues</a></h2>
<div class="level2">
<ul>
<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>
</li>
</ul>

</div>
<!-- EDIT1474 SECTION "Current Mac Issues" [3645-3949] -->
<h2 class="sectionedit1475"><a name="geda_via_virtualbox" id="geda_via_virtualbox">gEDA via VirtualBox</a></h2>
<div class="level2">

<p>
An alternative method to run gEDA programs on the Mac is to install them under Linux in an virtualization environment. <a href="http://www.virtualbox.org/" class="urlextern" title="http://www.virtualbox.org/"  rel="nofollow">VirtualBox</a> is a professional-grade x86 virtualization program  that is available under the <acronym title="GNU General Public License">GPL</acronym>. 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 <acronym title="Operating System">OS</acronym> - can be <em>very fast</em> compared to compiling and building the gEDA suite in Fink.
</p>

<p>
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 <a href="http://www.ubuntu.com/getubuntu" class="urlextern" title="http://www.ubuntu.com/getubuntu"  rel="nofollow">Ubuntu</a> 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,
</p>
<pre class="code">sudo apt-get install geda</pre>

<p>
This installs gschem , gnetlist, &amp; gattrib. Then, to install additional applications:
</p>
<pre class="code">sudo apt-get install geda-utils
sudo apt-get install pcb-gtk
sudo apt-get install gerbv
sudo apt-get install geda-xgsch2pcb</pre>

</div>
<!-- EDIT1475 SECTION "gEDA via VirtualBox" [3950-] --></body>
</html>