LibTIFF: Difference between revisions
From CBLFS
Jump to navigationJump to search
Chipster19 (talk | contribs) No edit summary |
|||
| (13 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{| style="text-align: left; background-color: AliceBlue;" | {| style="text-align: left; background-color: AliceBlue;" | ||
|- | |-valign="top" | ||
!Download Source: | !Download Source: | ||
| | | ftp://ftp.remotesensing.org/pub/libtiff/tiff-{{LibTIFF-Version}}.tar.gz | ||
|} | |} | ||
---- | ---- | ||
{{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/}} | |||
== Dependencies == | == Dependencies == | ||
| Line 26: | 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 31: | Line 35: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" LDFLAGS="-L/usr/lib" \ | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \ | ||
USE_ARCH=32 LDFLAGS="-L/usr/lib" \ | |||
./configure --prefix=/usr && | |||
make | make | ||
| Line 38: | Line 43: | ||
make install && | make install && | ||
mv /usr/ | mv /usr/include/tiffconf{,-32}.h | ||
=== N32 === | === N32 === | ||
| Line 44: | Line 49: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" LDFLAGS="-L/usr/lib32" \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \ | ||
USE_ARCH=n32 LDFLAGS="-L/usr/lib32" \ | |||
./configure --prefix=/usr --libdir=/usr/lib32 && | |||
make | make | ||
| Line 52: | Line 57: | ||
make install && | make install && | ||
mv /usr/ | mv /usr/include/tiffconf{,-n32}.h | ||
=== 64Bit === | === 64Bit === | ||
| Line 58: | Line 63: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" LDFLAGS="-L/usr/lib64" \ | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ | ||
USE_ARCH=64 LDFLAGS="-L/usr/lib64" \ | |||
./configure --prefix=/usr --libdir=/usr/lib64 && | |||
make | make | ||
| Line 66: | Line 71: | ||
make install && | make install && | ||
mv /usr/ | mv /usr/include/tiffconf{,-64}.h | ||
{{Stub-Header|tiffconf}} | |||
= Contents = | |||
{| style="text-align: left;" | |||
|-valign="top" | |||
! 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 | |||
|-valign="top" | |||
! Installed Libraries: | |||
| libtiff.{so,a} and libtiffxx.{so,a} | |||
|-valign="top" | |||
! Installed Directories: | |||
| /usr/share/doc/tiff-{{LibTIFF-Version}} | |||
|} | |||
=== Short Descriptions === | |||
{| style="text-align: left;" | |||
|-valign="top" | |||
! bmp2tiff | |||
| converts a Microsoft Windows Device Independent Bitmap image file to a TIFF image. | |||
|-valign="top" | |||
! fax2ps | |||
| converts a TIFF facsimile to compressed PostScript file. | |||
|-valign="top" | |||
! fax2tiff | |||
| creates a TIFF Class F fax file from raw fax data. | |||
|-valign="top" | |||
! gif2tiff | |||
| creates a TIFF file from a GIF87 format image file. | |||
|-valign="top" | |||
! pal2rgb | |||
| converts a palette color TIFF image to a full color image. | |||
|-valign="top" | |||
! ppm2tiff | |||
| creates a TIFF file from a PPM image file. | |||
|-valign="top" | |||
! ras2tiff | |||
| creates a TIFF file from a Sun rasterfile. | |||
|-valign="top" | |||
! raw2tiff | |||
| converts a raw byte sequence into TIFF. | |||
|-valign="top" | |||
! rgb2ycbcr | |||
| converts non-YCbCr TIFF images to YCbCr TIFF images. | |||
|-valign="top" | |||
! thumbnail | |||
| creates a TIFF file with thumbnail images. | |||
|-valign="top" | |||
! tiff2bw | |||
| converts a color TIFF image to grayscale. | |||
|-valign="top" | |||
! tiff2pdf | |||
| converts a TIFF image to a PDF document. | |||
|-valign="top" | |||
! tiff2ps | |||
| converts a TIFF image to a PostScript file. | |||
|-valign="top" | |||
! tiff2rgba | |||
| converts a wide variety of TIFF images into an RGBA TIFF image. | |||
|-valign="top" | |||
! tiffcmp | |||
| compares two TIFF files. | |||
|-valign="top" | |||
! tiffcp | |||
| copies (and possibly converts) a TIFF file. | |||
|-valign="top" | |||
! tiffdither | |||
| converts a grayscale image to bilevel using dithering. | |||
|-valign="top" | |||
! tiffdump | |||
| prints verbatim information about TIFF files. | |||
|-valign="top" | |||
! tiffgt | |||
| displays an image stored in a TIFF file in an X window. | |||
|-valign="top" | |||
! tiffinfo | |||
| prints information about TIFF files. | |||
|-valign="top" | |||
! tiffmedian | |||
| applies the median cut algorithm to data in a TIFF file. | |||
|-valign="top" | |||
! tiffset | |||
| sets the value of a TIFF header to a specified value. | |||
|-valign="top" | |||
! tiffsplit | |||
| splits a multi-image TIFF into single-image TIFF files. | |||
|-valign="top" | |||
! libtiff.{so,a} | |||
| contains the API functions used by the libtiff programs as well as other programs to read and write TIFF files. | |||
|-valign="top" | |||
! libtiffxx.{so,a} | |||
| 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
- libjpeg
- X Window System
- FreeGLUT or MesaLib (Which Provides a GLUT Library)
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. |