Difference between revisions of "LibTIFF"

From CBLFS
Jump to navigationJump to search
(Introduction to LibTIFF)
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|-valign="top"
 
|-valign="top"
 
!Download Source:
 
!Download Source:
| http://libtiff.maptools.org/dl/tiff-{{LibTIFF-Version}}.tar.gz
+
| ftp://ftp.remotesensing.org/pub/libtiff/tiff-{{LibTIFF-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
  
== Introduction to LibTIFF ==
+
{{Package-Introduction|This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.|http://www.remotesensing.org/libtiff/}}
 
 
<Package Description Needed>
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 30: Line 28:
  
 
== Multilib ==
 
== Multilib ==
 +
 +
Note: On some architectures, the 32-bit and 64-bit versions of /usr/include/tiffconf.h are incompatible.  It is easy enough to move them to -32 and -64 versions, and then diff them.  If they differ on your architecture, you will have to find a way of changing (and unsetting) the symlinks according to what you are building.  If you already use a script to set USE_ARCH and PKG_CONFIG_PATH, you can do it there.
  
 
=== 32Bit ===
 
=== 32Bit ===
Line 35: Line 35:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" LDFLAGS="-L/usr/lib" \
+
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
    ./configure --prefix=/usr --x-libraries=${XORG_PREFIX}/lib &&
+
USE_ARCH=32 LDFLAGS="-L/usr/lib" \
 +
./configure --prefix=/usr &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv /usr/include/tiffconf{,-32}.h
  
 
=== N32 ===
 
=== N32 ===
Line 47: Line 49:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" LDFLAGS="-L/usr/lib32" \
+
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
    ./configure --prefix=/usr --libdir=/usr/lib32 \
+
USE_ARCH=n32 LDFLAGS="-L/usr/lib32" \
    --x-libraries=${XORG_PREFIX}/lib32 &&
+
./configure --prefix=/usr --libdir=/usr/lib32 &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv /usr/include/tiffconf{,-n32}.h
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 60: Line 63:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" LDFLAGS="-L/usr/lib64" \
+
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
    ./configure --prefix=/usr --libdir=/usr/lib64 \
+
USE_ARCH=64 LDFLAGS="-L/usr/lib64" \
    --x-libraries=${XORG_PREFIX}/lib64 &&
+
./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv /usr/include/tiffconf{,-64}.h
 +
 
 +
{{Stub-Header|tiffconf}}
  
 
= Contents =
 
= Contents =
Line 162: Line 168:
 
| contains the C++ API functions used by programs to read and write TIFF files.
 
| contains the C++ API functions used by programs to read and write TIFF files.
 
|}
 
|}
 +
 +
[[Category:Graphics Libraries]]

Latest revision as of 07:33, 23 August 2009

Download Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz

Introduction to LibTIFF

This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.

Project Homepage: http://www.remotesensing.org/libtiff/

Dependencies

Optional

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

Note: On some architectures, the 32-bit and 64-bit versions of /usr/include/tiffconf.h are incompatible. It is easy enough to move them to -32 and -64 versions, and then diff them. If they differ on your architecture, you will have to find a way of changing (and unsetting) the symlinks according to what you are building. If you already use a script to set USE_ARCH and PKG_CONFIG_PATH, you can do it there.

32Bit

Compile the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
USE_ARCH=32 LDFLAGS="-L/usr/lib" \
./configure --prefix=/usr &&
make

Install the package

make install &&
mv /usr/include/tiffconf{,-32}.h

N32

Compile the package:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
USE_ARCH=n32 LDFLAGS="-L/usr/lib32" \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv /usr/include/tiffconf{,-n32}.h

64Bit

Compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
USE_ARCH=64 LDFLAGS="-L/usr/lib64" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv /usr/include/tiffconf{,-64}.h

Creating a Stub Header (Multilib Only)

Creating a Generic Stub Header

cat > /usr/include/tiffconf.h << "EOF"
/* tiffconf.h - Stub Header  */
#ifndef __STUB__TIFFCONF_H__
#define __STUB__TIFFCONF_H__

#if defined(__x86_64__) || \
    defined(__sparc64__) || \
    defined(__arch64__) || \
    defined(__powerpc64__) || \
    defined (__s390x__)
# include "tiffconf-64.h"
#else
# include "tiffconf-32.h"
#endif

#endif /* __STUB__TIFFCONF_H__ */
EOF

Creating a Stub Header For Mips

cat > /usr/include/tiffconf.h << "EOF"
/* tiffconf.h - Stub Header  */
#ifndef __STUB__TIFFCONF_H__
#define __STUB__TIFFCONF_H__

#include <sgidefs.h>

#if (_MIPS_SIM == _ABIO32)
# include "tiffconf-32.h"
#elif (_MIPS_SIM == _ABIN32)
# include "tiffconf-n32.h"
#elif (_MIPS_SIM == _ABI64)
# include "tiffconf-64.h"
#endif

#endif /* __STUB__TIFFCONF_H__ */
EOF

Contents

Installed Programs: bmp2tiff, fax2ps, fax2tiff, gif2tiff, pal2rgb, ppm2tiff, ras2tiff, raw2tiff, rgb2ycbcr, thumbnail, tiff2bw, tiff2pdf, tiff2ps, tiff2rgba, tiffcmp, tiffcp, tiffdither, tiffdump, tiffgt, tiffinfo, tiffmedian, tiffset, and tiffsplit
Installed Libraries: libtiff.{so,a} and libtiffxx.{so,a}
Installed Directories: /usr/share/doc/tiff-4.0.3

Short Descriptions

bmp2tiff converts a Microsoft Windows Device Independent Bitmap image file to a TIFF image.
fax2ps converts a TIFF facsimile to compressed PostScript file.
fax2tiff creates a TIFF Class F fax file from raw fax data.
gif2tiff creates a TIFF file from a GIF87 format image file.
pal2rgb converts a palette color TIFF image to a full color image.
ppm2tiff creates a TIFF file from a PPM image file.
ras2tiff creates a TIFF file from a Sun rasterfile.
raw2tiff converts a raw byte sequence into TIFF.
rgb2ycbcr converts non-YCbCr TIFF images to YCbCr TIFF images.
thumbnail creates a TIFF file with thumbnail images.
tiff2bw converts a color TIFF image to grayscale.
tiff2pdf converts a TIFF image to a PDF document.
tiff2ps converts a TIFF image to a PostScript file.
tiff2rgba converts a wide variety of TIFF images into an RGBA TIFF image.
tiffcmp compares two TIFF files.
tiffcp copies (and possibly converts) a TIFF file.
tiffdither converts a grayscale image to bilevel using dithering.
tiffdump prints verbatim information about TIFF files.
tiffgt displays an image stored in a TIFF file in an X window.
tiffinfo prints information about TIFF files.
tiffmedian applies the median cut algorithm to data in a TIFF file.
tiffset sets the value of a TIFF header to a specified value.
tiffsplit splits a multi-image TIFF into single-image TIFF files.
libtiff.{so,a} contains the API functions used by the libtiff programs as well as other programs to read and write TIFF files.
libtiffxx.{so,a} contains the C++ API functions used by programs to read and write TIFF files.
Retrieved from "?title=LibTIFF&oldid=18926"