You are not logged in.

#1 2021-12-17 16:58:45

behDev
Member
Registered: 2021-12-17
Posts: 18

Install gtk+ in arch [SOLVED]

Hello. I tried to install Gtk+ on Arch Linux but there is no package to install it.

Last edited by behDev (2021-12-17 17:31:21)

Offline

#2 2021-12-17 17:02:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Install gtk+ in arch [SOLVED]

As in version 1? If so, avoid it if at all possible. It's in the AUR, though.

Edit: Oh, right, the '+' is what became version 2. gtk2 is in the repos, as is gtk3.

Last edited by Scimmia (2021-12-17 17:05:33)

Offline

#3 2021-12-17 17:08:07

behDev
Member
Registered: 2021-12-17
Posts: 18

Re: Install gtk+ in arch [SOLVED]

I have gtk 2, 3 and 4 but what I want is gtk+. In principle, gtk+ should be stored in the /usr/include/gtk folder, but despite these packages, this folder does not exist and there is no documentation in gtk+ installation.

Offline

#4 2021-12-17 17:09:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Install gtk+ in arch [SOLVED]

Then you need to define what you mean by 'gtk+'. Pretty sure it doesn't mean what you think it means.

Offline

#5 2021-12-17 17:27:27

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: Install gtk+ in arch [SOLVED]

I found a short and to the point Stack Overflow answer that may be of interest:
https://stackoverflow.com/a/5832268

That answer puts some perspective on the Wikipedia GTK release list:
https://en.wikipedia.org/wiki/GTK#Releases

The long and short of it is that there are only GTK, GTK+ and then GTK again smile
The first GTK is version 1, then GTK+ has been the name through versions 2 and 3, and for version 4 it will be GTK again?

Edit: I was a little quick there; the name GTK+ was established before version 1.
Best ignore my mangled paraphrasing and read the Stack Overflow answer, it has reference links smile

Last edited by Ferdinand (2021-12-18 06:50:07)

Offline

#6 2021-12-17 17:29:18

behDev
Member
Registered: 2021-12-17
Posts: 18

Re: Install gtk+ in arch [SOLVED]

I changed the #include <gtk/gtk.h> to a #include <gtk-4.0/gtk/gtk.h> and it worked fine.

Offline

Board footer

Powered by FluxBB