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

This page is about old Mac OS versions, if you want to install OpenAlea on a recent Mac OS X (10.6 and after), please go to Mac OS X installation page.

Manuall Installation on old Mac OS X

FIXME this part should be merge with mac installation page

Introduction

This section provides a step-by-step instructions for installing OpenAlea and Visualea and several dependencies on a Mac OS X 10.5 (Leopard). Other systems have not been tested.

If you do not have access to the SVN repository, see also installation_from_targz

Before you start

Python installation

To install OpenAlea, you must have a working Python version 2.5 OR 2.6. Mac OS X 10.5.x (Leopard) comes with the 2.5.1 Python distribution pre-installed.

OpenAlea releases above 0.7 will be maintained for Python 2.6 only

Follow the Leopard page on the Python wiki to complete your Python installation.

XCode installation

To install developer tools, use the XCodeTools package contains in the installation CD or download the xcode package from http://connect.apple.com/.

You’ll need to register for an Apple Developer Connection account.

Once you’ve registered, login and click Download Software and then Developer Tools. Find the Download link next to Xcode Tools (version) - CD Image and click it!

QT and PyQt installation

We have tried to use MacPort but without success. The goal is to build binary eggs with bin, include and libs. Thus, developer do not have to build all the dependencies.

QT and PyQt on Mac Os X 10.5

QT4

The following instructions describe how to install Qt from the source package:

  • Unpack the tgz by double-click on Finder or in a terminal:
cd ~/Downloads
tar xfv qt-mac-opensource-src-4.x.x.tar
  • Configure the package to not build examples (which take a long time).
cd qt-mac-opensource-src-4.x.x
./configure -no-framework -no-rpath -opensource -nomake examples -nomake demos -release
set MAKEFLAGS=j2
make
sudo make install
-no-framework and -no-rpath flags are used to generate the dynamic libraries (*.dylib)

This will install everything in /usr/local/Trolltech/Qt-4.x.x

In your shell, you have to update your PATH:

export PATH=/usr/local/Trolltech/Qt-4.x.x/bin:$PATH

PyQt4

The installation of PyQt4 is faster.

You have to download and unpack 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

QT and PyQt on Mac Os X 10.6

QT4

The following instructions describe how to install Qt from the source package:

  • Unpack the tgz by double-click on Finder or in a terminal:
cd ~/Downloads
tar xfv qt-mac-opensource-src-4.6.0.tar
  • Configure the package to not build examples (which take a long time).
cd qt-mac-opensource-src-4.6.0
./configure -arch x86_64 -no-rpath -opensource -nomake examples -nomake demos -release
set MAKEFLAGS=j2
make
sudo make install
-arch x86_64 is specified and 64-bit arch will be built with the Cocoa framework.

This will install everything in /usr/local/Trolltech/Qt-4.6.0

In your shell, you have to update your PATH:

export PATH=/usr/local/Trolltech/Qt-4.6.0/bin:$PATH
export DYLD_FRAMEWORK_PATH=/usr/local/Trolltech/Qt-4.6.0/lib:$DYLD_FRAMEWORK_PATH

PyQt4

The installation of PyQt4 is faster.

You have to download and unpack 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

Boost.Python

  • Download Boost
  • Configure, Make and Install
cd /path/to/boost_1_37_0
./configure
make
sudo make install

QHull

cd qhull-2003.1
./configure
make
sudo make install

Gnuplot

Gnuplot requires that aquaterm be installed.

  • Install AquaTerm
  • Install Gnuplot-py
  • Unpack gnuplot-py-1.8.tar.gz by double-click on Finder or in a terminal
cd gnuplot-py-1.8
sudo python setup.py install

Python scientific libraries

numpy
  • Install Numpy 2.5 from the standard location.
  • Install Numpy 2.6 from the standard location.
matplotlib
  • Install the following script matplotlib 2.6 from the standard location.
scipy
PIL
  • Install PIL (Python Image Library)
  • Unpack Imaging-1.1.6.tar.gz by double-click on Finder or in a terminal
cd Imaging-1.1.6
sudo python setup.py install
RPy
  • Download and install R
  • Download the RPy source package.
    • In the rpy package, you have to modify a file:
      1. src/RPy.h: Replace #include <Rdevice.h> with #include <Rembedded.h>
    • Build and install the package
python setup.py build
sudo python setup.py 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 = '/usr/local/Trolltech/Qt-4.4.3'
 
boost_includes = '/usr/local/include/boost-1_37'
boost_libs_suffix = '-xgcc40-mt'
 
qhull_includes = '/usr/local/include'
qhull_lib = '/usr/local/lib'
  • Install scons using the OpenAlea Installer
sudo alea_install scons

Alinea installation

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