"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.

37 lines
1.5 KiB

  1. # You need an installed cmake
  2. ########################################################
  3. # compiling under linux
  4. ########################################################
  5. mkdir build
  6. cd build
  7. cmake ../src/
  8. make
  9. ########################################################
  10. # alternatively for windows crosscompiling using mingw
  11. ########################################################
  12. #mkdir build
  13. #cd build
  14. #cmake -DCMAKE_TOOLCHAIN_FILE=../src/toolchain-mingw32.cmake -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/
  15. #make
  16. #
  17. ########################################################
  18. # examples/options to set specific C-compiler or Flags
  19. ########################################################
  20. # cmake ../src/ -DCMAKE_C_COMPILER=$(which gcc)
  21. # cmake ../src/ -DCMAKE_C_FLAGS="-O0 -p -g"
  22. # cmake ../src/ -DCMAKE_C_COMPILER=$(which clang-3.5) -DCMAKE_C_FLAGS="-Oz -pedantic"
  23. #
  24. ########################################################
  25. # example SANITIZE options
  26. ########################################################
  27. #
  28. # SANITIZE with clang++
  29. # cmake ../src/ -DCMAKE_C_COMPILER=/usr/bin/clang-3.5 -DCMAKE_C_FLAGS="-O0 -g -fsanitize=address -fno-omit-frame-pointer"
  30. # make
  31. # ASAN_OPTIONS=detect_leaks=1 ./checkit_tiff ...
  32. #
  33. # SANITIZE with gcc
  34. # cmake ../src/ -DCMAKE_C_FLAGS="-Og -g -fsanitize=address -fno-omit-frame-pointer"
  35. # make
  36. # ASAN_OPTIONS=detect_leaks=1 ./checkit_tiff ...