This article mainly introduces the construction of the GTK + development environment under Windows, by installing plugins in Eclipse Pkg-config support for Eclipse CDT makes development flexible and easy;
First step: Install MinGW, install glade (do not repeat);
Step two: Download the gtk+-bundle_3.6.4-20130921_win32.zip and unzip it into a directory (e.g. E:\GUI\GTK), and according to the GTK directory of XXX. README.txt file configuration path;
Step three: Download Eclipse-java-indigo-sr2-win32.zip (Indigo V3.7 version) and unzip it;
Fourth step: Run the Eclipse program, click Help→eclipse Marketplace, enter "Pkg-config support for Eclipse CDT" in the Find text box and press ENTER, and click "Install" to mount the plugin. Such as:
Fifth Step: Click File→new→c Project, enter the project name, select "Hello World GTK + Project", select "MinGW GCC" and click "Finish", such as:
Sixth step: Right-click the project, select "Properties", the left side of the "C + + Build" →settings, select the right "Pkg-config", tick the necessary packages, click "Apply" → "OK", such as:
Seventh Step: Click Compile, execute, output the running result, such as: