Ubuntu12.04安装GTK 界面设计

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

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参考手册及其它帮助文档

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值