"checkit_tiff" is an incredibly fast conformance checker for baseline TIFFs (with various extensions), see http://andreas-romeyke.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
4.3 KiB

  1. Q: I got "fatal error: tiff.h: No such file or directory"
  2. A: You need an installed libtiff (Debian Jessie: libtiff5-dev)
  3. Q: "make" reports "usage: git rev-list [OPTION] …"
  4. A: the Makefile uses version.mk to build a version information for the tool.
  5. In that case you should comment out the lines in version.mk and set
  6. REPO_REVISION manually
  7. Q: I did not have "peg" and my config_dsl.grammar.c has zero size and there are
  8. compile errors.
  9. A: remove that file and use "git checkout config_dsl.grammar.c" to restore it
  10. from repository. Try to avoid "make distclean", because it erases the file.
  11. Q: My C-compiler reports error-messages like "cc: error: unrecognized command
  12. line option '-fsanitze=undefined'"
  13. A: You use an older GCC variant. Try 'SANITIZE="" make'
  14. Q: The compiler reports, that the TIFFTAG_IMAGELAYER is undeclared, why?
  15. A: You use an older version of the libtiff. If you cannot update, try this:
  16. 'CFLAGS="-DTIFFTAG_IMAGELAYER=34732" make', alternatively use the cmake.
  17. Q: How can I compile a windows version of your program?
  18. A: I have only tested creating Windows executables using the crosscompiler
  19. minGW under Debian Jessie. You need the installed mingw-w64-x86-32 packages,
  20. also you need to download and extract libtiff and libpcre. in
  21. libtiff-source-dir, call "./configure --host=i686-w64-mingw32
  22. --disable-win32-io --disable-shared -enable-static" and "make -j 4". Then in
  23. libpcre (pcre-8.37), call "./configure --host=i686-w64-mingw32
  24. --disable-win32-io --disable-shared -enable-static" and "make -j 4". Change
  25. into checkit-tiff/build, call:
  26. "cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake ../src/
  27. -DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
  28. -DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
  29. -DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
  30. -DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ ../src/" and "make -j 4"
  31. A2: I have only tested creating Windows executables using the crosscompiler
  32. minGW under Debian Jessie. You need the installed mingw-w64-x86-64 packages,
  33. also you need to download and extract libtiff and libpcre. in
  34. libtiff-source-dir, call "./configure --host=x86_64-w64-mingw32
  35. --disable-win32-io --disable-shared -enable-static" and "make -j 4". Then in
  36. libpcre (pcre-8.37), call "./configure --host=x86_64-w64-mingw32
  37. --disable-win32-io --disable-shared -enable-static" and "make -j 4". Change
  38. into checkit-tiff/build, call:
  39. "cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw64.cmake ../src/
  40. -DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
  41. -DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
  42. -DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
  43. -DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ ../src/" and "make -j 4"
  44. Q: How to compile to Javascript?
  45. A: Use emscripten, do same steps as above but with "emconfigure
  46. ./configure...". Compile checkit_tiff with ff. options:
  47. $> emcmake cmake
  48. -DCMAKE_C_COMPILER=$(which emcc)
  49. -DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a
  50. -DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/
  51. -DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a
  52. -DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ -DCMAKE_C_FLAGS="-Oz -s
  53. TOTAL_MEMORY=400000000" ../src/"
  54. $> make -j 4
  55. $> js checkit_tiff.js -c ../tiffs_should_pass/minimal_valid.tiff ../example_configs/cit_tiff6_baseline_SLUB.cfg
  56. Q: I tried to compile with 'CFLAGS="-DOLDTIFF" make' under Debian Wheezy,
  57. but I got the message "error: expected specifier-qualifier-list before
  58. 'uint64'", why?
  59. A: You are using the Debian-package libtiff4-dev, but at least libtiff5-dev is
  60. expected. The reason for the error was that the uint64 type is only defined
  61. in newer tiff.h files. Alternatively, use cmake.
  62. Q: Where are older TIFF specs?
  63. A: take a look to:
  64. TIFF 4: https://web.archive.org/web/20050323073243/http://palimpsest.stanford.edu/bytopic/imaging/std/tiff4.html
  65. TIFF 5: https://web.archive.org/web/20050323073243/http://palimpsest.stanford.edu/bytopic/imaging/std/tiff5.html
  66. Q: I am using cmake, but it fails with "CMake Error: your CXX compiler:
  67. "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER
  68. to a valid compiler path or name". But your program is C only, why I need a
  69. C++compiler then?
  70. A: cmake uses C++-compiler for its checks. Sorry, you need a C++ then.