If I venture to build owwebcam on MinGW, I get these results first:

C:\mingw\bin\g++.exe   -Dowwebcam_EXPORTS   -g
-IL:\wengophone-2.1\libs\owutil
-IL:\wengophone-2.1\libs\3rdparty\ffmpeg\include\ffmpeg
-IL:\wengophone-2.1\
...
L:\wengophone-2.1\libs\owwebcam\src\WebcamDriver.cpp: In static member
function `static void WebcamDriver::apiInitialize()':
L:\wengophone-2.1\libs\owwebcam\src\WebcamDriver.cpp:40: error:
`CoInitialize' was not declared in this scope
...

Including <objbase.h> fixes the compile for MinGW. The other option is
to disable the COM functions on MinGW.

I also noticed that libs/owwebcam/CMakeLists.txt includes some DirectX
sources only for MSVC. I don't think this will be trivial on MinGW.

Any suggestions whether or not to include the COM and/or DirectX on MinGW?
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to