In order to install xbGTK you first have to compile the source code.
Therefore you have to meet the following requirements:
|Harbour or xHarbour||The xBase compiler of your choice.|
|GCC 3.0 or higher||On Windows you should probably get the MSYS/mingw32 package or the Cygwin toolchain.|
GTK+ 2.8.0 or higher
GLIB 2.8.0 or higher
ATK 1.8.0 or higher
PANGO 1.10.0 or higher
|You can find these packages at http://www.gtk.org/. To compile xbGTK, development files (=headers) are also required. For Linux you can search RPM packages at http://www.rpmfind.net/ or your distribution's FTP site. (Or just "apt-get install" if you're using Debian GNU/Linux )|
|Python||Python is needed by xbGTK to generate some files and can be found at http://www.python.org/.|
|GNU Make||If you want making to be trivial|
After you have installed all necessary packages you can compile xbGTK.
The simple way is to call: ./configure; make
If you can't use the configure script (e.g., on Mingw32 without MSYS):
The package contains a Makefile for GNU make. At present, it has been tested on Windows (mingw32 with and without MSYS), Linux, and Darwin (Mac OS X). The code is platform-independent, so it should be easy to port the Makefiles to other platforms. Compiling and building the library shouldn't be too hard if you follow these steps:
1. Edit Makefile.config.simple or set Harbour's environment variables according to your configuration:
2. In the main directory type: make -f Makefile.simple
There are a lot of warnings printed on the screen while compiling, but they aren't fatal. The warnings look like:
Could not write method GdkEvent.get_state: No ArgType for GdkModifierType*
They are expected.
This message means that for some functions Harbour wrappers can't be easily autogenerated; so, those wrappers are defined manually (or ignored, if their functions do not make sense in Harbour)
If everything went fine, make should leave you with libxbgtk.a (and libxbgtk.so on Linux) in the source directory.
Now that you have successfully build the libraries, you can install them on your system.
The simple way is to call: make install
If you can't use ./configure: make -f Makefile.simple install
It simply copies source/libxbgtk.* to HB_LIB_INSTALL and include/xbgtk.ch to HB_INC_INSTALL