Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
developer.ubuntu.com/get-started was also very helpful to me. –  TryTryAgain Nov 30 '12 at 3:12

3 Answers 3

up vote 14 down vote accepted

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
share|improve this answer
    
nice one. Thanks for this info(apt-get build) –  Suhaib Sep 16 '12 at 1:53
1  
For GTK3 development it is needed to install libgtk-3-dev package. –  uthark May 3 '13 at 14:31

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.

share|improve this answer
    
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. –  Gabi Purcaru Apr 12 at 17:31
    
Thank you so much @RAOF –  pratnala Jul 29 at 16:27
    
@RAOF: gnome-devel doesn't install on Ubuntu 14.04. Error: pastebin.com/QJXzpVmN Any help? –  pratnala Jul 29 at 16:38

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.