GTK + download and installation and programming guide

Source: Internet
Author: User
Tags cairo gtk

GTK + official guide: http://zetcode.com/tutorials/gtktutorial/
GTK + official guide

GTK + wiki URL: http://en.wikipedia.org/wiki/GTK%2B

Download and install GTK +: http://zhidao.baidu.com/question/323664703.html

Http://blog.csdn.net/ouyangzhan/article/details/5734832

In addition, gdk is used in GTK + when a 2D graphics library is used. This is its official address: http://developer.gnome.org/gdk3/stable/

While gdk underlying uses Cairo Library, to understand this library can access this address: http://cairographics.org/documentation/

To download and install GTK + in Ubuntu, perform the following steps:

1. sudo apt-Get install gnome-core-devel

2. sudo apt-Get install libgtk *

If the gnome-core-devel command cannot be executed due to Linux version issues, you can directly run install libgtk *, which will install all GTK-related libraries including PKG-config.
Then, enter PKG-config -- cflags -- libs GTK +-3.0 on the console.

To view all the header files and library paths required by GTK + 3.0.

To develop GTK + 3.0 based on Eclipse IDE, you need to set the path of the header file and Library:

The header file path requires the following:

/Usr/include/glib-2.0/

/Usr/include/atk-1.0/

/Usr/include/gdk-pixbuf-2.0/

/Usr/include/Cairo/

/Usr/include/pango-1.0/

/Usr/lib/x86_64-linux-gnu/glib-2.0/include/

/Usr/include/gtk-3.0/

The library path must include:

/Usr/lib/x86_64-linux-gnu/

The required libraries include:

Gtk-3

Gobject-2.0

Pangocairo-1.0

Gio-2.0

Atk-1.0

Gdk-3

G Lib-2.0

Note: in Linux, the library file name is prefixed with Lib, followed by the Library name, followed by. A or. So.

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.