Author Topic: gqview 1.3.4 needs libpng.so.3  (Read 2688 times)

yarokun

  • Newbie
  • *
  • Posts: 2
    • View Profile
gqview 1.3.4 needs libpng.so.3
« on: March 15, 2004, 08:12:00 am »
how to fix? should go to www.libpng.org?


# gqview
gqview: error while loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory
#
# find / -name libpng*
/usr/lib/libpng12.so.0.1.2.5
/usr/lib/libpng12.so
/usr/lib/libpng12.so.0
#
SL-C860
pdaXrom 1.0.0
Adtec 512mb SD Card
Buffalo LPC-CF-CLT LAN
Buffalo WLI2-CF-S11 WIFI

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
gqview 1.3.4 needs libpng.so.3
« Reply #1 on: March 15, 2004, 09:04:32 am »
try to symlink libpng.so.3 to libpng12.so - afaik this is same version but with other soname
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
gqview 1.3.4 needs libpng.so.3
« Reply #2 on: March 15, 2004, 12:25:10 pm »
I didn\'t get this error... so some other ipk must have that file in it....

I\'m not sure offhand a quick way to tell which.

Scott

BlackCardinal

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • http://www.gelhaus.net
gqview 1.3.4 needs libpng.so.3
« Reply #3 on: March 15, 2004, 02:33:00 pm »
I ran into this myself just a couple of days ago (with a different application), so I put together a couple  of new IPKs to address this problem.

libpng-devel and zlib-devel are direct replacements for the older libpng and zlib IPKs floating around.  They are both ARM builds of the most recent versions of the libraries (libpng 1.2 and zlib 1.2.1), and include all of the proper library symlinks.  They include the static and dynamic libraries, and the header files for on-the-Z development using zgcc.  The header files don\'t take up very much space if you\'re not using zgcc.

Since the zlib library is a prerequisite for libpng, libpng-devel is dependent on zlib-devel.

If you would like to try them, I\'ve put them on my Zaurus page:

http://www.gelhaus.net/zaurus

Uninstall any older libpng and zlib IPKs you may have and install these in their place.
BlackCardinal : http://www.gelhaus.net : Zaurus page

SL-C1000, Cacko ROM v1.23
Lexar SD 512MB, Kingston CF 512MB
Symbol Spectrum24 CF 802.11b

SL-5500 Sharp ROM v3.10
Lexar SD 256MB
Pocketop keyboard, Nutshell 207 leather case

BlackCardinal

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • http://www.gelhaus.net
gqview 1.3.4 needs libpng.so.3
« Reply #4 on: March 15, 2004, 03:34:08 pm »
Quote
I didn\'t get this error... so some other ipk must have that file in it....

I\'m not sure offhand a quick way to tell which.

Here\'s a shell script to search to find out:

Code: [Select]
#!/bin/bash



if [ $# == 0 ]

then

        echo "findpackage: Searches installed packages to find the owner of a file."

        echo "             Will search for files that include name as part of the"

        echo "             name or path."

        echo ""

        echo "Usage:  findpackage name"

        exit 0

fi



for i in `ipkg status |grep ^Package |cut -d    -f 2`

do

        for j in `ipkg files $i |grep $1`

        do

                echo "Package "$i": " $j

        done

done


Save this as \"findpackage\", and make it executable with chmod 755 (as root).  Executing findpackage libpng will tell you.
BlackCardinal : http://www.gelhaus.net : Zaurus page

SL-C1000, Cacko ROM v1.23
Lexar SD 512MB, Kingston CF 512MB
Symbol Spectrum24 CF 802.11b

SL-5500 Sharp ROM v3.10
Lexar SD 256MB
Pocketop keyboard, Nutshell 207 leather case

yarokun

  • Newbie
  • *
  • Posts: 2
    • View Profile
gqview 1.3.4 needs libpng.so.3
« Reply #5 on: March 19, 2004, 08:55:21 am »
Quote
try to symlink libpng.so.3 to libpng12.so - afaik this is same version but with other soname

It did work. Thanks for good suggestion.
SL-C860
pdaXrom 1.0.0
Adtec 512mb SD Card
Buffalo LPC-CF-CLT LAN
Buffalo WLI2-CF-S11 WIFI