libarcore_camera_utility.so does not have 64bit version so my program gets an error when trying to reference this file:
DllNotFoundException: Unable to load DLL 'arcore_camera_utility': The specified module could not be found. at UnityARInterface.ARCoreInterface.TextureReader_create (Int32 format, Int32 width, Int32 height, Boolean keepAspectRatio) [0x00000] in at UnityARInterface.ARCoreInterface+c__Iterator0.MoveNext () [0x00000] in at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in :0
VERSIONS USED
Unity: 2017.4.32f1
ARCore SDK for Unity: 1.12
Device manufacturer, model, and O/S: Google pixel1
STEPS TO REPRODUCE THE ISSUE
Include ARCore unity package in project
build for il2cpp arm64
WORKAROUNDS (IF ANY)
Build the 64bit library yourself with NDK-BUILD
To compile arcore_camera_utility for the arm 64bit target-
1.) Create a new directory called 'arcorelibrary', then a subdirectory called 'jni'
SPECIFIC ISSUE ENCOUNTERED
libarcore_camera_utility.so does not have 64bit version so my program gets an error when trying to reference this file:
VERSIONS USED
STEPS TO REPRODUCE THE ISSUE
WORKAROUNDS (IF ANY)
Build the 64bit library yourself with NDK-BUILD
To compile arcore_camera_utility for the arm 64bit target-
1.) Create a new directory called 'arcorelibrary', then a subdirectory called 'jni'
2.) Download this zip: https://github.com/google-ar/arcore-unity-sdk/blob/master/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip
3.) get the three .cc files and the three .h files and place them in the jni directory
4.) Create a file called 'Android.mk' and place it in the jni directory, with the following contents:
5.) Create a file called 'Application.mk' and place it in the jni directory, with the following contents:
6.) Download Android NDK and unzip somewhere (The version you need depends on which Unity version you're using) https://developer.android.com/ndk/downloads/older_releases.html
7.) Open a terminal or powershell, go to the root directory (arcorelibrary) of your project
8.) Create a path to where ever you unzipped Android NDK (Powershell example):
9.) Run: