Skip to content

Error building cwiid from AUR: missing gtk.h

Hi,

I've been trying to install cwiid without success and I was wondering if somebody can help me figure the problem out.

Here is the output of makepkg: pastebin.

The first fatal error is the following:

support.c:15:21: fatal error: gtk/gtk.h: No such file or directory

However, I'm pretty sure I have gtk installed (I found a file at /usr/include/gtk-2.0/gtk/gtk.h).

Can someone tell me what I'm doing wrong?

Thanks

-- Edit --
There was something wrong with my install of gdk-pixbuf2. Reinstalling the package fixed everything.

Thanks everyone.

Edited 22 Oct 2010. We only hold this version.

0 points7 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
dv2nv

7 comments

I posted an updated PKGBUILD here: http://aur.pastebin.com/v9Wz7WSc . See if it helps.

2 points

I tried your PKGBUILD but I got the same errors.

I don't believe it's related to python 2 vs 3 errors (which is what your PKGBUILD seems to fix), as this error has been bugging me since before the switch a few weeks back.

1 points

I think something is wrong w/ your gtk installation... because you are missing the cflags for gtk in the gcc compiler invocation (and hence why you are getting the gtk.h can't be found errors). So how the configure script works is it runs pkg-config --cflags gtk+-2.0 to get the include paths for gtk and puts this in the cwiid-0.6.00/wmgui/Makefile. I'd start by checking if that Makefile does in fact include the paths to the header files. I'd then check that pkg-config does in fact generate the appropriate paths... if not, you may just need to reinstall gtk and possibly pkg-config. Anyway good luck. Consider checking in irc if your problems persist.

2 points
unknown author2 hidden

It sounds to me like it's looking for it in /usr/include/gtk/gtk.h rather than in gtk-2.0/*. It's kludgey, but you could try mkdir gtk then ln -s /usr/include/gtk-2.0/gtk/gtk.h /usr/include/gtk/gtk.h.

2 points

It turned out there was a problem with gdk-pixbuf.

Reinstalling the package fixed it.

1 points
unknown author

Cool. Glad you got it to work. I actually noticed this post because I'd had my own problems when trying to get cwiid to work on my system. :)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.