Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Ubuntu updated cant build no more

Discussion in 'Linux' started by LearningNot, Mar 16, 2016.

  1. LearningNot

    LearningNot

    Joined:
    Sep 30, 2015
    Posts:
    106
    After todays update i cant build projects no more Webgl atm am testing others

    i am on Ubuntu 14.04.4 LTS
    anybody same problem?

    I found soultion to run unity as sudo for building WebGL
     
    Last edited: Mar 16, 2016
  2. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Please don't do this - it's a great way to mess up the permissions in your project (and home!) folders.

    What's the actual build problem you're having?
     
  3. LearningNot

    LearningNot

    Joined:
    Sep 30, 2015
    Posts:
    106
    i got like list of errors but now after todays update of ubuntu i dont get errors at all i get stucked on building

    it seys buldidng sceen 0: 1

    i checked premissions in my unity project folder and nothing changed probbaly cuz i dident edit anything i just sudo to unity to build
     
  4. LearningNot

    LearningNot

    Joined:
    Sep 30, 2015
    Posts:
    106
    ok on 5.4 i can bild linux windows build no problem but web gl gives me this errors
    TESTED ISENT PROJECT RELATED JUST MADED A SIMPLE PROJECT WITH 1BOX GOT ERRORS AGAIN

    Failed running /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe --convert-to-cpp --output-format=Compact --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="/home/me/Documents/UnityProjects/Again/Assets /../Temp/StagingArea/Data/Native/UserAssembly.bc" --cachedirectory="/home/me/Documents/UnityProjects/Again/Assets/../Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --linker-flags="-Oz -s NO_EXIT_RUNTIME=1" --additional-include-directories="/home/me/Documents/UnityProjects/Again/Assets/../Temp/StagingArea/Data/Native/UserAssembly.bc" --extra-types.file="/opt/Unity/Editor/Data/il2cpp/il2cpp_default_extra_types.txt" --assembly="/home/me/Documents/UnityProjects/Again/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly="/home/me/Documents/UnityProjects/Again/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --assembly="/home/me/Documents/UnityProjects/Again/Temp/StagingArea/Data/Managed/UnityEngine.dll" --generatedcppdir="/home/me/Documents/UnityProjects/Again/Temp/StagingArea/Data/il2cppOutput"

    stdout:
    stderr:

    Unhandled Exception:
    System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

    Unhandled Exception:
    System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

    Unhandled Exception:
    System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Don't know how to get python path on current platform!
    at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0
    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:98)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:350)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:213)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:139)
    UnityEditor.HostView:OnGUI()

    Exception: /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:100)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:350)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:213)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:139)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:392)
    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 /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:177)
    UnityEditor.HostView:OnGUI()
     
  5. jfullernz

    jfullernz

    Joined:
    Jul 2, 2013
    Posts:
    13
    Same problem here. Fresh install of unity 5.4.0b10 under linux ubuntu 14.04.
    After running the failing command from CLI, I do notice that it's relying on WINE to run the command for Failed running /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe which is then looking for python.exe and it isn't installed.
    Could be the same issue with wine installed libs, or the fact that its looking for unity editor installed under wine, which is not the case with the native linux package. In the ext3 folders which wine would class as z: the folders exist up until Emscripten_Win which is non-existant, hence the file not found issue.

    Unhandled Exception:
    System.ComponentModel.Win32Exception: ApplicationName='"Z:\opt\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"', CommandLine='"Z:\opt\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -std=c++11 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -I"\home\jason\Documents\New Unity Project\Temp\StagingArea\Data\Native\UserAssembly.bc" -I"Z:\opt\Unity\Editor\Data\il2cpp\libil2cpp" -I"Z:\opt\Unity\Editor\Data\il2cpp\external\boehmgc\include" -I"\home\jason\Documents\New Unity Project\Temp\StagingArea\Data\il2cppOutput" "\home\jason\Documents\New Unity Project\Temp\StagingArea\Data\il2cppOutput\Bulk_mscorlib_1.cpp" -o "\home\jason\Documents\New Unity Project\Library\il2cpp_cache\objectfiles\719348C94E5B2DE03520CC0976ADA3EA.o"', CurrentDirectory='', Native error= File not found.
     
    Last edited: Apr 3, 2016