Photonics Research Group Home
Ghent University
 IMEC
intern

 

Contents: Table of Contents   Back: short building instructions Up: Install & Build Forward: Files   Index: Index

1.2 building instructions

  • Have python installed on your pc (www.python.org)

    You can either have the original python or the active-state version. The later has a good editor window to write python-scripts. (for windows, linux users will use xemacs or...?)

  • Get the boost_python-library (www.boost.org)

    Boost.python is a c++ library which enables seamless interoperability between c++ and the python programming language. Don't install the whole boost_library! Boost.python does the job. install instructions are on the boost site, see install -> python.

  • 'SCons' should be installed. (www.scons.org)

    Scons is a python program that acts like the classic '@code(Make)' utility. It constructs projects. Rodis has a Sconstruct and a SConscript file. Sconscript holds the name of all the files which need to be compiled. Sconscript passes the compiler variables to scons. Those variables need to be adapted in the machine_cfg.py file.

  • Have the right util/cmatrix_inv.cxx

    there is one for windows and one for unix. Because of awefull hacking. Hope this will change once, but is not prior at the moment.

  • Change the machine_cfg.py script (addapt it to your machine)

    You should change the compiler commands, flags and adapt the directories where the include files and the libraries are.

  • python setup.py does the building and the installation

    If you type 'scons', the library will be made. e.g rodis/_rodis.so. If this one is in the PYTHONPATH, you will be able to import this code in python '>>> import _rodis'

    The 'scons' -command is incorporated in the setup.py script. This script will do more than building the .so or .dll. It will install the top-layer-scripts too (rodis_ui.py, rodis_version.py, __init__) and set the pythonpath! That's all done by the 'python setup.py' command.

    To make the windows self-installer, I used python setup.py bdist_wininst --bitmap="rodis.1.2.bmp" --target-version="2.2". This command will make a new directory 'dist' and put one exe-file in it. This file includes some libraries and documentation too. (e.g the boost library).


Contents: Table of Contents   Back: short building instructions Up: Install & Build Forward: Files   Index: Index

This document was generated by Lieven Vanholme on June, 26 2003 using texi2html.