LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2004, 10:49 AM   #1
marcelocp
LQ Newbie
 
Registered: Aug 2003
Location: Sao Paulo, Brazil
Distribution: Slackware 9.0 w/ custom 2.4.29 kernel
Posts: 14

Rep: Reputation: 0
Trouble with libpng versions in idesk


Hi,

I downloaded and compiled idesk-0.5.6 without problems in Slack 9.0.

But when I run idesk, I get the following messages before idesk aborts:

libpng warning: Application was compiled with png.h from libpng-1.0.12
libpng warning: Application is running with png.c from libpng-1.2.5
libpng error: Incompatible libpng version in application and library
IMLIB ERROR: Cannot load immage: /home/mcp/.idesktop/firefox.png
All fallbacks failed

The same happens with the executables for idesk found at www.linxpackages.net. I've tried a couple of them, and I keep getting the same error, regardless of the idesk version.

I am sure I do not have libpng-1.0.12 in my system - the only libpng package that I have is libpng-1.2.5-i386-1.tgz that came in the Slackware 9.0 installation cd-rom- doing a "locate png.h" I only get version 1.2.5 files.

Does someone know how to fix this? I guess it's got to do with pkgconfig, but I'm not sure and if it is so, I don't know exactly how to fix it.

Regards,

marcelocp
 
Old 08-31-2004, 01:38 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try this:
cd /usr/lib
ln -s libpng-1.2.5 libpng-1.0.12
I had similar problem with nedit.
 
Old 08-31-2004, 06:13 PM   #3
marcelocp
LQ Newbie
 
Registered: Aug 2003
Location: Sao Paulo, Brazil
Distribution: Slackware 9.0 w/ custom 2.4.29 kernel
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for your post, gnashley,

But I do not have in /usr/lib a single target named "libpng-1.2.5". I have several libpng.a.*, libpng.so.* and libpng12.*

So I do not know to what of those files I'd link "libpng-1.0.2"- would you know?

Thks again!

marcelocp
 
Old 08-31-2004, 11:51 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Go into /usr/lib and do:
ls -l libpng*
You'll see the way the files are linked.
I have like this:
libpng.a -> libpng12.a
libpng.so -> libpng.so.3
libpng.so -> libpng.so.3.1.2.5
libpng12.a
libpng12.so -> libpng12.so.0
libpng12.so.0 -> libpng12.so.0.1.2.5
libpng12.so.0.1.2.5

What you need to add is something like this:
libpng10.so -> libpng12.so
( ln -s libpng12.so libpng10.so )
libpng10.so.0 -> libpng12.so.0
( ln -s libpng12.so.0 libpng10.so.0 )
etc, etc...
This will link the all to the old libs with the new libs. you may need to adjust the names still.
 
Old 09-04-2004, 11:51 AM   #5
marcelocp
LQ Newbie
 
Registered: Aug 2003
Location: Sao Paulo, Brazil
Distribution: Slackware 9.0 w/ custom 2.4.29 kernel
Posts: 14

Original Poster
Rep: Reputation: 0
Hi gnashley,

Thanks for your willingness to help!

I found out the problem and was able to fix it- the errors messages were not actually from idesk executable, but from Imlib.

For some reasons I got old static libimglib's in my system, which were compiled for libpng 1.0.12. I just deleted them, compiled and installed the most recent version of imlib (2.1.6), and executed ldconfig - and idesk started working.

I don't remember, but I must have installed those old libimglib's some time ago, when I was noobier than now!

Again, tks for your help!
 
Old 09-04-2004, 03:20 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Possible that they were part of elflibs also.
 
  


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
libpng and libpng-devel missing in mplayer configure mmarkvillanueva Linux - Software 2 11-29-2005 10:40 PM
trouble installing idesk donbellioni Linux - Software 6 01-25-2005 02:57 AM
idesk millusionist Slackware 2 12-28-2004 04:23 AM
Trouble with the automatic updates (duplicate versions of various programs) Luythen Red Hat 1 10-05-2004 06:38 AM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-05-2004 11:24 PM

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

All times are GMT -5. The time now is 06: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