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.