because the author is a university student, the development direction of Linux kernel is very interested, but really can (JI) force (SHU) has (CHA) Limited (Jin), only from the development of Linux applications, easy-to-go, progressive progress, ascended the peak of life, therefore, yesterday built a development environment, Some development tools have been installed. (originally all the tools are taken by the code compiled to configure, but in the problem is too many, at that time did not do the record of the problem and the solution, then sent this article, using a more convenient way, I hope that the same novice and I have some help)
Below to get to the chase:
First, installation
1, install Gcc/g++/gdb/make and other BASIC programming tools
$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, used to automatically find the header file and library file location when compiling GTK program
$sudo Apt - Get Install pkg - Config
4. Install devhelp GTK Document Viewer Program
$sudo Apt - Get Install Devhelp
5. Install Gtk/glib API Reference manuals and other help documents
$sudo apt - get install Libglib2. 0 - doc libgtk2 . 0 - doc
6. Installing GTK-based interface GTK/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 gtk+2.0 all the required files Shitong download installation completed
$sudo Apt - Get install LIBGTK2. 0 - Dev
Or
$sudo Apt-get Install libgtk2.0*
Second, view the GTK library version
1. View 1.2.x version
$pkg - --modversion gtk+
2. View 2.x version
$pkg - --modversion gtk+-2.0
3. View Pkg-config version
$pkg - --version
4. See if GTK is installed
$pkg - --list-allgrep gtk
At this point, you can use GTK to compile the source program:
GCC base.c-o base ' pkg-config--cflags--libs gtk+-3.0 '
Linux Application development Environment building