Hello,
I'm developing AR project under Unity targeting mobile platform (Android/iOS). I have no issue compiling to iOS with IL2CPP scripting backend and to Android with Mono.
However, I would like to switch to IL2CPP for Android but EasyAR (2.2) doesn't compile with IL2CPP
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"AppData\Local\Temp\tmp705D.tmp" -o "Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4B4F8ABC2EC287290E677C3020A99D69\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "E:\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "E:\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "E:\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="E:\UnityProjects\hackeo2018\hackeo-app-v2\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4B4F8ABC2EC287290E677C3020A99D69\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe
clang++.exe: warning: argument unused during compilation: '-pie'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarRegisterLogFunc_m1747642220':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28882: undefined reference to `ezarRegisterLogFunc'
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28882: undefined reference to `ezarRegisterLogFunc'
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28882: undefined reference to `ezarRegisterLogFunc'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarNativeInit_m1734653537':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28916: undefined reference to `ezarNativeInit'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarSetAssetPath_m17138576':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28864: undefined reference to `ezarSetAssetPath'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarNativeInit_m1734653537':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28916: undefined reference to `ezarNativeInit'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarSetAssetPath_m17138576':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28864: undefined reference to `ezarSetAssetPath'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarOnResume_m3394444964':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28892: undefined reference to `ezarOnResume'
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28892: undefined reference to `ezarOnResume'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarOnPause_m1242519696':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28902: undefined reference to `ezarOnPause'
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28902: undefined reference to `ezarOnPause'
Library\il2cpp_android_armeabi-v7a\il2cpp_cache\4D5C6C7D9240A67F09DE2FF20187CD5F.o: In function `EngineNativeIOS_ezarSetAssetPath_m17138576':
Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_EasyAR.Unity_0.cpp:28864: undefined reference to `ezarSetAssetPath'
... and some more.
It seems it tried to compile with iOS specific code ?
I even tried with the x64 version of EasyAR with the same result. Is EasyAR not compatible for IL2CPP for Android for now ? And will it be in future release. Or Am I doing something wrong ?
Thanks for reading.