Download Development environment

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

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

Document related concepts
no text concepts found
Transcript
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
Base
Subversion (svn)
Python >= 2.4
OpenAlea.Config
OpenAlea.DistX
For C++ development
Scons > = 0.96.1 (0.96.93 is better)
Boost.Python library. (Binary for Windows are available here
OpenAlea.SconsX
For documentation generation
Epydoc
Docutils
Doxygen
For GUI creation
1/3
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.
export PYTHONPATH=$PYTHONPATH:~/
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
2/3
Download lastest QT 4.2
http://www.trolltech.com/developer/downloads/qt/windows
Install QT 4.2 with MinGW (in c:\MinGW)
Download SIP And PyQt4 and unzip
http://www.riverbankcomputing.co.uk/sip/download.php
http://www.riverbankcomputing.co.uk/pyqt/download.php
SIP
In a console :
> c:\python24\python configure.py -p win32-g++
> c:\MinGW\bin\mingw32-make
> c:\MinGW\bin\mingw32-make install
PyQt4:
> c:\Qt.2.2\bin\qtvars.bat
> c:\python24\python configure.py
> c:\MinGW\bin\mingw32-make
Add To PATH env c:\Qt\4.2.2\bin
3/3