tiff+ubuntu20.04安装

cd tiff-4.0.10
mkdir cmakeBuild
cd cmakeBuild
cmake ..
make
sudo make intstall

大体流程如上,详细操作及日志输出如下

目录

大体流程如上,详细操作及日志输出如下

1、下载压缩包

2、创建build文件夹

3、cmake

4、make

5、make install


1、下载压缩包

从官网下载压缩包:Index of /libtiff/

解压

2、创建build文件夹

里面已有名称为build的文件夹,故创建cmakeBuild文件夹来保存cmake结果

mkdir cmakeBuild
cd cmakeBuild

3、cmake

日志如下

~/tools/tiff-4.0.10/cmakeBuild$ cmake ..
-- Building tiff version 4.0.10
-- libtiff library version 5.4.0
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test C_FLAG_Wall
-- Performing Test C_FLAG_Wall - Success
-- Performing Test C_FLAG_Winline
-- Performing Test C_FLAG_Winline - Success
-- Performing Test C_FLAG_W
-- Performing Test C_FLAG_W - Success
-- Performing Test C_FLAG_Wformat_security
-- Performing Test C_FLAG_Wformat_security - Success
-- Performing Test C_FLAG_Wpointer_arith
-- Performing Test C_FLAG_Wpointer_arith - Success
-- Performing Test C_FLAG_Wdisabled_optimization
-- Performing Test C_FLAG_Wdisabled_optimization - Success
-- Performing Test C_FLAG_Wno_unknown_pragmas
-- Performing Test C_FLAG_Wno_unknown_pragmas - Success
-- Performing Test C_FLAG_Wdeclaration_after_statement
-- Performing Test C_FLAG_Wdeclaration_after_statement - Success
-- Performing Test C_FLAG_fstrict_aliasing
-- Performing Test C_FLAG_fstrict_aliasing - Success
-- Performing Test HAVE_LD_VERSION_SCRIPT
-- Performing Test HAVE_LD_VERSION_SCRIPT - Success
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Performing Test TIME_WITH_SYS_TIME
-- Performing Test TIME_WITH_SYS_TIME - Success
-- Performing Test TM_IN_SYS_TIME
-- Performing Test TM_IN_SYS_TIME - Success
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Looking for mmap
-- Looking for mmap - found
-- Looking for setmode
-- Looking for setmode - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for lfind
-- Looking for lfind - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- CMAKE_HOST_SYSTEM_PROCESSOR set to x86_64
-- HOST_FILLORDER set to FILLORDER_LSB2MSB
-- HOST_BIG_ENDIAN set to 0
-- HAVE_IEEEFP set to 1
-- Found ZLIB: /usr/local/lib/libzlibstatic.a (found version "1.2.11") 
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80") 
-- Looking for jbg_newlen
-- Looking for jbg_newlen - not found
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Found LibLZMA: /usr/lib/x86_64-linux-gnu/liblzma.so (found version "5.2.4") 
-- Looking for ZSTD_decompressStream in /usr/lib/x86_64-linux-gnu/libzstd.so
-- Looking for ZSTD_decompressStream in /usr/lib/x86_64-linux-gnu/libzstd.so - found
-- Found ZSTD library: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found WEBP library: /usr/lib/x86_64-linux-gnu/libwebp.so
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:589 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so  
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- Looking for GL/glu.h
-- Looking for GL/glu.h - found
-- Looking for GL/glut.h
-- Looking for GL/glut.h - found
-- Looking for GLUT/glut.h
-- Looking for GLUT/glut.h - not found
-- Looking for OpenGL/gl.h
-- Looking for OpenGL/gl.h - not found
-- Looking for OpenGL/glu.h
-- Looking for OpenGL/glu.h - not found
-- 
-- Libtiff is now configured for 
-- 
--   Installation directory:             /usr/local
--   Documentation directory:            /usr/local/share/doc/tiff
--   C compiler:                         /usr/bin/cc
--   C++ compiler:                       /usr/bin/c++
--   Build shared libraries:             ON
--   Enable linker symbol versioning:    TRUE
--   Support Microsoft Document Imaging: ON
--   Use win32 IO:                       FALSE
-- 
--  Support for internal codecs:
--   CCITT Group 3 & 4 algorithms:       ON
--   Macintosh PackBits algorithm:       ON
--   LZW algorithm:                      ON
--   ThunderScan 4-bit RLE algorithm:    ON
--   NeXT 2-bit RLE algorithm:           ON
--   LogLuv high dynamic range encoding: ON
-- 
--  Support for external codecs:
--   ZLIB support:                       ON (requested) TRUE (availability)
--   Pixar log-format algorithm:         ON (requested) TRUE (availability)
--   JPEG support:                       ON (requested) TRUE (availability)
--   Old JPEG support:                   ON (requested) TRUE (availability)
--   JPEG 8/12 bit dual mode:            ON (requested) FALSE (availability)
--   ISO JBIG support:                   ON (requested) TRUE (availability)
--   LZMA2 support:                      ON (requested) TRUE (availability)
--   ZSTD support:                       ON (requested) TRUE (availability)
--   WEBP support:                       ON (requested) TRUE (availability)
-- 
--   C++ support:                        ON (requested) TRUE (availability)
-- 
--   OpenGL support:                     TRUE
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/r****/tools/tiff-4.0.10/cmakeBuild

4、make

~/tools/tiff-4.0.10/cmakeBuild$ make
Scanning dependencies of target port
[  1%] Building C object port/CMakeFiles/port.dir/dummy.c.o
[  2%] Linking C static library libport.a
[  2%] Built target port
Scanning dependencies of target tiff
[  2%] Building C object libtiff/CMakeFiles/tiff.dir/tif_aux.c.o
[  3%] Building C object libtiff/CMakeFiles/tiff.dir/tif_close.c.o
[  4%] Building C object libtiff/CMakeFiles/tiff.dir/tif_codec.c.o
[  5%] Building C object libtiff/CMakeFiles/tiff.dir/tif_color.c.o
[  6%] Building C object libtiff/CMakeFiles/tiff.dir/tif_compress.c.o
[  7%] Building C object libtiff/CMakeFiles/tiff.dir/tif_dir.c.o
[  7%] Building C object libtiff/CMakeFiles/tiff.dir/tif_dirinfo.c.o
[  8%] Building C object libtiff/CMakeFiles/tiff.dir/tif_dirread.c.o
[  9%] Building C object libtiff/CMakeFiles/tiff.dir/tif_dirwrite.c.o
[ 10%] Building C object libtiff/CMakeFiles/tiff.dir/tif_dumpmode.c.o
[ 11%] Building C object libtiff/CMakeFiles/tiff.dir/tif_error.c.o
[ 11%] Building C object libtiff/CMakeFiles/tiff.dir/tif_extension.c.o
[ 12%] Building C object libtiff/CMakeFiles/tiff.dir/tif_fax3.c.o
[ 13%] Building C object libtiff/CMakeFiles/tiff.dir/tif_fax3sm.c.o
[ 14%] Building C object libtiff/CMakeFiles/tiff.dir/tif_flush.c.o
[ 15%] Building C object libtiff/CMakeFiles/tiff.dir/tif_getimage.c.o
[ 16%] Building C object libtiff/CMakeFiles/tiff.dir/tif_jbig.c.o
[ 16%] Building C object libtiff/CMakeFiles/tiff.dir/tif_jpeg.c.o
[ 17%] Building C object libtiff/CMakeFiles/tiff.dir/tif_jpeg_12.c.o
[ 18%] Building C object libtiff/CMakeFiles/tiff.dir/tif_luv.c.o
[ 19%] Building C object libtiff/CMakeFiles/tiff.dir/tif_lzma.c.o
[ 20%] Building C object libtiff/CMakeFiles/tiff.dir/tif_lzw.c.o
[ 21%] Building C object libtiff/CMakeFiles/tiff.dir/tif_next.c.o
[ 21%] Building C object libtiff/CMakeFiles/tiff.dir/tif_ojpeg.c.o
[ 22%] Building C object libtiff/CMakeFiles/tiff.dir/tif_open.c.o
[ 23%] Building C object libtiff/CMakeFiles/tiff.dir/tif_packbits.c.o
[ 24%] Building C object libtiff/CMakeFiles/tiff.dir/tif_pixarlog.c.o
[ 25%] Building C object libtiff/CMakeFiles/tiff.dir/tif_predict.c.o
[ 26%] Building C object libtiff/CMakeFiles/tiff.dir/tif_print.c.o
[ 26%] Building C object libtiff/CMakeFiles/tiff.dir/tif_read.c.o
[ 27%] Building C object libtiff/CMakeFiles/tiff.dir/tif_strip.c.o
[ 28%] Building C object libtiff/CMakeFiles/tiff.dir/tif_swab.c.o
[ 29%] Building C object libtiff/CMakeFiles/tiff.dir/tif_thunder.c.o
[ 30%] Building C object libtiff/CMakeFiles/tiff.dir/tif_tile.c.o
[ 30%] Building C object libtiff/CMakeFiles/tiff.dir/tif_version.c.o
[ 31%] Building C object libtiff/CMakeFiles/tiff.dir/tif_warning.c.o
[ 32%] Building C object libtiff/CMakeFiles/tiff.dir/tif_webp.c.o
[ 33%] Building C object libtiff/CMakeFiles/tiff.dir/tif_write.c.o
[ 34%] Building C object libtiff/CMakeFiles/tiff.dir/tif_zip.c.o
[ 35%] Building C object libtiff/CMakeFiles/tiff.dir/tif_zstd.c.o
[ 35%] Building C object libtiff/CMakeFiles/tiff.dir/tif_unix.c.o
[ 36%] Building C object libtiff/CMakeFiles/tiff.dir/__/port/dummy.c.o
[ 37%] Linking C shared library libtiff.so
[ 37%] Built target tiff
Scanning dependencies of target tiffxx
[ 38%] Building CXX object libtiff/CMakeFiles/tiffxx.dir/tif_stream.cxx.o
[ 39%] Linking CXX shared library libtiffxx.so
[ 39%] Built target tiffxx
Scanning dependencies of target tiffgt
[ 39%] Building C object tools/CMakeFiles/tiffgt.dir/tiffgt.c.o
[ 40%] Linking C executable tiffgt
[ 40%] Built target tiffgt
Scanning dependencies of target tiffsplit
[ 41%] Building C object tools/CMakeFiles/tiffsplit.dir/tiffsplit.c.o
[ 42%] Linking C executable tiffsplit
[ 42%] Built target tiffsplit
Scanning dependencies of target tiffset
[ 42%] Building C object tools/CMakeFiles/tiffset.dir/tiffset.c.o
[ 43%] Linking C executable tiffset
[ 43%] Built target tiffset
Scanning dependencies of target tiffmedian
[ 44%] Building C object tools/CMakeFiles/tiffmedian.dir/tiffmedian.c.o
[ 45%] Linking C executable tiffmedian
[ 45%] Built target tiffmedian
Scanning dependencies of target tiffdump
[ 46%] Building C object tools/CMakeFiles/tiffdump.dir/tiffdump.c.o
[ 47%] Linking C executable tiffdump
[ 47%] Built target tiffdump
Scanning dependencies of target tiffdither
[ 48%] Building C object tools/CMakeFiles/tiffdither.dir/tiffdither.c.o
[ 49%] Linking C executable tiffdither
[ 49%] Built target tiffdither
Scanning dependencies of target tiffcrop
[ 49%] Building C object tools/CMakeFiles/tiffcrop.dir/tiffcrop.c.o
[ 50%] Linking C executable tiffcrop
[ 50%] Built target tiffcrop
Scanning dependencies of target fax2ps
[ 51%] Building C object tools/CMakeFiles/fax2ps.dir/fax2ps.c.o
[ 52%] Linking C executable fax2ps
[ 52%] Built target fax2ps
Scanning dependencies of target fax2tiff
[ 53%] Building C object tools/CMakeFiles/fax2tiff.dir/fax2tiff.c.o
[ 53%] Linking C executable fax2tiff
[ 53%] Built target fax2tiff
Scanning dependencies of target tiff2rgba
[ 53%] Building C object tools/CMakeFiles/tiff2rgba.dir/tiff2rgba.c.o
[ 54%] Linking C executable tiff2rgba
[ 54%] Built target tiff2rgba
Scanning dependencies of target pal2rgb
[ 54%] Building C object tools/CMakeFiles/pal2rgb.dir/pal2rgb.c.o
[ 55%] Linking C executable pal2rgb
[ 55%] Built target pal2rgb
Scanning dependencies of target ppm2tiff
[ 56%] Building C object tools/CMakeFiles/ppm2tiff.dir/ppm2tiff.c.o
[ 57%] Linking C executable ppm2tiff
[ 57%] Built target ppm2tiff
Scanning dependencies of target raw2tiff
[ 57%] Building C object tools/CMakeFiles/raw2tiff.dir/raw2tiff.c.o
[ 58%] Linking C executable raw2tiff
[ 58%] Built target raw2tiff
Scanning dependencies of target thumbnail
[ 59%] Building C object tools/CMakeFiles/thumbnail.dir/thumbnail.c.o
[ 60%] Linking C executable thumbnail
[ 60%] Built target thumbnail
Scanning dependencies of target tiff2bw
[ 61%] Building C object tools/CMakeFiles/tiff2bw.dir/tiff2bw.c.o
[ 61%] Linking C executable tiff2bw
[ 61%] Built target tiff2bw
Scanning dependencies of target tiffinfo
[ 62%] Building C object tools/CMakeFiles/tiffinfo.dir/tiffinfo.c.o
[ 63%] Linking C executable tiffinfo
[ 63%] Built target tiffinfo
Scanning dependencies of target tiff2pdf
[ 64%] Building C object tools/CMakeFiles/tiff2pdf.dir/tiff2pdf.c.o
[ 65%] Linking C executable tiff2pdf
[ 65%] Built target tiff2pdf
Scanning dependencies of target tiff2ps
[ 66%] Building C object tools/CMakeFiles/tiff2ps.dir/tiff2ps.c.o
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c: In function ‘PSDataColorContig’:
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2481:33: note: in expansion of macro ‘PUTHEX’
     case 4: c = *cp++ + adjust; PUTHEX(c,fd);
                                 ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2482:5: note: here
     case 3: c = *cp++ + adjust; PUTHEX(c,fd);
     ^~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2482:33: note: in expansion of macro ‘PUTHEX’
     case 3: c = *cp++ + adjust; PUTHEX(c,fd);
                                 ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2483:5: note: here
     case 2: c = *cp++ + adjust; PUTHEX(c,fd);
     ^~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2483:33: note: in expansion of macro ‘PUTHEX’
     case 2: c = *cp++ + adjust; PUTHEX(c,fd);
                                 ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2484:5: note: here
     case 1: c = *cp++ + adjust; PUTHEX(c,fd);
     ^~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2493:24: note: in expansion of macro ‘PUTHEX’
     case 4: c = *cp++; PUTHEX(c,fd);
                        ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2494:5: note: here
     case 3: c = *cp++; PUTHEX(c,fd);
     ^~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2494:24: note: in expansion of macro ‘PUTHEX’
     case 3: c = *cp++; PUTHEX(c,fd);
                        ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2495:5: note: here
     case 2: c = *cp++; PUTHEX(c,fd);
     ^~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2435:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd)
                                                  ^~~~~~~~~~~~~~~~~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2495:24: note: in expansion of macro ‘PUTHEX’
     case 2: c = *cp++; PUTHEX(c,fd);
                        ^~~~~~
