Using a non-cygwin environment with exiftool on Windows

Started by johnratiu5, May 12, 2021, 08:42:26 PM

Previous topic - Next topic

johnratiu5

I am trying to write a C++ app that uses Exiftool.

The docs (https://exiftool.org/cpp_exiftool/) specify to use Cygwin on Windows systems when compiling an app that uses cpp_exiftool, because it relies on linux headers (eg. unistd.h).
I already have MSVC installed and would rather not have to install Cygwin if I can help it.
Can I use it with Visual Studio? Would I be able to copy the linux headers from somewhere to my project to make it work?

I have already attempted to use https://github.com/Mihaylov93/ExifToolCppVS-Wrapper but cannot configure it to work correctly due to my C++ experience.
I also tried my best to search the forms for a solution but none were posted.

Any suggestions on getting exiftool to work on a Windows/MSVC environment?

Phil Harvey

I'm sorry but I can't help here.  This is certainly possible, but I would imagine that the threading will be different so some of the code will need patching.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).