Open Jihadist opened 2 years ago
conan profile show default
conan profile show <profile>
[settings] arch=x86_64 arch_build=x86_64 build_type=RelWithDebInfo compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows
conanfile:
[requires] opencv/4.5.5 [options] opencv:contrib=True opencv:with_ffmpeg=False opencv:dnn=False opencv:with_ade=False
https://pastebin.com/CGpQecB7
Full log contains a log of warnings, so here I copied only errors:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(502,17): error C2059: syntax error: '/' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt_math.h(44,13): warning C5105: macro expansion producing 'defined' has undefined behavior (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\jpc\jpc_t1cod.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(529,40): warning C4094: untagged 'struct' declared no symbols (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(530,17): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(531,13): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(533,9): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] jpc_t1dec.c C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt_math.h(963,5): warning C5105: macro expansion producing 'defined' has undefined behavior (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\jpc\jpc_t1cod.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(534,5): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\jpc\jpc_t1cod.c(266,43): warning C4244: '=': conversion from 'double' to 'float', possible loss of data [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(665,16): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(950,16): error C2079: 'varValue' uses undefined struct 'tagVARIANT' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\jpc\jpc_t1cod.c(169): warning C4715: 'JPC_NOMINALGAIN': not all control paths return a value [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(319,24): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\wtypes.h(745): message : in expansion of macro '_VARIANT_BOOL' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(319,24): error C2059: syntax error: '/' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(378,37): error C2371: 'pvarVal': redefinition; different basic types (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(510): message : see declaration of 'pvarVal' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(379,9): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(380,5): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(383,3): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj] jpc_t1enc.c C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\propidlbase.h(384,1): error C2059: syntax error: '}' (compiling source file C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\source_subfolder\src\libjasper\base\jas_stream.c) [C:\Users\user\.conan\data\jasper\2.0.33\_\_\build\9f888969d9ade0b786ab53f2f759d639521e97c4\build_subfolder\source_subfolder\src\libjasper\libjasper.vcxproj]
Unlikely an issue of the recipe itself.
https://stackoverflow.com/questions/65402366/c5105-and-other-compiler-warnings-when-building-with-github-actions-winsdk-10 https://github.com/microsoft/vcpkg/issues/15035
I don't use msvc preview
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
conanfile:
Logs (Include/Attach if Applicable)
https://pastebin.com/CGpQecB7
Full log contains a log of warnings, so here I copied only errors: