Replies: 1 comment
-
We should probably turn off CMAKE_SYSTEM_CROSSCOMPILING when running vcpkg on ARM64 (if vcpkg actually works on a ARM64 machine). actually: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
CMAKE_SYSTEM_PROCESSOR
is not set when building an ARM / ARM64 target, so configure does not work correctly with some libraries. (e.g opencv)For ARM64 Windows 10 (not UWP),
CMAKE_SYSTEM_PROCESSOR
andCMAKE_CROSSCOMPILING
is not set.Proposed solution
Set
CMAKE_SYSTEM_PROCESSOR
andCMAKE_CROSSCOMPILING
when building ARM / ARM64 target using toolchain file.I created a branch to check the operation.
CMAKE_SYSTEM_PROCESSOR
only for ARM / ARM64CMAKE_SYSTEM_NAME
andCMAKE_SYSTEM_VERSION
CMAKE_SYSTEM_PROCESSOR
andCMAKE_CROSSCOMPILING
)CMAKE_CROSSCOMPILING
for x86 / x64 UWPhttps://github.com/shibayan/vcpkg/tree/crosscompile
Additional context
Share the OpenCV 4 configure log. In the modified toolchains, the CPU is correctly detected.
command :
vcpkg install opencv4[core]:arm64-uwp
Configure log with master branch
Configure log with crosscompile branch
Rel #3036 #4907
Beta Was this translation helpful? Give feedback.
All reactions