To compile these platform demos you will need a C compiler, for example gtk3-devel, gtk3-dev or similar.. You will also need GTK+ 3 including headers and pkg-config files. Linux distributions usually abstract GTK+ 3 headers and pkg-config files into separate packages called
Beyond the prerequisites mentioned above, several tools has been developed to assist you further in developing your GNOME application. GNOME also recommends a specific coding style and conventions which this section will elaborate further upon.
: An API documentation browser for GNOME.
A GNOME IDE (Integrated Development Environment). An IDE can assist you in writing and debugging C code, for exampleor .
: A user interface designer for GTK+ Applications.
An IRC Client, for example irc.gnome.org.or . If you run into problems while following the beginner tutorials, join #gnome on
Most applications in the GNOME project is written in theof indentation. The tutorials and code examples presented are following this convention and you are recommended to do so too.
To run the code samples:
Copy and paste the code into filename.c
In the terminal type:
gcc filename.c `pkg-config --cflags --libs gtk+-3.0` -o filename
For more information about compiling GTK+ programs see.
This work is licensed under a. As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this documentation under the terms of your choosing, without restriction.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.