@@ -17,81 +17,13 @@ How to build and install GtkAda
1717This section explains how to build and install GtkAda on your machine.
1818
1919On Windows systems, we provide an automatic installer that installs GtkAda
20- along with dependent components like gtk+ libraries and `Glade `. If you are a
21- Windows user, you can skip the rest of this section which will address
22- installation on Unix systems.
23-
24- On Unix systems, you first need to install the glib and gtk+ libraries.
25- Download the compatible packages from the gtk+ web site (`http://www.gtk.org
26- <http://www.gtk.org> `_), compile and install it. Alternatively, if your
27- operating system vendor provides glib and gtk+ development packages, you can
28- install the libraries they provide.
29-
30- Change your PATH environment variable so that the script `pkg-config `, which
31- indicates where gtk+ was installed and what libraries it needs is automatically
32- found by GtkAda. You will no longer need this script once GtkAda is installed,
33- unless you develop part of your application in C.
34-
35- OpenGL support will not be activated in GtkAda unless you already have the
36- OpenGL libraries on your systems. You can for instance look at Mesa, which is
37- free implementation.
38-
39- Optionally, you can also install the `Glade ` interface builder. Get the
40- compatible package from the Glade web site, compile and install it.
41-
42- You can finally download the latest version of GtkAda from the web site. Untar
43- and uncompress the package, then simply do the following steps::
44-
45- $ ./configure
46- $ make
47- $ make tests (this step is optional)
48- $ make install
49-
50- As usual with the `configure ` script, you can specify where you want
51- to install the GtkAda libraries by using the `--prefix ` switch.
52-
53- You can specify the switch `--disable-shared ` to prevent building shared
54- libraries, even if your system supports them (by default, both shared and
55- static libraries are installed). By default, your application will be linked
56- statically with the GtkAda libraries. You can override this default by
57- specifying `--enable-shared ` as a switch to `configure `, although you can
58- override it later through the LIBRARY_TYPE scenario variable.
59-
60- If you have some OpenGL libraries installed on your system, you can make sure
61- that `configure ` finds them by specifying the `--with-GL-prefix ` switch on the
62- command line. `configure ` should be able to automatically detect the libraries
63- however.
64-
65- You must then make sure that the system will be able to find the dynamic
66- libraries at run time if your application uses them. Typically, you would do
67- one of the following:
68-
69- * run `ldconfig ` if you installed GtkAda in one of the standard
70- location and you are super-user on your machine
71- * edit `/etc/ld.conf ` if you are super-user but did not install
72- GtkAda in one of the standard location. Add the path that contains
73- libgtkada.so (by default :file: `/usr/local/lib ` or :file: `$prefix/lib `.
74- * modify your `LD_LIBRARY_PATH ` environment variable if you are
75- not super-user. You should simply add the path to libgtkada.
76-
77- In addition, if you are using precompiled Gtk+ binary packages, you will
78- also need to set the `FONTCONFIG_FILE ` environment variable to point to
79- the :file: `prefix/etc/fonts/fonts.conf ` file of your binary installation.
80-
81- For example, assuming you have installed Gtk+ under :file: `/opt/gtk ` and
82- using bash::
83-
84- $ export FONTCONFIG_FILE=/opt/gtk/etc/fonts/fonts.conf
85-
86- If your application is using printing, on UNIX and Linux you will need to
87- point your environment variable GTK_PATH to the directory that contains
88- your Gtk+ libraries, appending it with the :file: `gtk-3.0 ` suffix::
89-
90- $ export GTK_PATH=<gtk_install_dir>/lib/gtk-3.0
91-
92- This will allow Gtk+ to show the available printers and options when using
93- `Gtk.Print ` and `Gtk.PrintOperations ` packages (or `Gtkada.Printing `, which
94- is a high-level interface built on top of these packages).
20+ along with dependent components like gtk+ libraries and `Glade `.
21+
22+ On Unix systems, just follow the instructions listed in the
23+ :file: `README-gtkada-<release>.txt ` file. Note that the :file: `doinstall.sh ` script
24+ will compile GtkAda, so make sure the version of GNAT that you want to use is
25+ in your PATH.
26+
9527
9628How to distribute a GtkAda application
9729======================================
0 commit comments