You are not logged in.

#1 2011-01-22 22:47:21

panickedthumb
Member
Registered: 2011-01-22
Posts: 5

gtk.h missing?

I am having trouble building some packages from the AUR with yaourt. So far I have had this error on gnome-packagekit and plymouth (regular and git).

Most recently trying to build plymouth:

make[5]: Entering directory `/tmp/yaourt-tmp-travis/aur-plymouth-git/src/plymouth-build/src/plugins/renderers/x11'
  CC     x11_la-plugin.lo
./plugin.c:49:21: fatal error: gtk/gtk.h: No such file or directory

I have no idea what provides gtk.h, something like yum's "whatprovides" option would be nice, but I'm not sure if that exists in pacman (reading the man page turned up nothing).

Any ideas where to go?

EDIT: Since posting this I have confirmed that gtk.h is present in /usr/include/gtk-2.0/gtk and have also tried this with makepkg instead of yaourt. I have also tried other packages, and it appears that this error comes up with any build that depends on gtk.h

EDIT2, and final: Resolved with the help of falconindy on #archlinux.

Last edited by panickedthumb (2011-01-23 05:54:50)

Offline

#2 2011-01-22 22:53:10

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: gtk.h missing?

It's owned by gtk.

Offline

#3 2011-01-22 22:55:27

panickedthumb
Member
Registered: 2011-01-22
Posts: 5

Re: gtk.h missing?

Right, but gtk what? I have gtk installed. I've looked through the package list and nothing sticks out, like gtk-devel or something to that effect that would have C header files.

Offline

#4 2011-01-22 22:56:28

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: gtk.h missing?

panickedthumb wrote:

Right, but gtk what? I have gtk installed. I've looked through the package list and nothing sticks out, like gtk-devel or something to that effect that would have C header files.

Remember to have gtk installed. You may be thinking of gtk2. smile

Last edited by cesura (2011-01-22 22:56:46)

Offline

#5 2011-01-22 23:06:26

panickedthumb
Member
Registered: 2011-01-22
Posts: 5

Re: gtk.h missing?

You were certainly right about that. I had gtk2, not just plain gtk.

However, after installing gtk, the problem persists. I know in debian-land at least there would be a complement to gtk called libgtk-devel or something, but I'm not finding anything similar searching through packages on the arch website.

Offline

#6 2011-01-23 00:05:40

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: gtk.h missing?

Please use official tools (makepkg) when asking for help with build errors. The gtk2 dependency is correct, and this builds just fine for me with makepkg.

Arch does not split packages to -doc, -devel, -wtf. Headers are 9 times out of 10 included with each package.

Offline

#7 2011-01-23 01:02:40

panickedthumb
Member
Registered: 2011-01-22
Posts: 5

Re: gtk.h missing?

Fair enough, just tried it with makepkg, and I get the same error at the same place.

I have also confirmed that I have the gtk.h file present at /usr/include/gtk-2.0/gtk/gtk.h

Here is the exact place it is erroring out, with a few processes before, and all the text after the failure:
http://pastebin.com/rbvkVy5m

EDIT: that pastebin was from the yaourt output. This one is from makepkg: http://pastebin.com/T9ynYV4S

Last edited by panickedthumb (2011-01-23 01:04:02)

Offline

#8 2011-02-09 02:01:16

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: gtk.h missing?

falconindy wrote:

...the gtk2 dependency is correct...

Not necessarily. At least I think.

Both exist on my system. It depends on which you build with:
/usr/include/gtk-1.2/gtk/gtk.h
/usr/include/gtk-2.0/gtk/gtk.h

Offline

#9 2011-02-25 20:23:45

Kot Dymok
Member
Registered: 2011-02-25
Posts: 7

Re: gtk.h missing?

Please, help me in this problem. How was this problem resolved?
I'm sorry for my english.

Offline

#10 2011-02-25 21:09:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: gtk.h missing?

Kot Dymok wrote:

Please, help me in this problem. How was this problem resolved?
I'm sorry for my english.


in most cases pkg-config is missing.

pacman -S base-devel


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2011-02-26 10:05:43

Kot Dymok
Member
Registered: 2011-02-25
Posts: 7

Re: gtk.h missing?

wonder wrote:

in most cases pkg-config is missing.
pacman -S base-devel

command 'pacman -S base-devel' reinstall pkg-config and some other packages. But nothing was emerge in /usr/include:
[root@kot_dymok /]# ls -l /usr/include/ | grep gtk
-rw-r--r--  1 root   root      1412 Nov 28 04:45 canberra-gtk.h
drwxr-xr-x  4 root   root      4096 Jan 11  2010 gtk-1.2
drwxr-xr-x  4 root   root      4096 Nov 15 22:29 gtk-2.0
drwxr-xr-x  2 root   root      4096 Oct 22  2009 gtkhex
drwxr-xr-x  4 root   root      4096 Jun 13  2009 gtkmathview
drwxr-xr-x  3 root   root      4096 Nov 23 22:09 gtkmm-2.4
drwxr-xr-x  3 root   root      4096 Nov  8  2009 gtkspell-2.0
drwxr-xr-x  3 root   root      4096 Nov 15 22:29 gtk-unix-print-2.0
drwxr-xr-x  3 root   root      4096 Feb 24 11:59 pygtk-2.0
[root@kot_dymok /]# ls -l /usr/include/ | grep gdk
drwxr-xr-x  3 root   root      4096 Nov 23 22:09 gdkmm-2.4
drwxr-xr-x  4 root   root      4096 Nov  6 03:58 gdk-pixbuf-2.0

I haven't 'gtk' and 'gdk' folder here.
If I make symbolic link /usr/include/gtk-2.0/gtk to /usr/include/gtk and link on /usr/include/gtk-2.0/gdk to /usr/include/gdk, I haven't 'gio' and 'glib' folder in /usr/include, only in /usr/include/glib-2.0. And even after this I haven't 'glibconfig.h' (anything) and some files in 'gdk' folder.
What are this files? And how take normal 'gtk' folder and 'gtk.h' file?

Offline

#12 2011-02-26 10:12:40

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: gtk.h missing?

@Kot Dymok provide configure.log or config.log


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2011-02-27 23:35:52

Kot Dymok
Member
Registered: 2011-02-25
Posts: 7

Re: gtk.h missing?

What owned config.log? Stupid question, I knew...

Offline

#14 2011-02-28 04:39:20

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: gtk.h missing?

Kot Dymok wrote:

What owned config.log? Stupid question, I knew...

It is in the same directory as the configure script.

Offline

Board footer

Powered by FluxBB