GTK+ FAQ | ||
---|---|---|
<<< Previous | How to find, configure, install, and troubleshoot GTK+ | Next >>> |
The header file "glibconfig.h" was moved to the directory $exec_prefix/lib/glib/include/. $exec_prefix is the directory that was specified by giving the --exec-prefix flags to ./configure when compiling GTK+. It defaults to $prefix, (specified with --prefix), which in turn defaults to /usr/local/.
This was done because "glibconfig.h" includes architecture dependent information, and the rest of the include files are put in $prefix/include, which can be shared between different architectures.
GTK+ includes a shell script, /gtk-config/, that makes it easy to find out the correct include paths. The GTK+ Tutorial includes an example of using /gtk-config/ for simple compilation from the command line. For information about more complicated configuration, see the file docs/gtk-config.txt in the GTK+ distribution.
If you are trying to compile an old program, you may be able to work around the problem by configuring it with a command line like:
setenv CPPFLAGS "-I/usr/local/include/glib/include"
./configure
(Substitute the appropriate value of $exec_prefix for /usr/local.)
<<< Previous | Home | Next >>> |
I've compiled and installed GTK+, but I can't get any programs to link with it! | Up | When installing a GTK+ application, configure reports that it can't find GTK. |