GTK Learning notes under the Linux GTK Environment setup

Source: Internet
Author: User
Tags gtk

The following is a description of the installation process under Ubuntu environment:
1, configuration installation Gcc/g++/gdb/make and other basic programming tools (must be installed)
There is already gcc in the newly installed Ubuntu system, but this GCC has almost no files to compile, because it lacks some necessary header files, so install build-essential this package. You can search for build-essential inside the new stand or enter the following command:
sudo apt-get install build-essential
After the installation is complete, you can write a simple C program to verify that the GCC environment is installed.


2. Installation of Gtk/gnome development environment
Install Libgtk3.0-dev Libglib3.0-dev and other development-related library files
sudo apt-get install gnome-devel Gnome-devel-docs


Need to download a series of installation packages, the time is longer, the speed of the children can not play the game will be rough: D
3, used to automatically find the header file and library file location when compiling GTK program
sudo apt-get install Pkg-config


4. Installing GTK-based interface GTK/C + + language graphics library for developing gnome windows
sudo apt-get install glade Libglade2-dev (actually valid) or

sudo apt-get install glade-gnome Glade-common glade-doc

I'm supposed to be missing gtk+-3.0 and appindicator3-0.1!. After continuous search and try to solve the above problems, as long as the shell terminal to execute a command! Command: sudo apt-get install libgtk-3-dev libappindicator3-dev-y gcc hello_dubuntu.c-o hello_dubuntu ' pkg-config--cflags--l IBS gtk+-2.0 ' # Note: ' ' is not an ordinary single quote "'", but the same symbol as "~"!

GTK Learning notes under the Linux GTK Environment setup

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.