Establishment of GTK programming environment on Ubuntu Platform

Source: Internet
Author: User
Ubuntu platform GTK programming environment establishment: 1. Install the compilation tool: sudoapt-getinstallbuild-essential // install the basic compilation tool, gcc and other sudoapt-getinstalllibgtk2.0-dev & nbs

The establishment of the GTK programming environment on the Ubuntu platform:

1. Install the compilation tool:

Sudo apt-get install build-essential // install basic compilation tools, gcc, etc.

Sudo apt-get install libgtk2.0-dev // install the libgtk2.0-dev Library File

Optional (simplified development environment ):

Sudo apt-get install gnome-core-devel // install the development-related library file

Sudo apt-get install pkg-config // used to automatically find the header file and library file location when compiling the GTK Program

Sudo apt-get install devhelp // This will install the devhelp GTK document viewing program

Sudo apt-get install libglib2.0-doc libgtk2.0-doc // This will install gtk/glib API reference manual and other help documents

Sudo apt-get instal glade libglade2-dev // This will install the GTK-based interface constructor.

Sudo apt-get install gnome-devel gnome-dev-doc // develop gnome IDE

2. During compilation, you can use 'pkg-config -- cflags -- libs gtk +-2.0 'in the command line or makefile to determine the header file path and library function path.

Related Article

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.