compileOF.sh: 'DEVPROPKEY' does not name a type

UPDATE: It seems to be related to the include of:

C:/mysys64/mingw32/i686-w64-migw32/include/setupapi.h

It does this running compileOF.sf from a MinGW32 shell, or while compiling OF for an example project using make in MYSYS32,MYSYS64,MinGW32,MinGW64, and the same errors show up in Qt Creator using the default build kit with its own mingw32 or a custom kit pointing to either mysys[32/64]/mingw32.

So without denying my lack of knowledge, it would be my guess that there’s nothing wrong with any copy of setupapi.h?

C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1879:119: error: 'DEVPROPKEY' does not name a type WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyW(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, const DEVPROPKEY *PropertyKey, DEVPROPTYPE *PropertyType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize, DWORD Flags); ^ C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1879:144: error: 'DEVPROPTYPE' has not been declared WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyW(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, const DEVPROPKEY *PropertyKey, DEVPROPTYPE *PropertyType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize, DWORD Flags); ^ C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1880:116: error: 'DEVPROPKEY' has not been declared WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyKeys(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DEVPROPKEY *PropertyKeyArray, DWORD PropertyKeyCount, PDWORD RequiredPropertyKeyCount, DWORD Flags);

I get the same result whether compiling oF from msys2 using either the targeted version from the mainpage or the current cloned github version.
Everything leading up to this module seems to compile normally. There is the occasional warning about unused variables but nothing related to directshow and no errors .

install_dependencies.sh executes as normal.

I’m running Windows 7, and Directshow works fine on other programs.

What do I need to check next?

Also, Ive tried googling the errors, but how do I know what program throws the error code so I can look them up? Are they from make, or Gcc++?

Thanks in advance for any help.

Here is the log:

