2021.04.17 21:12 "Re: [Tiff] Using libtiff in Windows runners in Github CI", by Roger Leigh
libtiff is available directly with vcpkg, the package name is “tiff”.
Run “./vcpkg install tiff:x64-windows” (for example).
Thanks. That got me one step further, but my compile step (gcc from Strawberry Perl) now fails because it can't find tiffio.h.
Do I need an extra option to get vcpkg to install the headers?
Is it possible to compile with gcc against libraries compiled with vc? Do I just need some extra linker options?
You need to add the vcpkg install tree include and lib dirs to your include and linker path?
If you’re using CMake, vcpkg provides dedicated toolchain files for this purpose, which add all the necessary paths (it’s in the vcpkg documentation). If you’re not using CMake, then you’ll need to add them just as you would for any other third-party libraries and headers for your particular build system.
As for library compatibility, I’ll have to pass. I always use vcpkg for MSVC only. If the calling convention is the same, I can’t see why it wouldn’t work, but you might find you drag in an incompatible runtime if you’re linking statically. But I’m not certain. If in doubt, try it and find out. If you’re using GCC, might be easier to use mingw64 and build everything against that if it’s not already packaged.