Difference between revisions of "EiffelOnMac"
(→Hints) |
(→Requirements) |
||
Line 34: | Line 34: | ||
* At least Mac OS 10.3 I guess | * At least Mac OS 10.3 I guess | ||
* Apple's X11 (http://www.apple.com/downloads/macosx/apple/x11formacosx.html) | * Apple's X11 (http://www.apple.com/downloads/macosx/apple/x11formacosx.html) | ||
− | Note: For Mac OS 10.4 users, X11 is on the install | + | Note: For Mac OS 10.4 users, X11 is on the install disc (in System/Installation/Packages/X11User.pkg) |
* Xcode (http://developer.apple.com/tools/) | * Xcode (http://developer.apple.com/tools/) | ||
* MacPorts (http://www.macports.org) previously known as [http://darwinports.opendarwin.org/ Darwin Ports] | * MacPorts (http://www.macports.org) previously known as [http://darwinports.opendarwin.org/ Darwin Ports] |
Revision as of 04:28, 31 October 2006
Contents
Eiffel Studio binaries for Mac OS X
There are currently three separate distributions of Eiffel Studio for the PPC and the Intel platform.
- MacOS X - PPC (19.10.2006 - Revision 64380) : Eiffel57_gpl_64380-macosx-ppc.tar.7z
- MacOS X - Intel (21.08.2006 - Revision 62801) :
- App Package : EiffelStudio57.app.zip
- Note that you have to manually add /opt/local/lib to your DYLD_FALLBACK_LIBRARY_PATH in your .bash_profile and .bashrc:
export DYLD_FALLBACK_LIBRARY_PATH=$HOME/lib:/usr/local/lib:/lib:/usr/lib:/opt/local/lib
- MacOS X - Intel (25.10.2006 - Revision 64493) :
- Compiled Archive with darwinports (the archive is compiled using darwin ports - so you SHOULD have installed the latest version of darwin ports): Eiffel57_gpl_macosx-intel-DarwinPorts_64493.tar.gz
- Compiled Archive with macports (the archive is compiled using mac ports - so you SHOULD have installed the latest version of mac ports): Eiffel57_gpl_macosx-intel-MacPorts_64493.tar.gz
Compiling Eiffel Studio using the Porter Package
Since the binaries above are often out of date, you might want to build the latest release yourself.
- Make sure that you have all requirements that are listed in the readme section and that you have set the ISE_PLATFORM environment variable to macosx-ppc or macosx-x86 depending on your platform.
- Download the latest Porter Package from here (PorterPackage_57_XXXXX.tar)
- Extract the PorterPackage, double-clicking should work
- Open a Terminal window and cd into the PorterPackage directory
- Compile the Porter Package:
./compile_exes $ISE_PLATFORM
This will compile the complete EiffelStudio Package. This takes 1-2 hours depending on your machine. - IMPORTANT : The installation now resides in PorterPackage/Eiffel57. In order to make it work you have to set execution permissions on the ec executable.
chmod a+x Eiffel57/studio/spec/$ISE_PLATFORM/bin/ec
- Now you can move the Eiffel57 directory to any place you want. Just make sure to set the ISE_EIFFEL evironment variable accordingly.
- If you want the gobo tools you can compile them using this script, which will place them in the correct directory and clean up: gobo-script.sh
Readme
NOTE: Since the C code generated by Eiffel Studio might not work properly if compiled with gcc 4, you might want to switch to GCC 3 by doing a "sudo gcc_select 3.3". However I've never encountered this problem with GCC4.
Requirements
- At least Mac OS 10.3 I guess
- Apple's X11 (http://www.apple.com/downloads/macosx/apple/x11formacosx.html)
Note: For Mac OS 10.4 users, X11 is on the install disc (in System/Installation/Packages/X11User.pkg)
- Xcode (http://developer.apple.com/tools/)
- MacPorts (http://www.macports.org) previously known as Darwin Ports
- GTK2 from MacPorts: Do a "sudo port install gtk2" , this will install gtk2 and all required dependencies
Installation
Extract the Eiffel57 directory from the tar.7z or the tgz file anywhere you like, and set up your environment accordingly.
Environment
Eiffel Studio needs several environment variables in order to work properly. I suggest you put them into your .bashrc and .profile file in your home directory. (on my system .bashrc is a symlink to .profile)
You need to define the following variables:
export ISE_PLATFORM=macosx-ppc # macosx-x86 on intel export ISE_EIFFEL=<PATH TO YOUR Eiffel57 directory e.g. /Developer/Applications/Eiffel57> export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin:$GOBO/bin # Optional export GOBO=$ISE_EIFFEL/library/gobo # Only needed if you want to use gobo export EIFFEL_SRC=<PATH TO YOUR EIFFEL SVN CHECKOUT, only needed if you want to compile ES yourself> export ISE_LIBRARY=$ISE_EIFFEL # If this is not defined it defaults to ISE_EIFFEL
Running Eiffel Studio
Enter "estudio" in a X-Term window. Make sure that your macports installation is the first item in your PATH environment variable.
Known issues
Hints
- Use Helvetica 12 as Editor font
- Pick and Drop works with Apple-key + mouse click
- To set up the correct (default) browsers use "open" as your command-line browser in Tools>Preferences...