Search Unity

I cant build my windows URP projects.

Discussion in 'Editor & General Support' started by Batuhan13, Jul 21, 2020.

  1. Batuhan13

    Batuhan13

    Joined:
    Apr 9, 2017
    Posts:
    117
    Hi there. Currently I am working on windows game with urp render pipeline but unfortunately it is not building my project well. I was using 2019.3.1.15f1 version of unity after failed build I updated my unity version to latest lts 2019.4.4f1 but unfortunately I didnt build my project with that too so I checked is it about my project for that I made a empty new project with default render pipeline then it builded well after that I created a new empty urp project but unfortunately building didnt work too =/ . Plus I am taking these errors after building try .
    I tried to build in different files but it didnt work too . Last months I was taking nearly same error like that because of my system language but after that I changed my system language to english it was working well until this day. Could you help me pls how can I solve this problem =) Thanks for your time.
     
  2. Batuhan13

    Batuhan13

    Joined:
    Apr 9, 2017
    Posts:
    117
    Hi mates I hope you are well I found nearly solution. I changed Scripting Backed to Mono from IL2CPP now its builds well but actually I dont know why it wasnt working on IL2CPP. Plus I didnt see any time difference between buildings. Have a great day
     
    MesterMoon likes this.
  3. MesterMoon

    MesterMoon

    Joined:
    Oct 22, 2016
    Posts:
    2
    Hi, I have the same problem. I get errors when building on IL2CPP but it works when I switch to MONO... I don't really know which one is better to use, I just know that mono builds muuuuch faster. If anyone could give some examples on when its good to use mono and when to use IL2CPP, that would be much appreciated.
     
  4. Lars-Espeter

    Lars-Espeter

    Joined:
    Nov 20, 2012
    Posts:
    4
    Hey guys. Same problem here. An HDRP under the same install works perfectly with IL2CPP. But the URP super small project just runs into this. Reinstalled everything completely but no changes.


    Exception: D:\Program Files\Unity 2019.1\2019.4.21f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    Failed running "D:\Program Files\Unity 2019.1\2019.4.21f1\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="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="D:\Unity Projects\The Shadow\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="D:\Unity Projects\The Shadow\Assets\..\Library/il2cpp_cache" --enable-debugger --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="D:/Program Files/Unity 2019.1/2019.4.21f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="D:/Unity Projects/The Shadow/Temp/StagingArea/Data/Managed" --generatedcppdir="D:/Unity Projects/The Shadow/Temp/StagingArea/Data/il2cppOutput"

    stdout:
    il2cpp.exe didn't catch exception: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    at Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    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: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    at Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    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)

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <208995a09fe148f5a6f6c571838c154f>:0)
    DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <208995a09fe148f5a6f6c571838c154f>:0)
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <208995a09fe148f5a6f6c571838c154f>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <208995a09fe148f5a6f6c571838c154f>: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 <208995a09fe148f5a6f6c571838c154f>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  5. Lars-Espeter

    Lars-Espeter

    Joined:
    Nov 20, 2012
    Posts:
    4
    Now built in MONO and it works without any issues ... oh, well ...