Install, compile, and test GTK in Ubuntu

Source: Internet
Author: User
Using this method, I successfully installed GTK2.20.1 in Ubuntu10.04. 1, install 1, install gcc/g ++/gdb/make and other basic programming tools $ sudoapt-getinstallbuild-essential2, install libgtk2.0-devlibglib2.0-dev and other development-related library files $ sudoapt-getinstallgnome-core -devel

I used this method to install GTK 2.20.1 in Ubuntu 10.04.

I. Installation

1. Install basic programming tools such as gcc/g ++/gdb/make

$sudo apt-get install build-essential

2. Install libgtk2.0-dev libglib2.0-dev and other development-related library files

$sudo apt-get install gnome-core-devel 

3. It is used to automatically find the header file and library file location when compiling the GTK program.

$sudo apt-get install pkg-config

4. Install the devhelp GTK file viewing program.

$sudo apt-get install devhelp

5. Install gtk/glib API reference manual and other help documents

$sudo apt-get install libglib2.0-doc libgtk2.0-doc

6. Install GTK-based interface. GTK is the c/c ++ language graphics library for developing Gnome windows.

$sudo apt-get install glade libglade2-dev
Or
$sudo apt-get install glade-gnome glade-common glade-doc

7. Install gtk2.0 or download and install all the files required by gtk + 2.0.

$sudo apt-get install libgtk2.0-dev
Or
$sudo apt-get install libgtk2.0*

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.