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.