Select Page

Ratkaisu

Ongelma johtuu yleensä puuttuvasta libtinfo5-paketista ja/tai siitä, että /usr/bin/python osoittaa python3:een, jolloin Unity 3D yrittää käyttää Pythonin versiota 3.*, vaikka olisi tarkoitus käyttää Pythonin versiota 2.7.

sudo apt install libtinfo5 && sudo rm /usr/bin/python && sudo ln -s /usr/bin/python2.7 /usr/bin/python

Mikäli ongelma jatkuu, kannattaa kokeilla varmistaa, että kaikki Unityn vaatimat dependenssit eli vaadittavat kirjastot ja/tai apuohjelmat ovat järjestelmässä asennettuna CheckDependencies.sh -skriptillä, joka löytyy käyttöohjeiden kera täältä.

Ongelma

Exception: /home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/build/deploy/netcoreapp3.0/il2cpp did not run properly!
Failed running "/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/build/deploy/netcoreapp3.0/il2cpp" --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="/home/admin/Documents/Unity Projects/Heippa/Assets /../Temp/StagingArea/Data/Native/build.bc" --cachedirectory="/home/admin/Documents/Unity Projects/Heippa/Assets/../Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --baselib-directory="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/Variations/nondevelopment" --avoid-dynamic-library-copy --emit-method-map --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsNativeModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/Tools/MapFileParser/MapFileParser" --directory="/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/Managed" --generatedcppdir="/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/il2cppOutput"  
stdout:
Running il2cpp.exe in server GC mode.
Building build.bc with EmscriptenToolChain
    Output directory: /home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/Native
    Cache directory: /home/admin/Documents/Unity Projects/Heippa/Library/il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Invocation was: Executable: /usr/bin/python2
Arguments: -E "/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1  -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DNDEBUG -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/xxHash" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/baselib/Include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp/pch" -I"/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/il2cppOutput" "/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp" -o "/home/admin/Documents/Unity Projects/Heippa/Library/il2cpp_cache/1358ACBC44A5DA3E00399D1682205FAF.o"
   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 210
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 135
   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/CompilationDriver.cs:line 64
   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 86
   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 71
   at il2cpp.Program.Main(String[] args) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 36
stderr:
Unhandled exception. Unity.IL2CPP.Building.BuilderFailedException: /home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Invocation was: Executable: /usr/bin/python2
Arguments: -E "/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1  -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DNDEBUG -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/xxHash" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/baselib/Include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include" -I"/home/admin/Unity/Hub/Editor/2020.1.9f1/Editor/Data/il2cpp/libil2cpp/pch" -I"/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/il2cppOutput" "/home/admin/Documents/Unity Projects/Heippa/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp" -o "/home/admin/Documents/Unity Projects/Heippa/Library/il2cpp_cache/1358ACBC44A5DA3E00399D1682205FAF.o"
   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 210
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 135
   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp<message truncated>