OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: yarokun on March 15, 2004, 08:12:00 am

Title: gqview 1.3.4 needs libpng.so.3
Post by: yarokun 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
#
Title: gqview 1.3.4 needs libpng.so.3
Post by: Hrw 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
Title: gqview 1.3.4 needs libpng.so.3
Post by: ScottYelich 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
Title: gqview 1.3.4 needs libpng.so.3
Post by: BlackCardinal 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 (http://www.gelhaus.net/zaurus)

Uninstall any older libpng and zlib IPKs you may have and install these in their place.
Title: gqview 1.3.4 needs libpng.so.3
Post by: BlackCardinal 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.
Title: gqview 1.3.4 needs libpng.so.3
Post by: yarokun 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.