PDA

View Full Version : [ubuntu] installing GTK+ in Ubunutu



mkmahmoud2100
May 6th, 2015, 12:29 PM
INSTALL GTK+ FROM SCRATCH





install pkg-config
install GNU make or Gmake
install GLIB

% tar xf glib-2.45.1.tar.gz # unpack the sources
% cd glib-2.45.1 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build GLIB
[ Become root if necessary ]
% rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
% make install # install GLIB


install GDK-pixbuf library

configure: error:
*** GLIB 2.37.6 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.



Solution:


To check the PKG_CONFIG_PATH value use the command echo $PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
or export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
it gives the same error in the other option
$ LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH configure: error:
*** Checks for TIFF loader failed. You can build without it by passing
*** --without-libtiff to configure but some programs using GTK+ may
*** not work properly
install libtiff-tool from ubuntu software center





Instal Pango library

configure: error: *** Could not enable any backends. *** Must have at least one backend to build Pango.
install cairo
fontconfig
FreeType
HarfBuzz


install ATK
gobject-introspection

configure: error: flex not found but required
install flex “ in terminal write apt-get install flex”
error: bison not found but required
install bison from terminal or ubuntu software center “sudo apt-get install bison”





External dependencies




The GNU libiconv library is needed to build GLib if your system doesn't have the iconv() function for doing conversion between character encodings. Most modern systems should have iconv().
The libintl library from the GNU gettext package is needed if your system doesn't have the gettext() functionality for handling message translation databases.
The libraries from the X window system are needed to build Pango and GTK+. You should already have these installed on your system, but it's possible that you'll need to install the development environment for these libraries that your operating system vendor provides.
The fontconfig library provides Pango with a standard way of locating fonts and matching them against font names.
Cairo is a graphics library that supports vector graphics and image compositing. Both Pango and GTK+ use cairo for all of their drawing.
The shared-mime-info package is not a hard dependency of GTK+, but it contains definitions for mime types that are used by GIO and, indirectly, by GTK+. gdk-pixbuf will use GIO for mime type detection if possible. For this to work, shared-mime-info needs to be installed and XDG_DATA_DIRS set accordingly at configure time. Otherwise, gdk-pixbuf falls back to its built-in mime type detection
install GTK+




Good Luck from “Mahmoud Aburub”

dino99
May 6th, 2015, 01:01 PM
What that thread is supposed to explain ?