AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2017.10.05 15:55 "[Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.06 17:00 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Bob Friesenhahn
2017.10.06 08:24 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.05 16:13 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Bob Friesenhahn
2017.10.06 09:19 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.06 12:39 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Olivier Paquet
2017.10.06 13:27 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Bob Friesenhahn
2017.10.09 07:19 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.09 07:41 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Roger Leigh
2017.10.09 08:57 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.10 10:10 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.09 13:39 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Bob Friesenhahn
2017.10.10 12:07 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.10 12:22 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Even Rouault
2017.10.10 14:28 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Emmanuel Cosnard
2017.10.10 14:39 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Even Rouault
2017.10.10 17:35 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Roger Leigh

2017.10.10 17:35 "Re: [Tiff] Problem using libtiff in debug mode with visual studio 2010", by Roger Leigh

On 10/10/2017 14:28, Emmanuel Cosnard wrote:

Thank you very much Even, it's working perfect now! But it's not working anymore in release... Is there a way to make it work for both, or should I duplicate them, i.e one for debug and one for release?

Another approach is to use the CMake build:

mkdir build
cd build
cmake -G "Visual Studio 10 2010 [Win64]" \path\to\libtiff
cmake --build. -C Debug
cmake --build. -C Release
[ or build in Visual Studio or run msbuild yourself ]

Or

cmake -DCMAKE_BUILD_TYPE=(Debug|Release) \path\to\libtiff nmake

CMake supports multiple build systems, these are two possibilities which will work using msbuild or nmake. Debug and Release build options are set automatically with both generators, and you can add your own options as needed.

Regards,
Roger