4pi.org - Spherical Panoramas

Installation

...of the command line programs

In addition to he requires the JPEG, TIFF and PNG shared libraries Download the Panorama Tools package from Helmut Dersch's website or one of the mirrors, here or here. he requires the JPEG, TIFF and PNG shared libraries On the command line you can use wget to retrieve the package:

peter@debian:~$ wget http://www.fh-furtwangen.de/~dersch/PanoTools.tar.gz

Unpack the file using the command

debian:/usr/local# tar -xzvf PanoTools.tar.gz

debian:/usr/local/PTLinux/Helpers# chmod 755 PTStitcher

debian:/usr/local/PTLinux/Helpers# ./PTStitcher

./PTStitcher: error while loading shared libraries: libpano12.so: cannot open shared object file: No such file or directory

debian:/usr/local/PTLinux/helpers# ldd PTStitcher

This will create a directory named 'PTLinux'. Besides java programs ptpicker, pteditor and ptcryt, which will be discussed in the next section, it contains a the shared library libpano12.so, providing most of the functionality of PanoTools. The Subdirectory 'Helpers' contains the actual programs.
To install the package you have to put libpano12.so into the search path of the linker, i suggest /usr/local/lib. Now your system has to be informed about the newly available library, which is done using the ldconfig command. The configuration file /etc/ld.so.conf contains a list of directories, where libraries can reside. Make sure, /usr/local/lib is among those and that libpano12.so is executable. In order to have all the programs in the 'Helpers' directory easily available without typing the full path to the application, you should copy all PT* programs to /usr/local/bin or another directory, which is in your path. Make sure all PT* programs are executable. Use the ldd command, which prints the shared library dependencies, to check your installation. If everything went OK, you should get something like this:


/usr/local/lib
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib

/usr/lib/libc5-compat
/lib/libc5-compat
/usr/i486-linuxlibc1/lib


Fig. 1: File /etc/ld.so.conf

debian:/home/peter/PTLinux/Helpers# ldd PTStitcher

libpano13.so => /usr/local/lib/libpano12.so (0x40021000)
libc.so.6 => /lib/libc.so.6 (0x40058000)
libm.so.6 => /lib/libm.so.6 (0x4017b000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4019d000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401bd000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x401ff000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libz.so.1 => /usr/lib/libz.so.1 (0x4022b000)

Using the Java Frontends

http://java.sun.com http://www.blackdown.org/

#! /bin/bash
cd ~/PTLinux
java -Djava.library.path=/usr/local/lib -mx128m -jar ptpicker.jar


Fig. 2: File ~/bin/ptpicker

PTViewer, native Version

peter@debian:~$ wget http://www.fh-furtwangen.de/~dersch/PTViewer.tar.gz

peter@debian:~$ mkdir PTViewer

peter@debian:~/PTViewer$ tar -xzvf PTViewer.tar.gz

debian:/home/peter/PTViewer/src# mv PTViewer /usr/local/bin/.



[ Home :: Panoramas :: Objects :: Tutorial :: Equipment :: Downloads :: Privacy :: Contact ]

© 2002-2022 Peter Reimer
last modified: 2008-08-06 12:50:34