Friday, March 23, 2012

Compiling & Building the GTK+ libraries on UNIX-like systems


Hey you all...

In the past few days I had to install gtk+-3.2.0 so I can share some of my new python code with you to make life a bit easier.
I built a database migration tool in python to ease the migration of old websites databases to open-cart.
The process of installing GTK from sources was long and took some research of all the requires libraries throughout the net.
You will need to get the GLib, Pango, Gdk-Pixbuf, ATK and GTK+ packages to build GTK+.
I put all the needed libs here including their download links.

I had an error while compiling and installing that required pixman-I so I included that as well.

Hope you find this useful and a time saver...

General compile and install:

# unpack the sources

$ gzip -cd glib-2.29.4.tar.gz | tar xvf -                             
OR tar xvzf OR xvfj on the local folder
# change to the toplevel directory
$ cd glib-2.29.4
# run the `configure' script
$ ./configure
# build GLIB
$ make
[ Become root if necessary ]
* The following line is ONLY FOR GLib
$ rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
# install GLIB
$ sudo make install                                                                   


Details of libraries:




1. GLib-2.30.2

--------------

Introduction to GLib

The GLib package contains a low-level core library. This is useful for providing data structure handling for C, portability wrappers and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.
This package is known to build and work properly using an LFS-7.1 platform.


Package Information



GLib Dependencies

Required



2. Pango-1.29.4

---------------

Introduction to Pango

The Pango package contains the libpango libraries. These are useful for the layout and rendering of multilingual text.
This package is known to build and work properly using an LFS-7.1 platform.

Package Information



Pango Dependencies

Required


3. gdk-pixbuf

-------------

Introduction to gdk-pixbuf

The gdk-pixbuf library is a toolkit for image loading and pixel buffer manipulation. It is used by gtk+-2 and gtk+-3 to load and manipulate images. In the past it was distributed as part of gtk+-2 but it was split off into a separate package in preparation for the change to gtk+-3.
This package is known to build and work properly using an LFS-7.1 platform.

Package Information



gdk-pixbuf Dependencies

Required




4. atk

------

Introduction to atk

The interface definitions of accessibility infrastructure.

Package Information



5. GTK+-3.2.0

-------------

Package Information


  • Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/gtk+/3.2/
  • Download sha256sum: gtk+-3.2.0.tar.xz - bce3c1a9be6afd7552c795268656d8fdd09c299765a7faaf5a76498bb82ed44c
  • Download sha256sum: gtk+-3.2.0.tar.bz2 - b285074ffefb4ff4364f6dd50fe68c7e85b11293e0c1dd3bdeac56052344dadb
  • Download size: 16.6 MB


resources:

  1. GTK+ 3.2 - http://www.gtk.org/download/linux.php
  2. Glib - http://www.linuxfromscratch.org/blfs/view/cvs/general/glib2.html
  3. Pango - http://www.linuxfromscratch.org/blfs/view/cvs/x/pango.html
  4. gdk-pixbuf-2.24 - http://www.linuxfromscratch.org/blfs/view/cvs/x/gdk-pixbuf.html
  5. atk - http://mail.gnome.org/archives/ftp-release-list/2011-August/msg00068.html
  6. pixman-I - http://cairographics.org/releases/
  7. Compiling the GTK+ libraries, Building GTK+ on UNIX-like systems - http://developer.gnome.org/gtk3/stable/gtk-building.html
GTK+ 3.2, build GTK+ 3.2, GNU, Linux, Unix, Glib, Pango, gdk-pixbuf, atk, pixman-I, build GTK+ 3.2 from sources, python, open-cart, Compiling the GTK+ Libraries, How to compile GTK+ itself

No comments:

Post a Comment