OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started 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
#
-
try to symlink libpng.so.3 to libpng12.so - afaik this is same version but with other soname
-
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
-
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.
-
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:
#!/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.
-
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.