2010.08.24 12:31 "Re: [Tiff] TIFFWriteScanline works on Windows and Linux but fails on Mac", by Dennis_Mølhom_Hansen
I inserted printf and modified some TiffError messages in the Libtiff code, and it turned out that these changes did not show anywhere when my program failed. After searching for at few hours i found that the built-in Libtiff library in OpenCV (libhighgui.dylib) was the cause of my headache. I knew OpenCV uses Libtiff but I do not use the build-in version since it does not provide the full functionality of Libtiff. I reinstalled OpenCV2.1.0 and it solved the issue (it might just have been the order of the included dependencies that was causing trouble),
I'm now able to write LWZ compressed images.
Thanks, you have all been very helpfull!
2010/8/23 Olivier Paquet <firstname.lastname@example.org>:
2010/8/23 Dennis Mølhom Hansen <email@example.com>:
I get the following message when TIFFWriteScanline fails: "compression support is not configured"
I can't se any issues in the configure output, but I will check again.
Any ideas on how to configure compression support for LZW?
It's enabled by default and you need to explicitely disable it with --disable-lzw. Check the summary at the end of configure to make sure of its status.
Also double check that you're using the libtiff that you think you're using. Adding a printf to code I thought I was running has been an eye opener for me a few times in the past :-)