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