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
- Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.2.tar.xz
- Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.2.tar.xz
- Download MD5 sum: b7dd26aa83de0b59c867a0b9eb9f9462
- Download size: 7.4 MB
- Estimated disk space required: 179 MB
- Estimated build time: 1.5 SBU (additional 4.0 SBU to run the test suite)
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
- Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pango/1.29/pango-1.29.4.tar.xz
- Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pango/1.29/pango-1.29.4.tar.xz
- Download MD5 sum: 9d5aba73897d2e8e8115b3f4fddbc0af
- Download size: 1.1 MB
- Estimated disk space required: 36 MB
- Estimated build time: 0.4 SBU
Pango Dependencies
Required
pkg-config-0.26 and one of: cairo-1.10.2, X Window System or Fontconfig-2.8.0
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
- Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.xz
- Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.xz
- Download MD5 sum: bd7c2a9d23b573db467e39833f12103d
- Download size: 1.1 MB
- Estimated disk space required: 22 MB
- Estimated build time: 0.2 SBU
gdk-pixbuf Dependencies
Required
4. atk
------
Introduction to atk
The interface definitions of accessibility infrastructure.
Package Information
- Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/atk/2.3/atk-2.3.95.tar.xz
- Download sha256sum: a4d03a87f773b699fb88935296185bbe723d2d6eac9cc453a2f68a8b822b4540
- Download size: 593 KB
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:
- GTK+ 3.2 - http://www.gtk.org/download/linux.php
- Glib - http://www.linuxfromscratch.org/blfs/view/cvs/general/glib2.html
- Pango - http://www.linuxfromscratch.org/blfs/view/cvs/x/pango.html
- gdk-pixbuf-2.24 - http://www.linuxfromscratch.org/blfs/view/cvs/x/gdk-pixbuf.html
- atk - http://mail.gnome.org/archives/ftp-release-list/2011-August/msg00068.html
- pixman-I - http://cairographics.org/releases/
- 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