Starting with GTK + on Ubuntu

I'm just starting with GTK +.

I have Ubuntu 11.04. How to install GTK and what stable version?

The GTK website offers download packages. However, there are 4 additional support packages. I was wondering if I can use sudo apt-get or synaptic to download them. When I typed GTK on Synaptic, there is a long list.

Please offer a stable version of GTK available for download using sudo apt-get.

Also, which IDE should be used for development and modeling?

I have been programming with Qt so far, which has had QtCreator, QtDesigner for this purpose. Now my application should be ported to GTK. I googled to find out if there is a translation mechanism for Qt in GTK.

Do any of you have this experience?

thank

+5
source share
3 answers

You can install two versions (2.24.10, 3.4.1) of GTK + on Ubuntu (accurate).

sudo apt-get install libgtk2.0-dev
sudo apt-get install libgtk-3-dev

Examples and demo application can be installed using the following commands

sudo apt-get install gtk2.0-examples
sudo apt-get install gtk-3-examples

In the case of Qt, there is no IDE such as QtCreator, but there is a user interface creator named Glade.

sudo apt-get install glade
+7
source

If your background is Qt, which is a C ++ API, you should probably go straight to gtkmm , which is the official C ++ binding for GTK +. This is necessary because at heart GTK + is a C API that relies on binding to make the toolkit available in programming languages ​​other than C.

, 1:1, . , Qt .

, , .

+1

Anjuta is a defacto IDE for development on the Gnome platform using GTK. You can install it on Ubuntu using

sudo apt-get install anjuta
0
source

All Articles