34

Not new to Ubuntu or programming but I am new to programming in C and gtk. Have been using Quickly for the odd program. I want to play around with C and gtk.

What gtk packages do I need to install to have a working development environment with C?

1

3 Answers 3

28

I cheat and use the list of packages needed to build other big GTK applications instead:

sudo apt-get build-dep inkscape

Or for a more minimal starting point, go with the bare minimum and add on when you need to:

sudo apt-get install build-essential libgtk2.0-dev
2
  • 1
    nice one. Thanks for this info(apt-get build)
    – Suhaib
    Sep 16, 2012 at 1:53
  • 12
    For GTK3 development it is needed to install libgtk-3-dev package.
    – uthark
    May 3, 2013 at 14:31
17

For a full development environment, the gnome-devel Install gnome-devel metapackage will install a full GTK + GNOME development environment, including the development documentation and the Anjuta IDE.

This is quite a lot more than the minimal set of things you'll need for GTK development, but it can be nice to have everything you're likely to need available.

2
  • THIS. I've been trying to get a library working and it kept complaining about missing dependencies and I got it to work in a couple of minutes with this. Apr 12, 2014 at 17:31
  • @RAOF: gnome-devel doesn't install on Ubuntu 14.04. Error: pastebin.com/QJXzpVmN Any help?
    – pratnala
    Jul 29, 2014 at 16:38
1

You probably want an application like Anjuta or CodeBlocks (both can be found in the software center).

I would HIGHLY suggest Anjuta over most other IDE's for it's Glade integration (among other features), usage of autotools (less headaches), and the portability of the code (you can use any text editor you like =).

If you have no idealogical issues, you can try using Monodevelop (it's a good IDE, similar to Visual Studio).

To get the dependencies for a basic GTK+ development, just install buildessential and libgtk2.0-dev as Kees noted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .