Hello,
Today I tried to compile my game with IL2CPP option enabled with Unity 5.4.2p4, but it gave the following error. If I test it with an empty project everything is fine.
Was does this mean? Please help.
Failed running E:\Programme\Unity_5.4.2p4\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform=âAndroidâ --architecture=âARMv7â --configuration=âReleaseâ --outputpath=âE:\Dokumente\XXXXXXXX\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ --cachedirectory=âE:\Dokumente\XXXXXXXX\Assets..\Library\il2cpp_android_armeabi-v7a/il2cpp_cacheâ --additional-include-directories=âE:\Programme\Unity_5.4.2p4\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/includeâ --additional-include-directories=âE:\Programme\Unity_5.4.2p4\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/includeâ --additional-include-directories=âTemp/StagingArea\assets\bin\Data\Native\libil2cpp.soâ --tool-chain-path=âE:/AndroidNDK/android-ndk-r10eâ --extra-types.file=âE:\Programme\Unity_5.4.2p4\Editor\Data\il2cpp\il2cpp_default_extra_types.txtâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Networking.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\DOTween.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\DOTweenPro.dllâ --assembly=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dllâ --generatedcppdir=âE:\Dokumente\XXXXXXXX\Temp\StagingArea\Il2Cpp\il2cppOutputâ
stdout:
Building libil2cpp.so with AndroidToolChain.
Output directory: E:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: E:\Dokumente\XXXXXXXX\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
ObjectFiles: 458 of which compiled: 131
Time Compile: 120945 milliseconds Il2CppAttributes.cpp
Time Compile: 102251 milliseconds Bulk_Generics_14.cpp
Time Compile: 91386 milliseconds Bulk_mscorlib_1.cpp
Time Compile: 68513 milliseconds Il2CppInvokerTable.cpp
Time Compile: 68426 milliseconds Bulk_mscorlib_6.cpp
Time Compile: 56642 milliseconds GenericMethods0.cpp
Time Compile: 51714 milliseconds Bulk_Generics_5.cpp
Time Compile: 47910 milliseconds Bulk_UnityEngine_1.cpp
Time Compile: 47715 milliseconds Bulk_UnityEngine.Networking_0.cpp
Time Compile: 40880 milliseconds Bulk_Assembly-CSharp_4.cpp
Total compilation time: 261559 milliseconds.
il2cpp.exe didnât catch exception: Unity.IL2CPP.Building.BuilderFailedException: @âE:\Temp\tmp2F52.tmpâ -o âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ -Wl,-soname,libil2cpp.so -shared -Wl,âno-undefined -Wl,-z,noexecstack -Wl,âgc-sections -Wl,âbuild-id --sysroot âE:\AndroidNDK\android-ndk-r10e\platforms\android-9\arch-armâ -gcc-toolchain âE:\AndroidNDK\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64â -target armv7-none-linux-androideabi -L âE:\AndroidNDK\android-ndk-r10e\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7aâ -lgnustl_static -fuse-ld=gold
bei Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
bei Unity.IL2CPP.Building.CppProgramBuilder.Build()
bei il2cpp.Program.DoRun(String[ ] args)
bei il2cpp.Program.Run(String[ ] args)
bei il2cpp.Program.Main(String[ ] args)
stderr:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: @âE:\Temp\tmp2F52.tmpâ -o âE:\Dokumente\XXXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ -Wl,-soname,libil2cpp.so -shared -Wl,âno-undefined -Wl,-z,noexecstack -Wl,âgc-sections -Wl,âbuild-id --sysroot âE:\AndroidNDK\android-ndk-r10e\platforms\android-9\arch-armâ -gcc-toolchain âE:\AndroidNDK\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64â -target armv7-none-linux-androideabi -L âE:\AndroidNDK\android-ndk-r10e\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7aâ -lgnustl_static -fuse-ld=gold
bei Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
bei Unity.IL2CPP.Building.CppProgramBuilder.Build()
bei il2cpp.Program.DoRun(String[ ] args)
bei il2cpp.Program.Run(String[ ] args)
bei il2cpp.Program.Main(String[ ] args)
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:98) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List
1, Action1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:381) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection
1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:372)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:226)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132)
UnityEditor.HostView:OnGUI()
My project works with mono2. Anyway, some unity dev got any idea on this case? or anyone else?
We have a bug in the current 5.4 patch release where a build failure on Android wonât always show the complete error message. I suspect you are getting tripped up by that here.
It looks like this is a failure during the linker run, which usually means there is an extern static declaration in the C# code in the project which is for a native library on another platform (this happens with the Facebook SDK, for example). But to be sure, you should be able to go back to Unity 5.4.2p1 or earlier, where the compiler errors for Android/IL2CPP are shown correctly.
1 Like
JoshPeterson:
We have a bug in the current 5.4 patch release where a build failure on Android wonât always show the complete error message. I suspect you are getting tripped up by that here.
It looks like this is a failure during the linker run, which usually means there is an extern static declaration in the C# code in the project which is for a native library on another platform (this happens with the Facebook SDK, for example). But to be sure, you should be able to go back to Unity 5.4.2p1 or earlier, where the compiler errors for Android/IL2CPP are shown correctly.
I have tried it again with Unity 5.4.3f1 and got this error message:
Failed running E:\Programme\Unity_5.4.3f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform=âAndroidâ --architecture=âARMv7â --configuration=âReleaseâ --outputpath=âE:\Dokumente\XXXXXXX\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ --cachedirectory=âE:\Dokumente\XXXXXXX\Assets..\Library\il2cpp_android_armeabi-v7a/il2cpp_cacheâ --additional-include-directories=âE:\Programme\Unity_5.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/includeâ --additional-include-directories=âE:\Programme\Unity_5.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/includeâ --additional-include-directories=âTemp/StagingArea\assets\bin\Data\Native\libil2cpp.soâ --tool-chain-path=âE:/AndroidNDK/android-ndk-r10eâ --extra-types.file=âE:\Programme\Unity_5.4.3f1\Editor\Data\il2cpp\il2cpp_default_extra_types.txtâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Advertisements.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Networking.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\DOTween.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\DOTweenPro.dllâ --assembly=âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dllâ --generatedcppdir=âE:\Dokumente\XXXXXXX\Temp\StagingArea\Il2Cpp\il2cppOutputâ
stdout:
Building libil2cpp.so with AndroidToolChain.
Output directory: E:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: E:\Dokumente\XXXXXXX\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
ObjectFiles: 458 of which compiled: 458
Time Compile: 115245 milliseconds Il2CppAttributes.cpp
Time Compile: 98083 milliseconds Bulk_Generics_14.cpp
Time Compile: 84620 milliseconds Bulk_mscorlib_1.cpp
Time Compile: 66919 milliseconds Bulk_mscorlib_6.cpp
Time Compile: 63605 milliseconds GenericMethods0.cpp
Time Compile: 63023 milliseconds Il2CppInvokerTable.cpp
Time Compile: 51791 milliseconds Bulk_Generics_5.cpp
Time Compile: 45742 milliseconds Bulk_UnityEngine.Networking_0.cpp
Time Compile: 42170 milliseconds Bulk_System_1.cpp
Time Compile: 41006 milliseconds Il2CppMethodPointerTable.cpp
Total compilation time: 310127 milliseconds.
il2cpp.exe didnât catch exception: Unity.IL2CPP.Building.BuilderFailedException: @âE:\Temp\tmp294D.tmpâ -o âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ -Wl,-soname,libil2cpp.so -shared -Wl,âno-undefined -Wl,-z,noexecstack -Wl,âgc-sections -Wl,âbuild-id --sysroot âE:\AndroidNDK\android-ndk-r10e\platforms\android-9\arch-armâ -gcc-toolchain âE:\AndroidNDK\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64â -target armv7-none-linux-androideabi -L âE:\AndroidNDK\android-ndk-r10e\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7aâ -lgnustl_static -fuse-ld=gold
bei Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
bei Unity.IL2CPP.Building.CppProgramBuilder.Build()
bei il2cpp.Program.DoRun(String[ ] args)
bei il2cpp.Program.Run(String[ ] args)
bei il2cpp.Program.Main(String[ ] args)
stderr:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: @âE:\Temp\tmp294D.tmpâ -o âE:\Dokumente\XXXXXXX\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.soâ -Wl,-soname,libil2cpp.so -shared -Wl,âno-undefined -Wl,-z,noexecstack -Wl,âgc-sections -Wl,âbuild-id --sysroot âE:\AndroidNDK\android-ndk-r10e\platforms\android-9\arch-armâ -gcc-toolchain âE:\AndroidNDK\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64â -target armv7-none-linux-androideabi -L âE:\AndroidNDK\android-ndk-r10e\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7aâ -lgnustl_static -fuse-ld=gold
bei Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
bei Unity.IL2CPP.Building.CppProgramBuilder.Build()
bei il2cpp.Program.DoRun(String[ ] args)
bei il2cpp.Program.Run(String[ ] args)
bei il2cpp.Program.Main(String[ ] args)
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:98) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List
1, Action1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:381) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection
1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:372)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:226)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132)
UnityEditor.HostView:OnGUI()
I replaced the project name by âXXXXXXXâ. Any ideas what does this mean?
No, Iâm not sure what the problem is from this information. The bug that obscures the actual error message is still in 5.4.3f1. Can you try 5.4.2p1 or earlier? That might give us more insight into the actual problem.
I tried it now with Unity 5.4.0f3 and got this error message:
Exception: IL2CPP Linkage failed
UnityEditor.Android.AndroidIl2CppClangCompiler.CompileDynamicLibrary (System.String libraryFile, IEnumerable1 sourceFiles, IEnumerable
1 includePaths, IEnumerable1 libraries, IEnumerable
1 libraryPaths)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:223)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.PrepareIl2cppFiles (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidIl2CppPlatformProvider provider)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)
UnityEditor.HostView:OnGUI()
Failed running E:/AndroidNDK/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -o âTemp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debugâ -Wl,-soname,libil2cpp.so.debug --sysroot âE:/AndroidNDK/android-ndk-r10e/platforms/android-9/arch-armâ -gcc-toolchain âE:/AndroidNDK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64â -target armv7-none-linux-androideabi -shared -fuse-ld=gold -Wl,âno-undefined -Wl,-z,noexecstack -Wl,âgc-sections -Wl,âbuild-id âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Apple_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp-firstpass_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_3.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_4.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_5.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_6.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_7.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_8.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_9.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-UnityScript_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-UnityScript_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Boo.Lang_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Common_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween43_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween46_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTweenPro_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_10.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_11.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_12.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_13.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_14.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_15.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_16.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_17.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_18.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_3.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_4.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_5.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_6.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_7.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_8.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_9.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_LitJson_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mad2D_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_MadCommons_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_3.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_4.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_5.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_6.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_7.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Stores_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Core_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Tizen_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Advertisements_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Analytics_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Networking_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Networking_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Purchasing_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_3.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_4.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityScript.Lang_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_winrt_0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods0.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods1.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods2.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppAttributes.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCodeRegistration.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValuesTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppDelegateWrappersManagedToNativeTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericClassTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericInstDefinitions.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodDefinitions.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodPointerTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGuids.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppInvokerTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMarshalingFunctionsTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataRegistration.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataUsage.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMethodPointerTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppReversePInvokeWrapperTable.oâ âTemp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppTypeDefinitions.oâ -L âE:\Programme\Unity_5.4.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release/StaticLibs/armeabi-v7aâ -lil2cpp -lbdwgc -L âE:/AndroidNDK/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7aâ -lgnustl_static
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16785: error: undefined reference to âGADUSetAdLoaderCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16737: error: undefined reference to âGADUCreateAdLoaderâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16785: error: undefined reference to âGADUSetAdLoaderCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16768: error: undefined reference to âGADURequestNativeAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16322: error: undefined reference to âGADUCreateRequestâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16357: error: undefined reference to âGADUAddKeywordâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16340: error: undefined reference to âGADUAddTestDeviceâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16370: error: undefined reference to âGADUSetBirthdayâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16379: error: undefined reference to âGADUSetGenderâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16388: error: undefined reference to âGADUTagForChildDirectedTreatmentâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16426: error: undefined reference to âGADUSetRequestAgentâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16768: error: undefined reference to âGADURequestNativeAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16914: error: undefined reference to âGADUSetNativeCustomTemplateAdUnityClientâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16927: error: undefined reference to âGADUSetNativeCustomTemplateAdCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16474: error: undefined reference to âGADUCreateSmartBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16452: error: undefined reference to âGADUCreateBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16474: error: undefined reference to âGADUCreateSmartBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16452: error: undefined reference to âGADUCreateBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16512: error: undefined reference to âGADUSetBannerCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16548: error: undefined reference to âGADURequestBannerAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16548: error: undefined reference to âGADURequestBannerAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16530: error: undefined reference to âGADUShowBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16530: error: undefined reference to âGADUShowBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16521: error: undefined reference to âGADUHideBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16521: error: undefined reference to âGADUHideBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16539: error: undefined reference to âGADURemoveBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16539: error: undefined reference to âGADURemoveBannerViewâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16914: error: undefined reference to âGADUSetNativeCustomTemplateAdUnityClientâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16927: error: undefined reference to âGADUSetNativeCustomTemplateAdCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16890: error: undefined reference to âGADUNativeCustomTemplateAdAvailableAssetKeysâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16904: error: undefined reference to âGADUNativeCustomTemplateAdNumberOfAvailableAssetKeysâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16890: error: undefined reference to âGADUNativeCustomTemplateAdAvailableAssetKeysâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16904: error: undefined reference to âGADUNativeCustomTemplateAdNumberOfAvailableAssetKeysâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16794: error: undefined reference to âGADUNativeCustomTemplateAdTemplateIDâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16794: error: undefined reference to âGADUNativeCustomTemplateAdTemplateIDâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16816: error: undefined reference to âGADUNativeCustomTemplateAdImageAsBytesForKeyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16842: error: undefined reference to âGADUNativeCustomTemplateAdStringForKeyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16877: error: undefined reference to âGADUNativeCustomTemplateAdPerformClickOnAssetWithKeyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16877: error: undefined reference to âGADUNativeCustomTemplateAdPerformClickOnAssetWithKeyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16864: error: undefined reference to âGADUNativeCustomTemplateAdRecordImpressionâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16864: error: undefined reference to âGADUNativeCustomTemplateAdRecordImpressionâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16322: error: undefined reference to âGADUCreateRequestâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16340: error: undefined reference to âGADUAddTestDeviceâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16357: error: undefined reference to âGADUAddKeywordâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16370: error: undefined reference to âGADUSetBirthdayâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16379: error: undefined reference to âGADUSetGenderâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16388: error: undefined reference to âGADUTagForChildDirectedTreatmentâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16405: error: undefined reference to âGADUSetExtraâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16426: error: undefined reference to âGADUSetRequestAgentâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16561: error: undefined reference to âGADUCreateInterstitialâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16599: error: undefined reference to âGADUSetInterstitialCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16608: error: undefined reference to âGADUInterstitialReadyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16618: error: undefined reference to âGADUShowInterstitialâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16627: error: undefined reference to âGADURequestInterstitialâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16636: error: undefined reference to âGADUCreateRewardBasedVideoAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16650: error: undefined reference to âGADURewardBasedVideoAdReadyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16660: error: undefined reference to âGADUShowRewardBasedVideoAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16673: error: undefined reference to âGADURequestRewardBasedVideoAdâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16714: error: undefined reference to âGADUSetRewardBasedVideoAdCallbacksâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16561: error: undefined reference to âGADUCreateInterstitialâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16627: error: undefined reference to âGADURequestInterstitialâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16608: error: undefined reference to âGADUInterstitialReadyâ
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16618: error: undefined refere
Any ideas what does this mean? It seems like a google admob linking error?
This, this output is helpful! The real error message is:
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
This usually indicates that you have an extern static declaration for a native method named GADURelease in the C# script code in the project. The build system cannot find the Android native library which implements this method. With Mono this wonât matter, since these native methods are resolved at run time. IL2CPP is a bit more aggressive though, requiring these methods to exist at link time.
So, should this library exist on Android? If so, make sure that it is selected to build for Android in the Plugin Importer in Unity. If not, you will want to for #if statements in the C# code to remove these extern static declarations on Android.
JoshPeterson:
This, this output is helpful! The real error message is:
Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_4.cpp:16439: error: undefined reference to âGADUReleaseâ
This usually indicates that you have an extern static declaration for a native method named GADURelease in the C# script code in the project. The build system cannot find the Android native library which implements this method. With Mono this wonât matter, since these native methods are resolved at run time. IL2CPP is a bit more aggressive though, requiring these methods to exist at link time.
So, should this library exist on Android? If so, make sure that it is selected to build for Android in the Plugin Importer in Unity. If not, you will want to for #if statements in the C# code to remove these extern static declarations on Android.
Thank you for the answer. Where is the Plugin Importer in Unity? Could you explain it please.
You should see the Plugin Importer in the inspector in the Unity editor when you select the native plugin DLL in the project browser.
Thanks. This info helped me.