- make sure you have the libGL, libGL-devel OpenGL libraries and includes installed (usually /usr/include/GL/)
- ..if you can't find the headerfiles..try this
- make sure you have libGLU, libGLU-devel installed
- make sure you have libpng, libpng-devel installed
- make sure you have zlib, zlib-devel installed
- make sure you have SDL, SDL-devel installed
- make sure you have SDL_net installed
- get yac.zip and tksdl.zip
- unzip yac.zip and tksdl.zip so the directory structure looks like this:
[root@wizball tkscript]# ls
tksdl/ tks-source/ yac/
[root@wizball tkscript]#
- now change to the tksdl directory
[root@wizball tkscript]# cd tksdl
[root@wizball tksdl]#
- type
[root@wizball tksdl]# make -f makefile.linux plugin
to compile the tksdl.so library
- create a plugin directory on your system, e.g.
[root@wizball tksdl]# mkdir /usr/local/tks/plugins
- create a module directory on your system, e.g.
[root@wizball tksdl]# mkdir /usr/local/tks/modules
- type
[root@wizball tksdl]# cp tksdl.so /usr/local/tks/plugins/
to install the tksdl plugin
- now you have to set an environment variable so that the tks plugin loader will be able to locate a requested plugin:
[root@wizball tksdl]# export TKS_PLUGIN_PATH=/usr/local/tks/plugins/
(don't forget the last slash!)
- in order to include (reusable) script modules when creating new tks applications you'll need to set another env. var.:
[root@wizball tksdl]# export TKS_MODULE_PATH=/usr/local/tks/modules/
- download an example tkx file, e.g.
[root@wizball tksdl]# curl http://tkscript.de/tkx/bobfield.tkx >bobfield.tkx
- start the example file by typing
[root@wizball tksdl]# tks bobfield
- if something goes wrong you may want to turn on some debug messages
[root@wizball tksdl]# tks -d 85 bobfield
- .
- .
- caveat: on some linux systems the plugin loader is unable to locate the plugin regardless whether the tksdl.so is located in the same directory as the tks.exe or not; in this case you may also want to try
[root@wizball tks-source]# ./tks -pp ./ bobfield
(assuming that you have put the tksdl.so file in the tks-source directory along with the bobfield.tkx file)
- in case you don't want to install or copy anything at all just try:
[root@wizball tks-source]# ./tks -pp ../tksdl/ bobfield