Crystal Space 2.0.0: 4.18.4.1 Configuration

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

#### 4.18.4.1 Configuration

Once Crystal Space is built and optionally installed, you can use the Python bindings.

If you installed, you should be ready to go. Because of this, it is recommended to at least install the bindings, so you dont have to mess with the pythonpath so much, by doing:

`jam install_bindings`

If you dont want to install you need to make sure that Python can locate the appropriate Crystal Space resources.

1. Tell Python where to find `‘cspace’` package (it will be a directory with many .py and shared library files) by setting your `‘PYTHONPATH’` environment variable to mention the directory where `‘cspace’` package resides.

   After successfully building crystalspace, the python `‘cspace’` package it will be under CS/out/<buildsystem>/<buildmode>/bindings/python/. For example in linux 386, optimize build, it will be at CS/out/linuxx86/optimize/bindings/python/. Where CS means the top-level build directory (this will be the `‘CS’` directory if you configured and built in the `‘CS’` directory).

   Note it is recommended to at least install the bindings, so you dont have to mess with pythonpath so much, by doing:

   `jam install_bindings`

   Note, if building with msvc, the files are elsewhere.

2. If necessary, set your `‘CRYSTAL’` environment variable to allow Crystal Space to locate its plugin modules and other resources.

This document was generated using texi2html 1.76.