Home | Download/Install | Documentation | Packages | Screenshots | News | Forum/Mailing-lists | Contact | GForge

Installation on a Mac OS X Snow Leopard

Introduction

This section provides a step-by-step instructions for installing OpenAlea and Visualea and several dependencies on a Mac OS X 10.6 (Snow Leopard). The installation depends on two key elements: MacPorts and EPD (for details look below). Macports provides a unified framework to install 3rd party software and libraries, whereas EPD provides python distribution together with many preinstalled modules.

Helper software

XCode installation

To install developer tools, use the XCodeTools package contains in the Snow Leopard installation CD.

Python installation

It is recommended to use EPD python distribution to facilitate the installation of python scientific libraries (e.g. scipy, numpy, pil, vtk, etc.). Please download the package provided for Mac OS X and follow the instructions on EPD webpage.

MacPorts

MacPorts is a standard Mac OS X tool to facilitate the process of installation of 3rd party programs and libraries. Using MacPorts for Openalea installation is not required, but strongly recommended. Please follow the instructions on MacPorts webpage to correctly install and setup MacPort installation.

Using MacPorts facilitates the process of installation of Openalea dependancies. Please be patient during the process, since packages have to be compiled by MacPorts.

Openalea dependencies

Boost.Python

Issue the following command:

sudo port install boost

QHull

Issue the following command:

sudo port install qhull

QT4

Issue the following command (please note that if no precompiled version is used this takes 3 hours on MacBook Pro 2.4/4GB to compile..):

sudo port install qt4-mac

PyQt4

The installation of PyQt4 is faster. You have to download SIP, QScintilla and PyQt

  • Build and Install QScintilla2 for Qt4
cd QScintilla
cd Qt4 
qmake qscintilla.pro -spec macx-g++
make
sudo make install

We will install the Python bindings after the installation of PyQt4.

* Build and Install SIP.

cd sip-4.x.x
python configure.py
make
sudo make install

* Build and Install PyQt4.

cd PyQt-mac-gpl-4.x.x
python configure.py --confirm-license
make 
sudo make install
  • Build Python wrapper for QScintilla.
cd QScintilla
cd Python
python configure.py
make
sudo make install

Environment variables

Create profile files to update environment variables.

cd
echo "source ~/.bashrc">> .bash_profile
echo "export PATH=/usr/local/Trolltech/Qt-4.4.3/bin:$PATH" >> .bashrc
echo "export PYTHONPATH=/usr/lib/python2.5/site-packages:$PYTHONPATH" >> .bashrc

OpenAlea installation

VPlants installation

  • Download VPlants sources from gforge or checkout from subversion.
  • Create a file options.py in the directory.
QTDIR = '/local/opt/usr/local/Trolltech/Qt-4.4.3'
 
boost_includes = '/local/opt/usr/local/include/boost-1_37'
boost_libs_suffix = '-xgcc40-mt'
 
qhull_includes = '/local/opt/usr/local/include'
qhull_lib = '/local/opt/usr/local/lib'

Install using binary eggs

Click to display ⇲

Click to hide ⇱

Click to hide ⇱

Dependencies of Openalea for MacOsX are distributed as eggs.

installing all dependencies

Install Setuptools

First very important step:

easy_install -f http://openalea.gforge.inria.fr/pi openalea.deploy

Install runtime-deps:

alea_install qt4
alea_install numpy
alea_install scipy
alea_install matplotlib
alea_install gnuplot
alea_install pyqglviewer
alea_install pyopengl
alea_install boostpython

Install compilation-deps:

alea_install scons
alea_install qt4-dev
alea_install bisonflex
alea_install qhull

If you're interested in building the dependencies, read MacOsX

 
documentation/user/installation_mac_snow_leopard.txt · Last modified: 2014/02/03 10:59 by user   Back to top
INRIA   INRA     CIRAD     AGROPOLIS IBC
INRIA GForge RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki