Introduction
This is the GTK-server. The GTK-server is a small tool to enable GUI access for shell scripts and interpreted programming languages.
It offers a stream-oriented interface which uses the S-expression syntax. Please consult the manpages and demonstration programs for details.
Force compilation with GTK
If you have trouble detecting GTK2 with './configure', please try to run the './configure'-script with the following option:
./configure --with-gtk2
Similarly, compilation with GTK1 can be forced as well:
./configure --with-gtk1
Shared Object, S-Lang, ScriptBasic
To compile the GTK-server as a shared object, run the configure script as follows:
./configure --enable-library
To compile the GTK-server as a module for S-Lang, install S-Lang first and then run the configure script as follows:
./configure --enable-slang
To compile the GTK-server as a module for ScriptBasic, copy the SciptBasic sourcedirectory into the "scriptbasic" subdirectory of your GTK-server installation. Then run:
./configure --enable-scriptbasic
GLADE support
The GTK-server will try to detect support for Glade XML files automatically. Disabling Glade support can be done as follows:
./configure --without-glade
This option can be used in combination with any of the options mentioned above.
Foreign Function Interface
Starting from GTK-server 2.0, a Foreign Function interface is required. Two interfaces are supported (but you only need one of these for the GTK-server):
- Foreign Function Interface library (FFI)
The FFI library has been ported to many platforms. It is part of GCC since version 3.x and should be available in most modern Linux distributions. More info about FFI can be found here:
http://sources.redhat.com/libffi/
A working snapshot of this library can be obtained from www.gtk-server.org in the section 'Download'.
Precompiled FFI libraries for OpenBSD and MinGW can be found at www.gtk-server.org.
2) Foreign Function Call library (FFCALL)
The FFCALL library also has been ported to many platforms. The canonical website for FFCALL is:
http://www.haible.de/bruno/packages-ffcall.html
The latest package can also be obtained from www.gtk-server.org in the section 'Download'.
First install FFI or FFCALL, after which compilation of the GTK-server should be successfull.
Other backend
If you do not have GTK on your system, or you think the installbase for GTK is too big, it is possible to use the GTK-server with XForms instead (only possible with Linux/Unix/BSD).
To compile with XForms, run:
./configure --with-xforms
All GTK and Glade support will be disabled.
The latest version of the XForms library can be obtained from:
http://savannah.nongnu.org/projects/xforms/
Recommended configure flags for your platform
./configure --prefix=/usr --sysconfdir=/etc
This will put the GTK-server binary into '/usr/bin', the GTK-server library into '/usr/lib' and the default configfile into '/etc' .
Please combine with any of the other flags mentioned above, if needed.
GPL License
The GTK-server is released under the GPL license. Please read GPL.txt to find the exact license terms.
Visit the GTK-server site for more information:
Greetings
Peter van Eerten