Compiling /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/utils/ofXml.cpp
/mingw32/bin/g++ -g3  -std=gnu++14 -DUNICODE -D_UNICODE -Wall -fexceptions -march=native -mtune=native -DPOCO_STATIC -mms-bitfields -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include -I/c/Toast/Hotprog/openFrameworks/libs/fmodex/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include/GLFW -I/c/Toast/Hotprog/openFrameworks/libs/glu/include -I/c/Toast/Hotprog/openFrameworks/libs/json/include -I/c/Toast/Hotprog/openFrameworks/libs/kiss/include -I/c/Toast/Hotprog/openFrameworks/libs/rtAudio/include -I/c/Toast/Hotprog/openFrameworks/libs/tess2/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include/utf8 -I/c/Toast/Hotprog/openFrameworks/libs/videoInput/include -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/3d -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/app -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/communication -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/events -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/gl -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/graphics -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/math -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/sound -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/types -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/utils -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video -DDEBUG  -MMD -MP -MF /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/utils/ofXml.d -MT/c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/utils/ofXml.o -o /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/utils/ofXml.o -c /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/utils/ofXml.cpp
Compiling /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp
/mingw32/bin/g++ -g3  -std=gnu++14 -DUNICODE -D_UNICODE -Wall -fexceptions -march=native -mtune=native -DPOCO_STATIC -mms-bitfields -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include -I/c/Toast/Hotprog/openFrameworks/libs/fmodex/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include/GLFW -I/c/Toast/Hotprog/openFrameworks/libs/glu/include -I/c/Toast/Hotprog/openFrameworks/libs/json/include -I/c/Toast/Hotprog/openFrameworks/libs/kiss/include -I/c/Toast/Hotprog/openFrameworks/libs/rtAudio/include -I/c/Toast/Hotprog/openFrameworks/libs/tess2/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include/utf8 -I/c/Toast/Hotprog/openFrameworks/libs/videoInput/include -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/3d -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/app -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/communication -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/events -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/gl -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/graphics -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/math -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/sound -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/types -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/utils -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video -DDEBUG  -MMD -MP -MF /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowGrabber.d -MT/c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowGrabber.o -o /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowGrabber.o -c /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:40:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(lib,"Strmiids.lib")
 ^
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
                                                                                     ^
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
                                                                                           ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
                                                                                     ^
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
                                                                                           ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp: In member function 'virtual std::vector<ofVideoDevice> ofDirectShowGrabber::listDevices() const':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp:121:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i = 0; i < devList.size(); i++){
                          ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h: At global scope:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:188:12: warning: 'comInitCount' defined but not used [-Wunused-variable]
 static int comInitCount = 0;
            ^
Compiling /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp
/mingw32/bin/g++ -g3  -std=gnu++14 -DUNICODE -D_UNICODE -Wall -fexceptions -march=native -mtune=native -DPOCO_STATIC -mms-bitfields -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include -I/c/Toast/Hotprog/openFrameworks/libs/fmodex/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include -I/c/Toast/Hotprog/openFrameworks/libs/glfw/include/GLFW -I/c/Toast/Hotprog/openFrameworks/libs/glu/include -I/c/Toast/Hotprog/openFrameworks/libs/json/include -I/c/Toast/Hotprog/openFrameworks/libs/kiss/include -I/c/Toast/Hotprog/openFrameworks/libs/rtAudio/include -I/c/Toast/Hotprog/openFrameworks/libs/tess2/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include -I/c/Toast/Hotprog/openFrameworks/libs/utf8cpp/include/utf8 -I/c/Toast/Hotprog/openFrameworks/libs/videoInput/include -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/3d -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/app -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/communication -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/events -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/gl -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/graphics -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/math -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/sound -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/types -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/utils -I/c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video -DDEBUG  -MMD -MP -MF /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowPlayer.d -MT/c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowPlayer.o -o /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowPlayer.o -c /c/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofVideoGrabber.h:26,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/ofMain.h:96,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.h:6,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:40:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(lib,"Strmiids.lib")
 ^
In file included from C:/msys64/mingw32/i686-w64-mingw32/include/dshow.h:40:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:11:
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16503:2: warning: #warning COM interfaces layout in this header has not been verified. [-Wcpp]
 #warning COM interfaces layout in this header has not been verified.
  ^
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16504:2: warning: #warning COM interfaces with incorrect layout may not work at all. [-Wcpp]
 #warning COM interfaces with incorrect layout may not work at all.
  ^
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16533:2: warning: #warning COM interfaces layout in this header has not been verified. [-Wcpp]
 #warning COM interfaces layout in this header has not been verified.
  ^
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16534:2: warning: #warning COM interfaces with incorrect layout may not work at all. [-Wcpp]
 #warning COM interfaces with incorrect layout may not work at all.
  ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:12:0: warning: ignoring #pragma include_alias  [-Wunknown-pragmas]
 #pragma include_alias( "dxtrans.h", "qedit.h" )
 ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/communication/ofSerial.h:15:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/ofMain.h:38,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.h:6,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1:
C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1879:119: error: 'DEVPROPKEY' does not name a type
   WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyW(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, const DEVPROPKEY *PropertyKey, DEVPROPTYPE *PropertyType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize, DWORD Flags);
                                                                                                                       ^
C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1879:144: error: 'DEVPROPTYPE' has not been declared
   WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyW(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, const DEVPROPKEY *PropertyKey, DEVPROPTYPE *PropertyType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize, DWORD Flags);
                                                                                                                                                ^
C:/msys64/mingw32/i686-w64-mingw32/include/setupapi.h:1880:116: error: 'DEVPROPKEY' has not been declared
   WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyKeys(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DEVPROPKEY *PropertyKeyArray, DWORD PropertyKeyCount, PDWORD RequiredPropertyKeyCount, DWORD Flags);
                                                                                                                    ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofVideoGrabber.h:26,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/ofMain.h:96,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.h:6,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
                                                                                     ^
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
                                                                                           ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofVideoGrabber.h:26,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/ofMain.h:96,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.h:6,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
                                                                                     ^
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
   bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
                                                                                           ^
In file included from C:/msys64/mingw32/i686-w64-mingw32/include/dshow.h:40:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:11:
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16505:95: note: #pragma message: Interface IAMAsyncReaderTimestampScaling has unverified layout.
C:/msys64/mingw32/i686-w64-mingw32/include/strmif.h:16535:81: note: #pragma message: Interface IAMPluginControl has unverified layout.
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp: In member function 'virtual HRESULT DirectShowVideo::SampleCB(double, IMediaSample*)':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:417:123: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
                 printf("ERROR: SampleCB() - buffer sizes do not match %d %d\n", latestBufferLength, pixels.getTotalBytes());
                                                                                                                           ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp: In member function 'void DirectShowVideo::update()':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:702:18: warning: unused variable 'timeoutMs' [-Wunused-variable]
             long timeoutMs = 2000;
                  ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp: In member function 'bool DirectShowVideo::needsRBSwap(ofPixelFormat, ofPixelFormat)':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:815:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    (srcFormat == OF_PIXELS_BGR || srcFormat == OF_PIXELS_BGRA) && (dstFormat == OF_PIXELS_RGB || dstFormat == OF_PIXELS_RGBA) ||
                                                                ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp: In member function 'void DirectShowVideo::processPixels(ofPixels&, ofPixels&)':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:820:8: warning: unused variable 'format' [-Wunused-variable]
   auto format = src.getPixelFormat();
        ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp: In member function 'ofPixels& DirectShowVideo::getPixels()':
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_GRAY' not handled in switch [-Wswitch]
    switch (pixelFormat) {
           ^
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_GRAY_ALPHA' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_RGB565' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_NV12' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_NV21' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_YV12' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_I420' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_YUY2' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_UYVY' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_Y' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_U' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_V' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_UV' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_VU' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_NUM_FORMATS' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_UNKNOWN' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1011:11: warning: enumeration value 'OF_PIXELS_NATIVE' not handled in switch [-Wswitch]
C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1009:12: warning: unused variable 'hr' [-Wunused-variable]
    HRESULT hr = middleSample->GetPointer(&ptrBuffer);
            ^
In file included from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofVideoGrabber.h:26,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/ofMain.h:96,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.h:6,
                 from C:/Toast/Hotprog/openFrameworks/libs/openFrameworks/video/ofDirectShowPlayer.cpp:1:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h: At global scope:
C:/Toast/Hotprog/openFrameworks/libs/videoInput/include/videoInput.h:188:12: warning: 'comInitCount' defined but not used [-Wunused-variable]
 static int comInitCount = 0;
            ^
make[1]: *** [makefileCommon/compile.core.mk:241: /c/Toast/Hotprog/openFrameworks/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/video/ofDirectShowPlayer.o] Error 1
make: *** [makefileCommon/compile.core.mk:213: Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

I have installed the latest Windows SDK to make sure my Directshow headers are up to date.

A bit late to the game, but oxillo fixed this recently: https://github.com/openframeworks/openFrameworks/pull/5184 just cherrypick their commit and you should be good to go.