- Home /
I am trying to build an app with IL2CPP and I'm getting this error: "Failed running C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe"
Failed running C:\Program Files\Unity\Hub\Editor\2019.3.1f1\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="ARM64" --configuration="Release" --outputpath="C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so" --cachedirectory="C:\Users\x\Desktop\Field-of-View-master\Start file\Assets..\Library\il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.3.1f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/x/Desktop/Field-of-View-master/Start file/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/x/Desktop/Field-of-View-master/Start file/Temp/StagingArea/Il2Cpp/il2cppOutput"
stdout: Building libil2cpp.so with AndroidToolChain Output directory: C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a Cache directory: C:\Users\x\Desktop\Field-of-View-master\Start file\Library\il2cpp_android_arm64-v8a\il2cpp_cache il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31093:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C' bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 )NULL, /hidden argument/NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13535:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 ' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 ' for 1st argument IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 __x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * y1, const RuntimeMethod* method); ^ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31122:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C' bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 )NULL, /hidden argument/NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13535:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D ' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 ' for 1st argument IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * __y1, const RuntimeMethod* method); ^ 2 errors generated.
Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++" Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D_linux -DSTDC_FORMAT_MACROS -DTARGET_ARM64 -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\external\xxHash" -I"C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target aarch64-linux-android21 -DANDROID_API_=21 -march=armv8-a -Wno-unused-value "C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp" -o "C:/Users/x/Desktop/Field-of-View-master/Start file/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D2087F0FB5F7DFE977D6CFD64FB17991.o"
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) at il2cpp.Program.Main(String[] args) stderr:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31093:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C' bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 )NULL, /hidden argument/NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13535:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 ' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 ' for 1st argument IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 __x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * y1, const RuntimeMethod* method); ^ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:31122:14: error: no matching function for call to 'Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C' bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 )NULL, /hidden argument/NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp:13535:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D ' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 ' for 1st argument IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * __y1, const RuntimeMethod* method); ^ 2 errors generated.
Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++" Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D_linux -DSTDC_FORMAT_MACROS -DTARGET_ARM64 -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.1f1\Editor\Data\il2cpp\external\xxHash" -I"C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target aarch64-linux-android21 -DANDROID_API_=21 -march=armv8-a -Wno-unused-value "C:\Users\x\Desktop\Field-of-View-master\Start file\Temp\StagingArea\Il2Cpp\il2cppOutput\PlayMaker2.cpp" -o "C:/Users/x/Desktop/Field-of-View-master/Start file/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D2087F0FB5F7DFE977D6CFD64FB17991.o"
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) at 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)
This looks like a bug on the Unity side. Can you submit a bug report along with this project?
Answer by mix_corp · Mar 05, 2020 at 06:57 PM
C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe path right click on il2cpp.exe -> properties -> compatiblity -> select run this program as an administrator and change this setting to all user -> apply -> ok
Worker for me. Thanks, mix_corp! You saved me a lot of time.
I Have the same issue but for me its didn't work
Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2020.1.4f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe', CommandLine='-out="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/tempStrip" -x="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml" -x=C:/Users/anton/AppData/Local/Temp/tmp78d98538.tmp -x=C:/Users/anton/AppData/Local/Temp/tmp460c0f75.tmp -x="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml" -d="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed" --include-unity-root-assembly="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll" --include-unity-root-assembly="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="E:/Soft/Unity projects/squereRunGame/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.Advertisements.dll" --include-unity-root-assembly="E:/Soft/Unity
Your answer
Follow this Question
Related Questions
Unity 5.5 ArgumentException: Set Method not found for 'interactable' 2 Answers
Can't builder IOS in Unity5.0f4 Exception:UnusedBytecodeStripper2.exe 1 Answer
Problem with Playmaker Send Remote Event 1 Answer
How to move to specific point with character controller 1 Answer
iTween - Mesh is not moving 1 Answer