LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2011, 01:43 PM   #1
WetFroggy
Member
 
Registered: Jul 2008
Posts: 62

Rep: Reputation: 0
Unhappy gdkpixbuf.h not found


Problem :
A couple of programs I use (or would like to use) seem to be unable to locate "gdkpixbuf.h". This kind of error occurs, every-time :
Code:
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:37:35: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
Now, I realize, this file that is being looked for, is over at "/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/", but I have been unable to, as of yet, figure out how to 'make the compilable programs see this'.

I have tried, linking said file into '/usr/include/gtk-2.0/gdk/', copying it into '/usr/include/gtk-2.0/gdk/'.

I have tried changing the environment to 32bit using the script "32dev.sh" (I was running out of ideas, and falsely guessed being in such an environment would make 'things just work out'.)

In a last ditch effort (blind stab), I added the correct path to the gdkpixbuf.h file to my path, to no luck.

I'd change the source files in the various programs I want to use, except I am unable to locate where gdkpixbuf.h is being referred to.

Is there some kind of workaround I can use?

System:
Slackware64 13.37
multilib, using alienbob's instructions (I believe I used the packages he made).
gsb-2.30_64 (I use some programs that "all but require you to install gnome itself" and gsb-current I believe isn't stable enough yet. Additonally, I've checked as best as I could, and it does not seem that 'gdkpixbuf.h' is itself replaced, by anything that is installed/replaced).

NOTE : Even using some slackbuilds, cause the the same blow-out, at the same point.

Last edited by WetFroggy; 07-15-2011 at 01:46 PM.
 
Old 07-15-2011, 02:26 PM   #2
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 53
The gdk-pixbuf2 package is new in Slackware 13.37. If I understand you correctly, you are using GSB packages built for Slackware 13.1. If that is the case, the gtk+2 package provided by GSB may have overwritten the gdk-pixbuf-2.0.pc file in /usr/lib{$LIBDIRSUFFIX} with it's own version (as well as placed different versions of some files throughout your system), causing the problems you are seeing. The gdk-pixbuf-2.0.pc file provided by Slackware 13.37's gdk-pixbuf2 package would include the correct Cflags entry for programs to find the needed header files.

What are the contents of your /usr/lib/pkgconfig/gdk-pixbuf-2.0.pc and/or /usr/lib64/pkgconfig/gdk-pixbuf-2.0.pc file(s)?

And in case it turns out this is not the problem, perhaps giving some examples of the programs that are not compiling correctly would be helpful.
 
Old 07-15-2011, 03:14 PM   #3
WetFroggy
Member
 
Registered: Jul 2008
Posts: 62

Original Poster
Rep: Reputation: 0
Thank you for a reply,

In "/usr/lib/pkgconfig/gdk-pixbuf-2.0.pc"
Code:
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include

gdk_pixbuf_binary_version=2.10.0
gdk_pixbuf_binarydir=/usr/lib/gdk-pixbuf-2.0/2.10.0
gdk_pixbuf_moduledir=${gdk_pixbuf_binarydir}/loaders
gdk_pixbuf_cache_file=${gdk_pixbuf_binarydir}/loaders.cache

Name: GdkPixbuf
Description: Image loading and scaling
Version: 2.23.3
Requires: gobject-2.0
Requires.private: gmodule-no-export-2.0 libpng
Libs: -L${libdir} -lgdk_pixbuf-2.0  -lm 
Cflags: -I${includedir}/gdk-pixbuf-2.0
and in "/usr/lib64/pkgconfig/gdk-pixbuf-2.0.pc"
Code:
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include

Name: GdkPixbuf
Description: Image loading and scaling
Version: 2.20.1
Requires: gobject-2.0,gmodule-no-export-2.0
Libs: -L${libdir} -lgdk_pixbuf-2.0 
Cflags: -I${includedir}/gtk-2.0
The 64bit looks a little lower, version-wise, so it'd be safe to assume the gsb-version has overwritten it? Oh wait, ok now I see it, the Cflags is pointing to the wrong place.
 
Old 07-15-2011, 03:22 PM   #4
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 53
Quote:
Originally Posted by WetFroggy View Post
... Oh wait, ok now I see it, the Cflags is pointing to the wrong place.
Correct. You can try to reinstall the gdk-pixbuf2 package from Slackware64-13.37 and see if that solves your problem, but then you may run in to problems with GSB because it has been compiled against a different version of libgdk_pixbuf.
 
Old 07-15-2011, 03:50 PM   #5
WetFroggy
Member
 
Registered: Jul 2008
Posts: 62

Original Poster
Rep: Reputation: 0
Seems to be working now, thank you.

In future, if I have oddities such as I did, when trying to compile programs, is a typically good place to start looking (if all other components present) "/usr/lib/pkgconfig" (or "/usr/lib64/pkgconfig") ?

As for other issues that might arise, I'll keep a watch for them, and see what breaks that I needed.
 
Old 07-15-2011, 04:19 PM   #6
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 53
Quote:
Originally Posted by WetFroggy View Post
Seems to be working now, thank you.

In future, if I have oddities such as I did, when trying to compile programs, is a typically good place to start looking (if all other components present) "/usr/lib/pkgconfig" (or "/usr/lib64/pkgconfig") ?
It was appropriate in this particular case because it was apparent the correct directory (/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/) was not being added to the header search path (-I).

Quote:
Originally Posted by WetFroggy View Post
As for other issues that might arise, I'll keep a watch for them, and see what breaks that I needed.
Frankly, I'm surprised you aren't having more issues than this. Replacing packages such as gtk+2 and glib2 with earlier versions can be a recipe for trouble.
 
Old 07-15-2011, 05:04 PM   #7
WetFroggy
Member
 
Registered: Jul 2008
Posts: 62

Original Poster
Rep: Reputation: 0
Well, when I looked at what gsb's install file said it replaced, I felt I was safe, as 13.37 had newer versions. Using gslapt, I did my best to confirm it was actually replacing only what it needed to. Seems I missed (at least) one. I had a sneaking suspicion re-installing the original package from 13.37 would have worked, but I dismissed it as not necessary as everything seemed to be correct (the package "gdk-pixbuf2" for example, was installed, or said it was from the slackware package (it didn't use _gsb)). It would seem I did not look deep enough, as obviously it indeed had been overwritten.
 
Old 07-20-2011, 10:57 AM   #8
WetFroggy
Member
 
Registered: Jul 2008
Posts: 62

Original Poster
Rep: Reputation: 0
Quote:
Frankly, I'm surprised you aren't having more issues than this. Replacing packages such as gtk+2 and glib2 with earlier versions can be a recipe for trouble.
And here come the errors! Alright, backtracking out of the mess I put myself in.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 10:02 AM
GdkPixbuf mod install for Gtk-Perl-0.7009 for Acidrip and dvd::rip dns21 Linux - Software 5 09-28-2005 08:37 PM
iceme gdkpixbuf megadeth Linux - Software 6 06-14-2005 05:02 AM
/usr/sbin/update-gdkpixbuf-loaders: No such file or directory ulaoulao Linux - Software 0 10-17-2004 06:44 PM
GdkPixbuf chutsu Linux - Software 2 09-04-2004 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration