- Home /
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
Hello, I faced such a problem, after installing the Facebook SDK, when building the build, the following 3 errors occur
Failed running C:\Users\ashen\Desktop\Unity\2019.3.13f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\ashen\Desktop\Unity\Light The Runes\Assets..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Users/ashen/Desktop/Unity/2019.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Users/ashen/Desktop/Unity/2019.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/ashen/Desktop/Unity/2019.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser=C:/Users/ashen/Desktop/Unity/2019.3.13f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="C:/Users/ashen/Desktop/Unity/Light The Runes/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/ashen/Desktop/Unity/Light The Runes/Temp/StagingArea/Il2Cpp/il2cppOutput"
stdout: Building libil2cpp.so with AndroidToolChain Output directory: C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a Cache directory: C:\Users\ashen\Desktop\Unity\Light The Runes\Library\il2cpp_android_armeabi-v7a\il2cpp_cache ObjectFiles: 209 of which compiled: 0 Total compilation time: 107 milliseconds. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\ashen\Desktop\Unity\2019.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\ashen\AppData\Local\Temp\tmp6228.tmp" -o "C:\Users\ashen\Desktop\Unity\Light The Runes\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_D1942CA11E5E17779331DD5D062164C0\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe
C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
� Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext) � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) � il2cpp.Program.Main(String[] args) stderr:
����ࠡ�⠭��� �᪫�祭��: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\ashen\Desktop\Unity\2019.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\ashen\AppData\Local\Temp\tmp6228.tmp" -o "C:\Users\ashen\Desktop\Unity\Light The Runes\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_D1942CA11E5E17779331DD5D062164C0\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe
C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition' C:\Users\ashen\Desktop\Unity\Light The Runes\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) � Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext) � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) � il2cpp.Program.Main(String[] args)
UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean) UnityEditorInternal.IL2CPPBuilder:Run() UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Exception: C:\Users\ashen\Desktop\Unity\2019.3.13f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly! UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at :0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at :0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at :0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at :0) UnityEditorInternal.IL2CPPBuilder.Run () (at :0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at :0) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Thanks in advance for your help!
Your answer
![](https://koobas.hobune.stream/wayback/20220613003520im_/https://answers.unity.com/themes/thub/images/avi.jpg)