Missing GTK+ development software - Anjuta error

Asked by Geoff Kaniuk

I am trying to develop a graphical application using GTK+. I have installed Anjuta.

I attempted to create a simple terminal 'C' project, and Anjuta produces:

**Error: You must have glib installed.

I tried to get glib via Synaptic, but it is not listed there - even under unsupported applications. I also could not find GTK+ listed in the applications.

So, am I supposed to download the GTK+ development software manually from ftp.gtk.org?

If so, in which directory do I extract and build the libraries? For example, the GTK+ site gives /opt as an example (this is currently empty). Is there a preferred standard place?

Is there a way I can get Synaptic to recognise GTK+ and its dependencies, so that I am alerted in the future when GTK+ changes?

Any help on this will be much appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Onkar Shinde
Solved:
Last query:
Last reply:
Revision history for this message
Geoff Kaniuk (geoff-kaniuk) said :
#1

I think I have made some progress with Synaptic.

In Synaptic Package Manager->Settings->Repositries, click Add, then Custom.

You get a dialogue with the message:

"Enter the complete APT line of the channel you want to add"

and it gives the example "deb http://ftp.debian.org sarge main"

Presumably I want a GTK repositry.
In the download section of http://www.gtk.org there is a link to Source, which is a directory listing of ftp://ftp.gtk.org/pub/gtk/v2.10/,

and in there I can see the packages I want.

Is this the URL of the repositry?

I do realise that one can just edit /etc/apt/sources.list, and from what I can see this IS just the complete APT line.

Am I moving in the right direction?

But now I'm really stuck, because I dont know how to construct the rest of the complete APT line.

HELP please!

Revision history for this message
Onkar Shinde (onkarshinde) said :
#2

Please don't add repositories on your own unless you know exactly what you are doing.

Don't use debian repositories with Ubuntu.

Please refer to https://help.ubuntu.com/community/Repositories/Ubuntu
After doing this refresh package listing from Synaptic or through command line 'sudo apt-get update'

All the development packages you will ever need with Anjuta are already in ubuntu repositories. All you have to do is search for packages that end with '-dev'.

Revision history for this message
Geoff Kaniuk (geoff-kaniuk) said :
#3

Many thanks for your reply. This complely solves the problem.

So now I have learnt that -dev means packages used for development of applications.

Is there somewhere a statement of naming conventions for packages?

This might help in future searches.

Revision history for this message
Buzz Interactive (buzzinteractive) said (last edit ):
#4

The error message "Missing GTK+ development software" in Anjuta typically indicates that the required GTK+ development libraries are not installed on the system. GTK+ is a popular toolkit used for creating graphical user interfaces (GUIs) in Linux-based applications.

To resolve this error, you need to install the necessary GTK+ development packages on your system. These packages typically include headers, libraries, and other dependencies required for building and compiling GTK+ applications.

Once the GTK+ development software is installed, Anjuta should be able to locate the required libraries and function properly. It is recommended to consult the documentation or the official website of Anjuta for specific instructions on how to resolve this error based on your operating system and version.https://www.buzzinteractive.co