Search Unity

Bug Unity.IL2CPP.Building.BuilderFailedException (baselib.dll does not exist)

Discussion in 'Editor & General Support' started by Brandstifter, Oct 12, 2021.

  1. Brandstifter

    Brandstifter

    Joined:
    Jan 24, 2020
    Posts:
    3
    When I try to build my Unity project via script, the build process cannot find the file baselib.dll. I have the feeling that the path was set incorrectly in a build tool.

    Path where the baselib.dll cannot be found (during the build process):
    E:\UnityEditors\2021.1.24f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\Release\baselib.dll

    Path where the baselib.dll currently exists:
    E:\UnityEditors\2021.1.24f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\XXX\release\baselib.dll

    *XXX = ARM, ARM64, x64, x86


    Code (CSharp):
    1.       Time Compile: 26455 milliseconds Unity.TextMeshPro4.cpp
    2.       Time Compile: 25070 milliseconds System2.cpp
    3.       Time Compile: 24638 milliseconds Lump_libil2cpp_os.cpp
    4.       Time Compile: 22077 milliseconds Unity.TextMeshPro2.cpp
    5.   Total compilation time: 338707 milliseconds.
    6. EXEC : error : Unity.IL2CPP.Building.BuilderFailedException: The Baselib library 'E:\UnityEditors\2021.1.24f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\Release\baselib.dll' does not exist and is required for this build. [C:\Gitlab-Runner\builds\APdqwQiz\0\robotik\mixed-reality\demo-suitcase-b4kmu\Demo-Suitcase-B4KMU\Releases\UWP\Il2CppOutputProject\Il2CppOutputProject.vcxproj]
    7.      at Unity.IL2CPP.Building.BuildDescriptions.IL2CPPOutputBuildDescription.BaselibLibrary(String baselibLibraryName, BuildConfiguration configuration)
    8.      at Unity.IL2CPP.Building.BuildDescriptions.IL2CPPOutputBuildDescription.GetDynamicLibraries(BuildConfiguration configuration)+MoveNext()
    build parameters:
    Code (csharp):
    1.  
    2. $MSBUILD_EXE" "$PROJECT_SLN" /p:Configuration=Release /p:Platform="x86" /p:AppxBundle=Always /p:AppxBundlePlatforms="x86|ARM64" /p:UseSubFolderForOutputDirDuringMultiPlatformBuild=false
    3.  
     
    Last edited: Oct 12, 2021
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    From "Unity Data.vcxproj" file:

    Code (csharp):
    1. <None Include="$(UnityWSAPlayerDir)Players\UAP\il2cpp\$(PlatformTarget)\$(UnityPlayerConfiguration)\baselib.dll">
    Try also specifying "PlatformTarget" variable on the command line:

    Code (csharp):
    1. /p:PlatformTarget:x86
     
  3. gnp89

    gnp89

    Joined:
    Jun 25, 2012
    Posts:
    36
    I was having the same issue. I manually copied the master folder one level up in the directory structure so that the tool would find it.
    There's a command in the MRTK build window that has a wrong argument and don't know where that is coming from. Probably a bug in their code.
    Unfortunately I just start this project which is a handover from another vendor and updating Unity and MRTK versions is not a good idea right now...