Gtk3.0 Installation Summary

Source: Internet
Author: User
Tags gtk

Gtk3.0 has been released for a while, but there are quite a few installations on the Internet. Recently, if you want to use gtk3.0 for some UI development, You have to reinstall gtk3.0. Although GTK depends on a considerable number of underlying libraries, it is easier to directly install gtk2.0 without installation. Sadly, we have installed gtk2.0. Many related libraries, such as glib, do not match 3.0. We can only try it. There are not many similar materials on the Internet. I hope this will help you.

First, the relationship between gtk3.0 and other related libraries is shown in:

Install the new code from the http://www.gtk.org/download/linux.php first, then compile and install ~~

Install glib

If you have installed the old version, you must first uninstall the outdated glib. Otherwise, you cannot install GTK later even if you have installed the new version of glib. This has plagued me for a long time. Because I installed a gnome-core-devel package on unbuntu, I spent a whole day later, even if PKG-cnfig was correct, you still cannot install gtk3.0. There are a lot of similar problems on the Internet, but many of them are not for deban, So I deleted a lot after a try, but I still didn't solve the problem. Later I found this on a foreign website:

Sudo
Apt-Get remove -- purge libglib2.0-Dev (similarly, If You Want To uninstall gtk2.0, you can: sudo apt-Get remove gtk2.0-Dev)

In this way, it seems that all of the ATK has been removed, but it's okay. The following code can be re-installed:

./configure 
make 
make install

Can check whether the installation is successful: PKG-config -- modversion glib-2.0 or lower.

Install ATK

./configure
make 
make install

Install Cairo

The http://cairographics.org/download/ can be installed based on the deban installation package

sudo apt-get install libcairo2-dev

Install pango

./configure 
make
make install

Install LibTIFF (that is, TIFF)

apt-get install libtiff4-dev

Install gtk3.0

See http://developer.gnome.org/gtk3/stable/gtk-building.html

./Configure # If any error is reported, update the package and reinstall the package ~~

Make

Make install

Try helloword and see if it is done.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.