because the author is a university student, the development direction of the Linux kernel is very interested, but really can (JI) force (SHU) has (CHA) Limited (Jin), only can start from the development of Linux application, easy-to-go, progressive, 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 a record of problem records and solutions, then sent this article, using a more convenient way, I hope that the same novice and I have some help)
The following is the point of entry:
First, installation
1, install Gcc/g++/gdb/make and other BASIC programming tools
$sudo Apt - Get Install build - Essential
2, installation Libgtk2.0-dev Libglib2.0-dev and other development-related library files
$sudo apt - get install Gnome - core - devel
3, used in compiling GTK program to find out their own files and library file location
$sudo Apt - Get Install pkg - Config
4. Install devhelp GTK Document Viewer 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. Installing GTK-based interface GTK/C + + language graphics library for developing GNOME forms
$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 required files Shitong Download installation complete
$sudo Apt - Get install LIBGTK2. 0 - Dev
Or
$sudo Apt-get Install libgtk2.0*
Second, view the GTK library version number
1. View 1.2.x Version number
$pkg - --modversion gtk+
2. View 2.x version number
$pkg - --modversion gtk+-2.0
3. View Pkg-config Version number
$pkg - --version
4. See if GTK is installed
$pkg - --list-allgrep gtk
You are now able to use GTK to compile the source program:
GCC base.c-o base ' pkg-config--cflags--libs gtk+-3.0 '
Linux Application development Environment building