Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opencv4] Build error on arm64-windows-static #44310

Open
QuentinCraft opened this issue Mar 11, 2025 · 2 comments
Open

[opencv4] Build error on arm64-windows-static #44310

QuentinCraft opened this issue Mar 11, 2025 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@QuentinCraft
Copy link

QuentinCraft commented Mar 11, 2025

Hi,

I've got an issue when I tried to install opencv4 on an GitHub's Action (arm64) :

Package: opencv4[calib3d,core,directml,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,msmf,png,quirc,thread,tiff,webp,win32ui]:arm64-windows-static@4.10.0#5

Host Environment

  • Compiler: MSVC 19.43.34808.0
  • vcpkg-tool version: 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
    vcpkg-scripts version: e40d24c 2025-03-10 (14 hours ago)

To Reproduce

vcpkg install opencv4

Failure logs

Downloading https://github.com/opencv/opencv/commit/96d6395a6dccb9554bc2f83105f87ebd071d37fa.patch -> 96d6395a6dccb9554bc2f83105f87ebd071d37fa.patch
Successfully downloaded 96d6395a6dccb9554bc2f83105f87ebd071d37fa.patch
Downloading https://github.com/opencv/opencv_contrib/commit/b236c71c2f8d983403c35a0cea8bec0432a4b0fe.patch -> b236c71c2f8d983403c35a0cea8bec0432a4b0fe.patch
Successfully downloaded b236c71c2f8d983403c35a0cea8bec0432a4b0fe.patch
Downloading https://github.com/opencv/opencv/archive/4.10.0.tar.gz -> opencv-opencv-4.10.0.tar.gz
Successfully downloaded opencv-opencv-4.10.0.tar.gz
-- Extracting source D:/a/grabcut_image_segementation/grabcut_image_segementation/vcpkg/downloads/opencv-opencv-4.10.0.tar.gz
-- Applying patch 0001-disable-downloading.patch
-- Applying patch 0002-install-options.patch
-- Applying patch 0003-force-package-requirements.patch
-- Applying patch 0004-fix-eigen.patch
-- Applying patch 0005-fix-policy-CMP0057.patch
-- Applying patch 0006-fix-uwp.patch
-- Applying patch 0008-devendor-quirc.patch
-- Applying patch 0009-fix-protobuf.patch
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: while trying to match the argument list '(uint16x4_t)'
[3/548] C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_MALLOC_H=1 -DHAVE_WIN32_ALIGNED_MALLOC=1 -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\alloc.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\alloc.cpp
FAILED: modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_MALLOC_H=1 -DHAVE_WIN32_ALIGNED_MALLOC=1 -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\alloc.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\alloc.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: while trying to match the argument list '(uint16x4_t)'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: while trying to match the argument list '(uint16x4_t)'
[4/548] C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\arithm.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\arithm.cpp
FAILED: modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\arithm.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\arithm.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: while trying to match the argument list '(uint16x4_t)'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: while trying to match the argument list '(uint16x4_t)'
[5/548] C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\array.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\array.cpp
FAILED: modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\array.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\array.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: while trying to match the argument list '(uint16x4_t)'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: while trying to match the argument list '(uint16x4_t)'
[6/548] C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\arithm.dispatch.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\arithm.dispatch.cpp
FAILED: modules/core/CMakeFiles/opencv_core.dir/src/arithm.dispatch.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\arm64\cl.exe   /TP -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\include -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg\modules\core -ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\installed\arm64-windows-static\include -external:ID:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\arm64-windows-static-dbg -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /MP   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /D _ARM64_DISTINCT_NEON_TYPES /Oi  /fp:precise /FS   /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819  /MTd /Z7 /Ob0 /Od /RTC1   -std:c++17 -MTd /showIncludes /Fomodules\core\CMakeFiles\opencv_core.dir\src\arithm.dispatch.cpp.obj /Fdlib\opencv_core4d.pdb /FS -c D:\a\grabcut_image_segementation\grabcut_image_segementation\vcpkg\buildtrees\opencv4\src\4.10.0-f7d96793eb.clean\modules\core\src\arithm.dispatch.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(254): note: while trying to match the argument list '(uint16x4_t)'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): error C2664: '__n64 __uint64x1_t_to_n64(uint64x1_t)': cannot convert argument 1 from 'uint16x4_t' to 'uint64x1_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\arm64_neon.h(1957): note: see declaration of '__uint64x1_t_to_n64'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\wchar.h(381): note: while trying to match the argument list '(uint16x4_t)'
ninja: build stopped: subcommand failed.
@Cheney-W Cheney-W added the category:port-bug The issue is with a library, which is something the port should already support label Mar 12, 2025
@Cheney-W
Copy link
Contributor

This issue could be reproduced with the latest vcpkg.

@Cheney-W Cheney-W added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Mar 12, 2025
@Cheney-W
Copy link
Contributor

These issues are caused by a change to <wchar.h>, which makes it fail to compile successfully under certain compiler settings. A vcpkg member has notified the Windows SDK owners, but no practical workaround has been found. They stated that this will be fixed in the next Windows SDK release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants