Browse Source

- updated FAQ, removed old libTIFF related entries

tags/v0.2.1
Andreas Romeyke 3 years ago
parent
commit
4fad528264
1 changed files with 1 additions and 26 deletions
  1. +1
    -26
      FAQ

+ 1
- 26
FAQ View File

@@ -1,6 +1,3 @@
Q: I got "fatal error: tiff.h: No such file or directory"
A: You need an installed libtiff (Debian Jessie: libtiff5-dev)

Q: "make" reports "usage: git rev-list [OPTION] …"
A: the Makefile uses version.mk to build a version information for the tool.
In that case you should comment out the lines in version.mk and set
@@ -15,35 +12,23 @@ Q: My C-compiler reports error-messages like "cc: error: unrecognized command
line option '-fsanitze=undefined'"
A: You use an older GCC variant. Try 'SANITIZE="" make'

Q: The compiler reports, that the TIFFTAG_IMAGELAYER is undeclared, why?
A: You use an older version of the libtiff. If you cannot update, try this:
'CFLAGS="-DTIFFTAG_IMAGELAYER=34732" make', alternatively use the cmake.

Q: How can I compile a windows version of your program?
A: I have only tested creating Windows executables using the crosscompiler
minGW under Debian Jessie. You need the installed mingw-w64-x86-32 packages,
also you need to download and extract libtiff and libpcre. in
libtiff-source-dir, call "./configure --host=i686-w64-mingw32
--disable-win32-io --disable-shared -enable-static" and "make -j 4". Then in
also you need to download and extract libpcre. in
libpcre (pcre-8.37), call "./configure --host=i686-w64-mingw32
--disable-win32-io --disable-shared -enable-static" and "make -j 4". Change
into checkit-tiff/build, call:
"cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake ../src/
-DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
-DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
-DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
-DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ ../src/" and "make -j 4"
A2: I have only tested creating Windows executables using the crosscompiler
minGW under Debian Jessie. You need the installed mingw-w64-x86-64 packages,
also you need to download and extract libtiff and libpcre. in
libtiff-source-dir, call "./configure --host=x86_64-w64-mingw32
--disable-win32-io --disable-shared -enable-static" and "make -j 4". Then in
libpcre (pcre-8.37), call "./configure --host=x86_64-w64-mingw32
--disable-win32-io --disable-shared -enable-static" and "make -j 4". Change
into checkit-tiff/build, call:
"cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw64.cmake ../src/
-DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
-DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
-DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
-DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ ../src/" and "make -j 4"

@@ -52,22 +37,12 @@ A: Use emscripten, do same steps as above but with "emconfigure
./configure...". Compile checkit_tiff with ff. options:
$> emcmake cmake
-DCMAKE_C_COMPILER=$(which emcc)
-DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
-DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
-DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
-DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ -DCMAKE_C_FLAGS="-Oz -s
TOTAL_MEMORY=400000000" ../src/"
$> make -j 4
$> js checkit_tiff.js -c ../tiffs_should_pass/minimal_valid.tiff ../example_configs/cit_tiff6_baseline_SLUB.cfg


Q: I tried to compile with 'CFLAGS="-DOLDTIFF" make' under Debian Wheezy,
but I got the message "error: expected specifier-qualifier-list before
'uint64'", why?
A: You are using the Debian-package libtiff4-dev, but at least libtiff5-dev is
expected. The reason for the error was that the uint64 type is only defined
in newer tiff.h files. Alternatively, use cmake.

Q: Where are older TIFF specs?
A: take a look to:
TIFF 4: https://web.archive.org/web/20050323073243/http://palimpsest.stanford.edu/bytopic/imaging/std/tiff4.html


Loading…
Cancel
Save