ExifTool Forum

ExifTool => Developers => Topic started by: johnratiu5 on May 12, 2021, 08:42:26 PM

Title: Using a non-cygwin environment with exiftool on Windows
Post by: johnratiu5 on May 12, 2021, 08:42:26 PM
I am trying to write a C++ app that uses Exiftool.

The docs (https://exiftool.org/cpp_exiftool/ (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 (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?
Title: Re: Using a non-cygwin environment with exiftool on Windows
Post by: Phil Harvey on May 15, 2021, 06:21:36 AM
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