NormandErwan / ArucoUnity

Bring augmented reality to Unity by tracking Aruco markers in real time.
https://normanderwan.github.io/ArucoUnity/
BSD 3-Clause "New" or "Revised" License
204 stars 38 forks source link

Any plan to support ARM64 ? #42

Open BeLe07 opened 3 years ago

BeLe07 commented 3 years ago

Hi, Thanks for this code allowing quick implementation and testing of ArUco. Do you have any plan to support ARM64 or a workaround ? When generating the projet using "Visual Studio 16 2019" -A ARM64, I'm annoyed with the inclusion of emmintrin.h which is dedicated to X86/X64, being able to get the NEON alternative directly would be great :)

patrickmemestar commented 3 years ago

I can't believe i've only now noticed what you're doing. I will let you know if i figure something out

BeLe07 commented 3 years ago

I can't believe i've only now noticed what you're doing. I will let you know if i figure something out

Ok, thanks :)

patrickmemestar commented 3 years ago

Okay so, I've found out that when you'd like to build for UWP (which should be ARM64 inclusive). The command should look something like this :

CMake -DCMAKE_INSTALL_PREFIX=install/ -G Visual Studio 16 2019 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10 ../../3rdparty/opencv_contrib/

However no matter which commands i run. i still get the following error: image

BeLe07 commented 3 years ago

I switched OpenCV to 4.5.1 to be use to get a version tested with the recent compilers.

Using CMake 3.19.7, VS 16.9.0 with command line: CMake -DCMAKE_INSTALL_PREFIX=install/ -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 ../../3rdparty/opencv_contrib/ I got a project configured for X64 only.

Specifying -A ARM64 gave me a project for ARM64. Entering the command line: cmake --build . --config Release fails with a MSBUILD error MBS1009 telling that the project doesn't exist.

Opening the solution with VS to build it gave me the same emmintrin.h error.

vincenzocivale commented 1 year ago

Please help, there is someone who knows how to solve the problem. I need it to complete a University assignment