/home/r****/tools/tiff-4.0.10/tools/tiff2ps.c:2496:5: note: here
     case 1: c = *cp++; PUTHEX(c,fd);
     ^~~~
[ 67%] Linking C executable tiff2ps
[ 67%] Built target tiff2ps
Scanning dependencies of target tiffcmp
[ 68%] Building C object tools/CMakeFiles/tiffcmp.dir/tiffcmp.c.o
[ 69%] Linking C executable tiffcmp
[ 69%] Built target tiffcmp
Scanning dependencies of target rgb2ycbcr
[ 70%] Building C object tools/CMakeFiles/rgb2ycbcr.dir/rgb2ycbcr.c.o
[ 71%] Linking C executable rgb2ycbcr
[ 71%] Built target rgb2ycbcr
Scanning dependencies of target tiffcp
[ 72%] Building C object tools/CMakeFiles/tiffcp.dir/tiffcp.c.o
[ 73%] Linking C executable tiffcp
[ 73%] Built target tiffcp
Scanning dependencies of target ascii_tag
[ 74%] Building C object test/CMakeFiles/ascii_tag.dir/ascii_tag.c.o
[ 74%] Linking C executable ascii_tag
[ 74%] Built target ascii_tag
Scanning dependencies of target long_tag
[ 75%] Building C object test/CMakeFiles/long_tag.dir/long_tag.c.o
[ 76%] Building C object test/CMakeFiles/long_tag.dir/check_tag.c.o
[ 77%] Linking C executable long_tag
[ 77%] Built target long_tag
Scanning dependencies of target rewrite
[ 78%] Building C object test/CMakeFiles/rewrite.dir/rewrite_tag.c.o
[ 78%] Linking C executable rewrite
[ 78%] Built target rewrite
Scanning dependencies of target raw_decode
[ 79%] Building C object test/CMakeFiles/raw_decode.dir/raw_decode.c.o
[ 80%] Linking C executable raw_decode
[ 80%] Built target raw_decode
Scanning dependencies of target custom_dir
[ 81%] Building C object test/CMakeFiles/custom_dir.dir/custom_dir.c.o
[ 82%] Linking C executable custom_dir
[ 82%] Built target custom_dir
Scanning dependencies of target strip_rw
[ 82%] Building C object test/CMakeFiles/strip_rw.dir/strip_rw.c.o
[ 83%] Building C object test/CMakeFiles/strip_rw.dir/strip.c.o
[ 84%] Building C object test/CMakeFiles/strip_rw.dir/test_arrays.c.o
[ 85%] Linking C executable strip_rw
[ 85%] Built target strip_rw
Scanning dependencies of target short_tag
[ 86%] Building C object test/CMakeFiles/short_tag.dir/short_tag.c.o
[ 87%] Building C object test/CMakeFiles/short_tag.dir/check_tag.c.o
[ 88%] Linking C executable short_tag
[ 88%] Built target short_tag
Scanning dependencies of target addtiffo
[ 88%] Building C object contrib/addtiffo/CMakeFiles/addtiffo.dir/addtiffo.c.o
[ 89%] Building C object contrib/addtiffo/CMakeFiles/addtiffo.dir/tif_overview.c.o
[ 90%] Building C object contrib/addtiffo/CMakeFiles/addtiffo.dir/tif_ovrcache.c.o
[ 91%] Linking C executable addtiffo
[ 91%] Built target addtiffo
Scanning dependencies of target tiff-rgb
[ 92%] Building C object contrib/dbs/CMakeFiles/tiff-rgb.dir/tiff-rgb.c.o
[ 93%] Linking C executable tiff-rgb
[ 93%] Built target tiff-rgb
Scanning dependencies of target tiff-palette
[ 94%] Building C object contrib/dbs/CMakeFiles/tiff-palette.dir/tiff-palette.c.o
[ 95%] Linking C executable tiff-palette
[ 95%] Built target tiff-palette
Scanning dependencies of target tiff-grayscale
[ 96%] Building C object contrib/dbs/CMakeFiles/tiff-grayscale.dir/tiff-grayscale.c.o
[ 96%] Linking C executable tiff-grayscale
[ 96%] Built target tiff-grayscale
Scanning dependencies of target tiff-bi
[ 97%] Building C object contrib/dbs/CMakeFiles/tiff-bi.dir/tiff-bi.c.o
[ 98%] Linking C executable tiff-bi
[ 98%] Built target tiff-bi
Scanning dependencies of target iptcutil
[ 99%] Building C object contrib/iptcutil/CMakeFiles/iptcutil.dir/iptcutil.c.o
[100%] Linking C executable iptcutil
[100%] Built target iptcutil

5、make install

~/tools/tiff-4.0.10/cmakeBuild$ sudo make install
[sudo] password for r****: 
[  2%] Built target port
[ 37%] Built target tiff
[ 39%] Built target tiffxx
[ 40%] Built target tiffgt
[ 42%] Built target tiffsplit
[ 43%] Built target tiffset
[ 45%] Built target tiffmedian
[ 47%] Built target tiffdump
[ 49%] Built target tiffdither
[ 50%] Built target tiffcrop
[ 52%] Built target fax2ps
[ 53%] Built target fax2tiff
[ 54%] Built target tiff2rgba
[ 55%] Built target pal2rgb
[ 57%] Built target ppm2tiff
[ 58%] Built target raw2tiff
[ 60%] Built target thumbnail
[ 61%] Built target tiff2bw
[ 63%] Built target tiffinfo
[ 65%] Built target tiff2pdf
[ 67%] Built target tiff2ps
[ 69%] Built target tiffcmp
[ 71%] Built target rgb2ycbcr
[ 73%] Built target tiffcp
[ 74%] Built target ascii_tag
[ 77%] Built target long_tag
[ 78%] Built target rewrite
[ 80%] Built target raw_decode
[ 82%] Built target custom_dir
[ 85%] Built target strip_rw
[ 88%] Built target short_tag
[ 91%] Built target addtiffo
[ 93%] Built target tiff-rgb
[ 95%] Built target tiff-palette
[ 96%] Built target tiff-grayscale
[ 98%] Built target tiff-bi
[100%] Built target iptcutil
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/pkgconfig/libtiff-4.pc
-- Installing: /usr/local/lib/libtiff.so.5.4.0
-- Installing: /usr/local/lib/libtiff.so.5
-- Installing: /usr/local/lib/libtiff.so
-- Installing: /usr/local/include/tiff.h
-- Installing: /usr/local/include/tiffio.h
-- Installing: /usr/local/include/tiffvers.h
-- Installing: /usr/local/include/tiffconf.h
-- Installing: /usr/local/lib/libtiffxx.so.5.4.0
-- Installing: /usr/local/lib/libtiffxx.so.5
-- Set runtime path of "/usr/local/lib/libtiffxx.so.5.4.0" to ""
-- Installing: /usr/local/lib/libtiffxx.so
-- Installing: /usr/local/include/tiffio.hxx
-- Installing: /usr/local/bin/fax2ps
-- Set runtime path of "/usr/local/bin/fax2ps" to ""
-- Installing: /usr/local/bin/fax2tiff
-- Set runtime path of "/usr/local/bin/fax2tiff" to ""
-- Installing: /usr/local/bin/pal2rgb
-- Set runtime path of "/usr/local/bin/pal2rgb" to ""
-- Installing: /usr/local/bin/ppm2tiff
-- Set runtime path of "/usr/local/bin/ppm2tiff" to ""
-- Installing: /usr/local/bin/raw2tiff
-- Set runtime path of "/usr/local/bin/raw2tiff" to ""
-- Installing: /usr/local/bin/tiff2bw
-- Set runtime path of "/usr/local/bin/tiff2bw" to ""
-- Installing: /usr/local/bin/tiff2pdf
-- Set runtime path of "/usr/local/bin/tiff2pdf" to ""
-- Installing: /usr/local/bin/tiff2ps
-- Set runtime path of "/usr/local/bin/tiff2ps" to ""
-- Installing: /usr/local/bin/tiff2rgba
-- Set runtime path of "/usr/local/bin/tiff2rgba" to ""
-- Installing: /usr/local/bin/tiffcmp
-- Set runtime path of "/usr/local/bin/tiffcmp" to ""
-- Installing: /usr/local/bin/tiffcp
-- Set runtime path of "/usr/local/bin/tiffcp" to ""
-- Installing: /usr/local/bin/tiffcrop
-- Set runtime path of "/usr/local/bin/tiffcrop" to ""
-- Installing: /usr/local/bin/tiffdither
-- Set runtime path of "/usr/local/bin/tiffdither" to ""
-- Installing: /usr/local/bin/tiffdump
-- Set runtime path of "/usr/local/bin/tiffdump" to ""
-- Installing: /usr/local/bin/tiffinfo
-- Set runtime path of "/usr/local/bin/tiffinfo" to ""
-- Installing: /usr/local/bin/tiffmedian
-- Set runtime path of "/usr/local/bin/tiffmedian" to ""
-- Installing: /usr/local/bin/tiffset
-- Set runtime path of "/usr/local/bin/tiffset" to ""
-- Installing: /usr/local/bin/tiffsplit
-- Set runtime path of "/usr/local/bin/tiffsplit" to ""
-- Installing: /usr/local/bin/tiffgt
-- Set runtime path of "/usr/local/bin/tiffgt" to ""
-- Installing: /usr/local/share/man/man1/fax2ps.1
-- Installing: /usr/local/share/man/man1/fax2tiff.1
-- Installing: /usr/local/share/man/man1/pal2rgb.1
-- Installing: /usr/local/share/man/man1/ppm2tiff.1
-- Installing: /usr/local/share/man/man1/raw2tiff.1
-- Installing: /usr/local/share/man/man1/tiff2bw.1
-- Installing: /usr/local/share/man/man1/tiff2pdf.1
-- Installing: /usr/local/share/man/man1/tiff2ps.1
-- Installing: /usr/local/share/man/man1/tiff2rgba.1
-- Installing: /usr/local/share/man/man1/tiffcmp.1
-- Installing: /usr/local/share/man/man1/tiffcp.1
-- Installing: /usr/local/share/man/man1/tiffcrop.1
-- Installing: /usr/local/share/man/man1/tiffdither.1
-- Installing: /usr/local/share/man/man1/tiffdump.1
-- Installing: /usr/local/share/man/man1/tiffgt.1
-- Installing: /usr/local/share/man/man1/tiffinfo.1
-- Installing: /usr/local/share/man/man1/tiffmedian.1
-- Installing: /usr/local/share/man/man1/tiffset.1
-- Installing: /usr/local/share/man/man1/tiffsplit.1
-- Installing: /usr/local/share/man/man3/libtiff.3tiff
-- Installing: /usr/local/share/man/man3/TIFFbuffer.3tiff
-- Installing: /usr/local/share/man/man3/TIFFClose.3tiff
-- Installing: /usr/local/share/man/man3/TIFFcodec.3tiff
-- Installing: /usr/local/share/man/man3/TIFFcolor.3tiff
-- Installing: /usr/local/share/man/man3/TIFFDataWidth.3tiff
-- Installing: /usr/local/share/man/man3/TIFFError.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldDataType.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldName.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldPassCount.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldReadCount.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldTag.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFieldWriteCount.3tiff
-- Installing: /usr/local/share/man/man3/TIFFFlush.3tiff
-- Installing: /usr/local/share/man/man3/TIFFGetField.3tiff
-- Installing: /usr/local/share/man/man3/TIFFmemory.3tiff
-- Installing: /usr/local/share/man/man3/TIFFOpen.3tiff
-- Installing: /usr/local/share/man/man3/TIFFPrintDirectory.3tiff
-- Installing: /usr/local/share/man/man3/TIFFquery.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadDirectory.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadEncodedStrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadEncodedTile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadRawStrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadRawTile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadRGBAImage.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadRGBAStrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadRGBATile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadScanline.3tiff
-- Installing: /usr/local/share/man/man3/TIFFReadTile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFRGBAImage.3tiff
-- Installing: /usr/local/share/man/man3/TIFFSetDirectory.3tiff
-- Installing: /usr/local/share/man/man3/TIFFSetField.3tiff
-- Installing: /usr/local/share/man/man3/TIFFsize.3tiff
-- Installing: /usr/local/share/man/man3/TIFFstrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFswab.3tiff
-- Installing: /usr/local/share/man/man3/TIFFtile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWarning.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteDirectory.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteEncodedStrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteEncodedTile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteRawStrip.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteRawTile.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteScanline.3tiff
-- Installing: /usr/local/share/man/man3/TIFFWriteTile.3tiff
-- Installing: /usr/local/share/doc/tiff/html/addingtags.html
-- Installing: /usr/local/share/doc/tiff/html/bugs.html
-- Installing: /usr/local/share/doc/tiff/html/build.html
-- Installing: /usr/local/share/doc/tiff/html/contrib.html
-- Installing: /usr/local/share/doc/tiff/html/document.html
-- Installing: /usr/local/share/doc/tiff/html/images.html
-- Installing: /usr/local/share/doc/tiff/html/index.html
-- Installing: /usr/local/share/doc/tiff/html/internals.html
-- Installing: /usr/local/share/doc/tiff/html/intro.html
-- Installing: /usr/local/share/doc/tiff/html/libtiff.html
-- Installing: /usr/local/share/doc/tiff/html/misc.html
-- Installing: /usr/local/share/doc/tiff/html/support.html
-- Installing: /usr/local/share/doc/tiff/html/TIFFTechNote2.html
-- Installing: /usr/local/share/doc/tiff/html/tools.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta007.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta016.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta018.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta024.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta028.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta029.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta031.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta032.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta033.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta034.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta035.html
-- Installing: /usr/local/share/doc/tiff/html/v3.4beta036.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.1.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.2.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.3.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.4.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.5.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.6-beta.html
-- Installing: /usr/local/share/doc/tiff/html/v3.5.7.html
-- Installing: /usr/local/share/doc/tiff/html/v3.6.0.html
-- Installing: /usr/local/share/doc/tiff/html/v3.6.1.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.0alpha.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.0beta.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.0beta2.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.0.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.1.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.2.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.3.html
-- Installing: /usr/local/share/doc/tiff/html/v3.7.4.html
-- Installing: /usr/local/share/doc/tiff/html/v3.8.0.html
-- Installing: /usr/local/share/doc/tiff/html/v3.8.1.html
-- Installing: /usr/local/share/doc/tiff/html/v3.8.2.html
-- Installing: /usr/local/share/doc/tiff/html/v3.9.0beta.html
-- Installing: /usr/local/share/doc/tiff/html/v3.9.1.html
-- Installing: /usr/local/share/doc/tiff/html/v3.9.2.html
-- Installing: /usr/local/share/doc/tiff/html/v4.0.0.html
-- Installing: /usr/local/share/doc/tiff/html/v4.0.1.html
-- Installing: /usr/local/share/doc/tiff/html/v4.0.2.html
-- Installing: /usr/local/share/doc/tiff/html/v4.0.3.html
-- Installing: /usr/local/share/doc/tiff/html/v4.0.4beta.html
-- Installing: /usr/local/share/doc/tiff/html/images/back.gif
-- Installing: /usr/local/share/doc/tiff/html/images/bali.jpg
-- Installing: /usr/local/share/doc/tiff/html/images/cat.gif
-- Installing: /usr/local/share/doc/tiff/html/images/cover.jpg
-- Installing: /usr/local/share/doc/tiff/html/images/cramps.gif
-- Installing: /usr/local/share/doc/tiff/html/images/dave.gif
-- Installing: /usr/local/share/doc/tiff/html/images/info.gif
-- Installing: /usr/local/share/doc/tiff/html/images/jello.jpg
-- Installing: /usr/local/share/doc/tiff/html/images/jim.gif
-- Installing: /usr/local/share/doc/tiff/html/images/note.gif
-- Installing: /usr/local/share/doc/tiff/html/images/oxford.gif
-- Installing: /usr/local/share/doc/tiff/html/images/quad.jpg
-- Installing: /usr/local/share/doc/tiff/html/images/ring.gif
-- Installing: /usr/local/share/doc/tiff/html/images/smallliz.jpg
-- Installing: /usr/local/share/doc/tiff/html/images/strike.gif
-- Installing: /usr/local/share/doc/tiff/html/images/warning.gif
-- Installing: /usr/local/share/doc/tiff/html/man/index.html
-- Installing: /usr/local/share/doc/tiff/html/man/libtiff.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFbuffer.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFClose.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFcodec.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFcolor.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFDataWidth.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFError.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldDataType.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldName.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldPassCount.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldReadCount.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldTag.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFieldWriteCount.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFFlush.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFGetField.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFmemory.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFOpen.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFPrintDirectory.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFquery.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadDirectory.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadEncodedStrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadEncodedTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadRawStrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadRawTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadRGBAImage.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadRGBAStrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadRGBATile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadScanline.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFReadTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFRGBAImage.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFSetDirectory.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFSetField.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFsize.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFstrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFswab.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFtile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWarning.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteDirectory.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteEncodedStrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteEncodedTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteRawStrip.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteRawTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteScanline.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/TIFFWriteTile.3tiff.html
-- Installing: /usr/local/share/doc/tiff/html/man/fax2ps.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/fax2tiff.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/pal2rgb.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/ppm2tiff.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/raw2tiff.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiff2bw.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiff2pdf.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiff2ps.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiff2rgba.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffcmp.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffcp.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffcrop.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffdither.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffdump.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffgt.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffinfo.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffmedian.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffset.1.html
-- Installing: /usr/local/share/doc/tiff/html/man/tiffsplit.1.html

参考:编译报错:undefined reference to `TIFFReadDirectory@LIBTIFF_4.0‘解决方法_wongHome的博客-CSDN博客

你可能感兴趣的:(install,运维,linux,c++)