Debian Codegraph @

DevIL/bindings/README.bindings

raw
1
2 ** BINDING MANUAL **
3
4
5 DevIL library can be binded to many other languages then C using the swig binding interface builder.
6 In the source distribution in the include/IL directory there are 2 script (build-python and build-lua) used to assist the developer on the building of the bindings for these 2 languages.
7 The swig interface file is include/IL/DevIL.i
8 The script have 2 common varibles IL_INCLUDE_PATH and IL_LIB_PATH that must be modified to reflect your installation.
9
10
11 *** build-python
12
13 The build-python script builds a python module. To do so it needs that the PYTHON_INCLUDE_PATH and PYTHON_LIB_PATH variables to be set correctly. Remember to se the LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on OSX) to reflect the location of the library when using the module and the library in not in the default search path.
14
15
16 *** build-lua
17
18 The lua build scripts compile a complete lua interpreter with the DevIL commands embedded in it.
19 It uses the luadevil.c source code which is a copy of lua.c interpreter source code (found in the source distribution of Lua) with 2 little modification (just to print that it has embedded python and to import the code).
20 This script needs that the LUA_INCLUDE_PATH and the LUA_LIB_PATH to be set correctly.
21 The script can be configured to build the module for OS X (which requires some changes to be done)
22
23
24 Other bindings are supported using the swig utility!
25
26 Dario Meloni
27 11/02/2007