Build DirectShowSource with LLVM
Hello. I followed the instructions for building DirectShowSource plugin : downloading baseclasses, adjusting the CMakefile in the plugin directory. It was less complex than expected...
It worked with Visual Studio, but when i'm building baseclasses with LLVM (17.0.6) (LLVM integrated with VS 2019, not IntelLLVM), it fails with an error in wxdebug.cpp.
And trying to use the .lib build with Visual Studio during the LLVM build is not working.
So... How are you able to build baseclasses with clang/LLVM ?
Edit:
The error i have:
1>wxdebug.cpp(1087,20): warning : ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 1>wxdebug.cpp(1093,16): warning : ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 1>wxdebug.cpp(1237,16): error : qualified reference to 'CDisp' is a constructor name rather than a type in this context 1>wxdebug.cpp(1237,21): warning : parentheses were disambiguated as redundant parentheses around declaration of variable named 'pp' [-Wvexing-parse] 1>wxdebug.cpp(1237,21): message : add a variable name to declare a 'CDisp::CDisp' initialized with 'pp' 1>wxdebug.cpp(1237,9): message : add enclosing parentheses to perform a function-style cast 1>wxdebug.cpp(1237,21): message : remove parentheses to silence this warning 1>wxdebug.cpp(1237,22): error : no matching constructor for initialization of 'CDisp::CDisp' 1>wxdebug.cpp(1130,8): message : candidate constructor not viable: requires single argument 'clsid', but no arguments were provided 1>./wxdebug.h(303,5): message : candidate constructor not viable: requires single argument 'd', but no arguments were provided 1>wxdebug.cpp(1143,8): message : candidate constructor not viable: requires single argument 'llTime', but no arguments were provided 1>wxdebug.cpp(1174,8): message : candidate constructor not viable: requires single argument 'pPin', but no arguments were provided 1>wxdebug.cpp(1203,8): message : candidate constructor not viable: requires single argument 'pUnk', but no arguments were provided 1>./wxdebug.h(298,7): message : candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided 1>wxdebug.cpp(1101,8): message : candidate constructor not viable: requires at least argument 'll', but no arguments were provided 1>wxdebug.cpp(1238,11): error : member reference type 'CDisp::CDisp' is not a pointer; did you mean to use '.'? 1>wxdebug.cpp(1238,13): error : no member named 'Release' in 'CDisp' 1>Génération du projet "BaseClasses.vcxproj" ends -- FAIL.