Configure the Gtk + 2.0 library in Ubuntu Eclipse
Directory [-]
Preface
Install Gtk:
I. Installation
Ii. view the GTK library version
Iii. Test Procedure
Iv. Compile and run
Configure gtk + in Eclipse
A 4 view the header file target and library file name of gtk + 2.0
2. Add the header file directory and library file name in eclipse
3. Set compilation and connection options
Compile and run
Postscript:
-------------------------------------- Split line --------------------------------------
Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS
Hadoop Eclipse plug-in compilation and installation 1.2.0
Compile Hadoop plug-in Eclipse
Hadoop 1.2.1 compile Eclipse plug-in
Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)
How to install the latest Eclipse version in Ubuntu 14.04
-------------------------------------- Split line --------------------------------------
Preface
IDE is something we have to do. The vi/vim/emacs + make + gcc/g ++ method is both awesome and efficient, but they are not complicated in configuration, it takes a very long time to use, to replace all ides.
So my choice is:
Use eclipse to write code, gvim to write Makefile, compile and run in shell command line.
Install gtk:
Refer to the following URL:
I copied this article just in case.
I. Installation
1. Install basic programming tools such as gcc/g ++/gdb/make
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. It is used to automatically find the header file and library file location when compiling the GTK program.
Sudo apt-get install pkg-config
4. Install the devhelp GTK file viewing 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. Install GTK-based interface. GTK is the c/c ++ language graphics library for developing Gnome windows.
Sudo apt-get install glade libglade2-dev
Or:
# Or
Sudo apt-get install glade-gnome glade-common glade-doc
7. Install gtk2.0 or download and install all the files required by gtk + 2.0.
Sudo apt-get install libgtk2.0-dev
Or
Sudo apt-get install libgtk2.0 *
For more details, please continue to read the highlights on the next page: