Difference between revisions of "MacPorts Gtk Installation"

m
m (Revise out-of-date information)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
[[Category:Macintosh]]
<h1 class="firstHeading">Installing Gtk on Mac OS X with Macports</h1>
+
==Installing Gtk on Mac OS X with Macports==
  
To use EiffelStudio on Mac OS X there is a prerequisite of installing the GTK library, this is performed by following the instructions in this link.
+
To use EiffelStudio on Mac OS X there is a prerequisite of installing the GTK library, this is performed by following the instructions in this page.
  
 
If you already have X11 and an up to date XCode (from which we need the gcc 4.0 compiler) you can go straight ahead to downloading the MacPorts package installer
 
If you already have X11 and an up to date XCode (from which we need the gcc 4.0 compiler) you can go straight ahead to downloading the MacPorts package installer
  
http://svn.macosforge.org/repository/macports/downloads/DarwinPorts-1.3.1/DarwinPorts-1.3.1-10.4.dmg
+
http://www.macports.org/install.php
  
 
If you don't have X11 or XCode you can follow the instructions from the following link.
 
If you don't have X11 or XCode you can follow the instructions from the following link.
Line 12: Line 12:
 
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
 
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
  
To install MacPorts you double click the DarwinPorts-1.3.1-10.4.dmg and then execute the package contained within, you will be asked for you password in order to install. (I believe this is only the PowerPC installation, if you have an Intel machine this may need to be compiled
+
To install MacPorts you double click the .dmg file you just downloaded and then execute the package contained within. You will be asked for you password in order to install.
from source).
+
  
 
When this is installed you need to open up the Applications/Utilities/Terminal application and execute the following command
 
When this is installed you need to open up the Applications/Utilities/Terminal application and execute the following command
Line 19: Line 18:
 
<pre>sudo port install gtk2</pre>
 
<pre>sudo port install gtk2</pre>
  
This will download, compile and install the gtk2 library and all of its dependencies, this can take a few hours depending on the speed of the target machine.
+
This will download, compile and install the gtk2 library and all of its dependencies, this takes about an hour on a 2.26 GHz Intel Core 2 Duo MacBook Pro running OS X 10.6.4.
  
 
Once this is done we can obtain the EiffelStudio Open Source package from the following page.
 
Once this is done we can obtain the EiffelStudio Open Source package from the following page.
  
http://eiffelsoftware.origo.ethz.ch/index.php/EiffelOnMac
+
http://dev.eiffel.com/EiffelOnMac
 
+
If you are using a PowerPC mac you can need to download the PPC package located here.
+
 
+
http://se.inf.ethz.ch/builds/es/EiffelStudio57-ppc.zip
+
 
+
There is a link to the Intel zip on the EiffelOnMac page above.
+
 
+
Once that is downloaded, you can unzip the file, this will give you an 'EiffelStudio57-ppc Folder' folder, you need to double click on this and copy the EiffelStudio57.app (you will see an icon with EiffelStudio57) located within to the Developer/Applications folder.
+
 
+
One last thing you will need to do is to register the runtime files with Mac OS X.  This is done by loading up the Terminal application (Applications/Utilities/Terminal) and then performing the following.
+
 
+
<pre>cd  /Developer/Applications/EiffelStudio57.app/Contents/Resources/Eiffel57/studio/spec/macosx-ppc/lib
+
ranlib *.a</pre>
+
 
+
Once registered you should then be able to double click EiffelStudio application in Developer/Applications and EiffelStudio should execute.
+

Latest revision as of 20:50, 11 August 2010

Installing Gtk on Mac OS X with Macports

To use EiffelStudio on Mac OS X there is a prerequisite of installing the GTK library, this is performed by following the instructions in this page.

If you already have X11 and an up to date XCode (from which we need the gcc 4.0 compiler) you can go straight ahead to downloading the MacPorts package installer

http://www.macports.org/install.php

If you don't have X11 or XCode you can follow the instructions from the following link.

http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts

To install MacPorts you double click the .dmg file you just downloaded and then execute the package contained within. You will be asked for you password in order to install.

When this is installed you need to open up the Applications/Utilities/Terminal application and execute the following command

sudo port install gtk2

This will download, compile and install the gtk2 library and all of its dependencies, this takes about an hour on a 2.26 GHz Intel Core 2 Duo MacBook Pro running OS X 10.6.4.

Once this is done we can obtain the EiffelStudio Open Source package from the following page.

http://dev.eiffel.com/EiffelOnMac