http://www.gtk.org/download/linux.php
Download for GNU/Linux and Unix
Requirements
You will need to get the GLib, Pango, Gdk-Pixbuf, ATK and GTK+ packages to build GTK+.
You may also need some of the external dependencies that are also linked for each version listed below.
Stable Release
To build GTK+ 3.8, see the installation guide. For additional help, the FAQ is a good starting point.
Older Versions
Some applications still require GTK+ 2, an older stable version of GTK+. You can have the run-time and development environments for GTK+ 3.x, GTK+ 2.x and GTK+ 1.2 installed simultaneously on your computer.
| Version | Packages |
|---|---|
| GTK+ 3.6 | Sources |
| GTK+ 3.4 | Sources |
| GTK+ 3.2 | Sources |
| GTK+ 3.0 | Sources |
| GTK+ 2.24 | Sources |
| GTK+ 2.20 | Sources |
| GTK+ 2.18 | Sources |
| GTK+ 2.16 | Sources |
| GTK+ 2.14 | Sources |
| GTK+ 2.12 | Sources |
| GTK+ 2.10 | Sources |
| GTK+ 2.8 | Sources |
| GTK+ 2.6 | Sources |
| GTK+ 2.4 | Sources |
| GTK+ 1.2 | Sources |
**********************************************
一、安装
1、安装gcc/g++/gdb/make 等基本编程工具
$sudo apt-get install build-essential
2、安装 libgtk2.0-dev libglib2.0-dev 等开发相关的库文件
$sudo apt-get install gnome-core-devel
3、用于在编译GTK程序时自动找出头文件及库文件位置
$sudo apt-get install pkg-config
4、安装 devhelp GTK文档查看程序
$sudo apt-get install devhelp
5、安装 gtk/glib 的API参考手册及其它帮助文档

本文档详细介绍了在Ubuntu12.04上安装和构建GTK+界面设计所需的步骤,包括依赖库的安装、版本检查、编译和测试。首先,你需要安装GCC等基础工具和如libgtk2.0-dev、libglib2.0-dev等开发库。然后,通过configure和make命令编译和安装GTK+及其依赖,如GLib、Pango、Gdk-Pixbuf和ATK。此外,文中还提到了GTK+的额外配置选项,以满足特定需求。


372

被折叠的 条评论
为什么被折叠?



