sankyprabhu / ARToolKit

Free and Open Source Augmented FReality Library
49 stars 19 forks source link

Can't Build for Unity Android ARM64 IL2CPP #4

Open gravyday opened 3 years ago

gravyday commented 3 years ago

Hi, I was wondering if the Unity library has ever been successfully built for 64-bit Android devices. I ran into the following error in ARToolkit5 and I just confirmed that it still exists in Artoolkit6/+.

Test case: Start with a new Unity3D app. Install ArToolkit+ plugin. This will build for ARMv7 using Mono, but then switch to IL2CPP as the Scripting Backend under Project Settings. The project no longer builds (even before adding ARM64 option).

It seems as if this codebase is no longer maintained, but my app has thousands of users with NFT markers created in Artoolkit5 (SkinMotion.com), and we are trying desperately to add support for 64-bit Android phones. Please let me know if there is any trick to building in Unity using IL2CPP. Thanks!

https://stackoverflow.com/questions/65853741/unity-android-build-works-in-mono-but-fails-in-il2cpp-due-to-undefined-reference

gravyday commented 3 years ago

Update: Can't build for iOS either. Just a basic Unity project with this package installed results in 80 linker errors. Has anyone successfully used ARToolkit since 2016?

huli1984 commented 2 years ago

Hi. I've been struggling with artoolkit since a while too I think you need to redesign the inner plugin, building it in Android Studio (or indipendent way with gradle) using the classes.jar containing the Unity classes you need copying it from the ilcpp folder inside Unity editor directories. I'll try to explain it better within a few time