Download Development environment

yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
This is an old revision of the document!
Table of Contents
Development environment
General requirements
Linux specific requirements
Windows specific requirements
How to develop a python package without installing it ?
How to compile QT4 on Windows
Development environment
This document presents the software requirements to develop OpenAlea packages. The needed
softwares/libraries are :
General requirements
Subversion (svn)
Python >= 2.4
For C++ development
Scons > = 0.96.1 (0.96.93 is better)
Boost.Python library. (Binary for Windows are available here
For documentation generation
For GUI creation
QT 4.2
PyQt >= 4.2 (QT 4.2 compatible)
QScintilla 2
Linux specific requirements
Install GCC and lib C++
Use distribution installation tools to get the different packages (urpmi, yum, apt-get)
Windows specific requirements
Mingw or visual C++ 8.
Boost binary for MinGW and MSVC are distributed on the OpenAlea website : boost.python
Explorer integrated SVN client : SVN Tortoise
Adapt your PATH variable in order to access directly to Python and SCons from the command line (scons is
usually installed in the Python directory eg C:\Python24). See how to change environment variable
If you use the MinGW compiler, add MinGW tools (usually C:\MinGW\bin) to your PATH. Thus, g++ and
others will be found by scons.
How to develop a python package without installing it ?
In normal installation OpenAlea python packages are installed in the python site-packages directory and
particulary in the openalea namespace.
During development, to avoid to reinstall every time the packages, you can simulate the openalea
namespace by having a local installation in your home directory).
Do a checkout of the openalea subversion (svn). This will create an openalea directory.
Add the base path to your PYTHONPATH environment variable (without openalea). ex : if you have created
/home/user/openalea, add to your PYTHONPATH /home/user.
On Linux
Add the following line to your .bashrc, if the openalea directory is in your home directory.
On Windows
To set the PYTHONPATH variable go to Control Panel → System→ Advanced and click the
Environment Variables button. In the System Variables panel that appears, click New and enter PYTHONPATH
in the Variable Name field. In the Variable Value field enter the string corresponding to the path you put your
openalea directory.
How to compile QT4 on Windows
Download lastest QT 4.2
Install QT 4.2 with MinGW (in c:\MinGW)
Download SIP And PyQt4 and unzip
In a console :
> c:\python24\python -p win32-g++
> c:\MinGW\bin\mingw32-make
> c:\MinGW\bin\mingw32-make install
> c:\Qt.2.2\bin\qtvars.bat
> c:\python24\python
> c:\MinGW\bin\mingw32-make
Add To PATH env c:\Qt\4.2.2\bin