[ptx] Problems to link /usr/lib32/libpng.so.2 for Panotools 32bit (crosspost: gmane.linux.debian.ports.amd64)

Gerhard Gaussling ggrubbish at web.de
Sun Nov 6 20:13:12 GMT 2005


Am Sonntag 06 November 2005 20:51 schrieb Hal V. Engel:
> On my Gentoo amd64 machine I have PTStitcher working without using a
> chroot. That is I can invoke it directly from my 64 bit version of
> Hugin.  I had to install some 32 bit libraries by hand to get it
> working.  If Debian for amd64 has working 32 bit emulation libraries
> then the same basic thing should work. Search the ptx archive and you
> will find more info on this as there were several amd64 users that
> worked out how to get this to work.  So there is a fairly good thread
> on what had to be done.  I know that some users of other distros used
> the same basic stuff to get this working on their 64 bit machines.
>
> Hal

Thank you Hal for your response, but something seems to be wrong on 
ubuntu breezy since I can't launch PTStitcher out of the i386_chroot, 
on amd64 ubuntu/breezy I get this:
gerhard at ubuntu:~/download/panorama$  PTLinux/Helpers/PTStitcher
PTLinux/Helpers/PTStitcher: error while loading shared libraries: 
libpng.so.2: cannot open shared object file: No such file or directory

$ dpkg -l *32* |grep ii
ii  avifile-win32-plugin     0.7.43.20050224-1ubuntu6 Win32 audio/video 
plugin for libavifile
||>>> ii  ia32-libs                1.4ubuntu4               ia32 shared 
libraries for use on amd64 and i
ii  ia32-libs-gtk            7                        gtk+ ia32 shared 
libraries for with OpenOffi
ii  ia32-libs-kde            1                        KDE ia32 shared 
libraries for with OpenOffic
ii  ia32-libs-openoffice.org 2-0ubuntu1               ia32 shared 
libraries for with OpenOffice.or
ii  lib32gcc1                4.0.1-4ubuntu9           GCC support 
library (32 bit Version)
ii  lib32gcj6                4.0.1-4ubuntu9           Java runtime 
library for use with gcj (32bit
ii  lib32stdc++6             4.0.1-4ubuntu9           The GNU Standard 
C++ Library v3 (32 bit Vers
ii  lib32z1                  1.2.3-3ubuntu4           compression 
library - 32 bit runtime
ii  libgnome32               1.4.2-20                 The GNOME 
libraries
ii  libgnomeui32             1.4.2-20                 The GNOME 
libraries (User Interface)

$ apt-cache search "(32bit|ia32|lib32)"
lib32gcc1 - GCC support library (32 bit Version)
lib32gcj6 - Java runtime library for use with gcj (32bit)
lib32stdc++6 - The GNU Standard C++ Library v3 (32 bit Version)
ia32-libs-gtk - gtk+ ia32 shared libraries for with OpenOffice.org
ia32-libs-openoffice.org - ia32 shared libraries for with OpenOffice.org
ia32-libs-dev - ia32 development libraries and headers for use on 
ia32/ia64 systems
ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems
lib32z1-dev - compression library - 32 bit development
lib32z1 - compression library - 32 bit runtime
aranym - Atari Running on Any Machine
lg-issue55 - Issue 55 of the Linux Gazette.
lib32g2c0 - Runtime library for GNU Fortran 77 applications (32bit)
lib32gcj6-dbg - Debugging symbols for libraries provided in 
lib32gcj6-dev
lib32gcj6-dev - Java development and static library for use with gcj 
(32bit)
lib32gfortran0 - Runtime library for GNU Fortran applications (32bit)
lib32objc1 - Runtime library for GNU Objective-C applications (32bit)
lib32stdc++6-4.0-dbg - The GNU Standard C++ Library v3 (debugging files)
ia32-libs-kde - KDE ia32 shared libraries for with OpenOffice.org

Ok, I did now $ apt-get install ia32-libs-dev
but it doesn't helps.

The simple (?) question is:
How to link ia32 libs the right way, even if they are symlinks to the 
right libs.

$ sudo /sbin/ldconfig -v -l /usr/lib32/libpng.so.2
/sbin/ldconfig: Ignored file /usr/lib32/libpng.so.2 since it is not a
regular file.
$ ldd PTStitcher 
        libpng.so.2 => not found
$ ldconfig -p |grep png
        libpng12.so.0 (libc6,x86-64) => /usr/lib/libpng12.so.0
        libpng12.so.0 (libc6) => /usr/lib32/libpng12.so.0
        libpng12.so (libc6,x86-64) => /usr/lib/libpng12.so
        libpng10.so.0 (libc6,x86-64) => /usr/lib/libpng10.so.0
        libpng10.so.0 (libc6) => /emul/ia32-linux/usr/lib/libpng10.so.0
        libpng10.so.0 (libc6) => /lib32/libpng10.so.0

So, how to get libpng.so.2 (libc6) =>  /usr/lib/libpng10.so.0 ?

$ cat /etc/ld.so.conf
/usr/X11R6/lib
/emul/ia32-linux/usr/lib
/emul/ia32-linux/lib
/lib32
/usr/lib32
/usr/X11R6/lib32
/usr/local/lib
/usr/lib/pango/1.4.0/modules/
/usr/lib/GNUstep/System/Library/Libraries

> On Saturday 05 November 2005 01:18 pm, Gerhard Gaussling wrote:
> > Am Samstag 05 November 2005 15:48 schrieb Gerhard Gaussling:
> > > Is there a way to have /usr/lib32/libpng.so.2 working without
> > > chroot?
> > [...]
> > I'm stil interested in how to link the lacked 32bit lib the right
> > way in a amd64 environment.
> >
> > Kind regards
> >
> > Gerhard Gaußling


More information about the ptx mailing list