| 1 | # -*- Mode:Outline -*- |
|---|
| 2 | |
|---|
| 3 | ########################################################################## |
|---|
| 4 | # # |
|---|
| 5 | # This file is part of AVANGO. # |
|---|
| 6 | # # |
|---|
| 7 | # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # |
|---|
| 8 | # angewandten Forschung (FhG), Munich, Germany. # |
|---|
| 9 | # # |
|---|
| 10 | # AVANGO is free software: you can redistribute it and/or modify # |
|---|
| 11 | # it under the terms of the GNU Lesser General Public License as # |
|---|
| 12 | # published by the Free Software Foundation, version 3. # |
|---|
| 13 | # # |
|---|
| 14 | # AVANGO is distributed in the hope that it will be useful, # |
|---|
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
|---|
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
|---|
| 17 | # GNU General Public License for more details. # |
|---|
| 18 | # # |
|---|
| 19 | # You should have received a copy of the GNU Lesser General Public # |
|---|
| 20 | # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # |
|---|
| 21 | # # |
|---|
| 22 | ########################################################################## |
|---|
| 23 | |
|---|
| 24 | AVANGO uses SCons (www.scons.org) as build system. Detailed information |
|---|
| 25 | about the build process of AVANGO for different platforms can be found under: |
|---|
| 26 | http://www.avango.org/wiki/Installation |
|---|
| 27 | |
|---|
| 28 | Here are some basic infos how to build AVANGO under Linux. |
|---|
| 29 | Use: |
|---|
| 30 | |
|---|
| 31 | scons --help |
|---|
| 32 | |
|---|
| 33 | to see all configurations options. These options can also be set in a file |
|---|
| 34 | called 'localdefs.py' in the top-level directory. Note that this is a python |
|---|
| 35 | script with full support for all advanced features of python. |
|---|
| 36 | Here is a sample localdefs.py file: |
|---|
| 37 | -------------------------------------------------------------------- |
|---|
| 38 | #adjust these according to your system |
|---|
| 39 | avango_src_dir ='/home/YOUR_USER/apps/avango' |
|---|
| 40 | avango_build_dir ='/home/YOUR_USER/apps/avango_build' |
|---|
| 41 | avango_install_dir ='/home/YOUR_USER/apps/avango_install' |
|---|
| 42 | osg_install_dir ='/home/YOUR_USER/apps/OpenSceneGraph-2.9.5_install' |
|---|
| 43 | |
|---|
| 44 | #This is the directory, where AVANGO will put its object files during compilation |
|---|
| 45 | BUILD=avango_build_dir |
|---|
| 46 | #This is the installation directory of AVANGO |
|---|
| 47 | PREFIX=avango_install_dir |
|---|
| 48 | |
|---|
| 49 | PKG_CONFIG_PATH = avango_install_dir + '/lib/pkgconfig' |
|---|
| 50 | INCLUDE_PATH = osg_install_dir+'/include' |
|---|
| 51 | LIBRARY_PATH = osg_install_dir+'/lib' |
|---|
| 52 | |
|---|
| 53 | #Build in debug mode |
|---|
| 54 | DEBUG=True |
|---|
| 55 | #Build with OpenSceneGraph support |
|---|
| 56 | OPENSCENEGRAPH=True |
|---|
| 57 | #Set the log level |
|---|
| 58 | LOG_LEVEL="WARN" |
|---|
| 59 | -------------------------------------------------------------------- |
|---|
| 60 | Note, that this file assumes that python and boost are in the system paths. If |
|---|
| 61 | this is not the case, you also have to add them to the INCLUDE_PATH respectively |
|---|
| 62 | LIBRARY_PATH variables in your localdefs.py. |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | By default the SCons build uses the 'all' build target which will recursively |
|---|
| 66 | build all modules with respect to your 'localdefs.py' environment. For each |
|---|
| 67 | AVANGO module different build targets exist. For example to just build the |
|---|
| 68 | 'avango-core' module use: |
|---|
| 69 | |
|---|
| 70 | scons core |
|---|
| 71 | |
|---|
| 72 | To execute the unit tests for 'avango-core' use: |
|---|
| 73 | |
|---|
| 74 | scons check-core |
|---|
| 75 | |
|---|
| 76 | And finally to install the module use: |
|---|
| 77 | |
|---|
| 78 | scons install-core |
|---|
| 79 | |
|---|
| 80 | Replace 'core' with any other module name (including 'all' for all configured |
|---|
| 81 | modules) for other build targets. |
|---|
| 82 | |
|---|
| 83 | Further information about the build system can be found in the python (source) |
|---|
| 84 | documentation of avango-build found here: |
|---|
| 85 | |
|---|
| 86 | avango-build/src/avango/build/__init__.py |
|---|