Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

"Failed to load il2cpp" when starting Linux build on Mint

Discussion in 'Linux' started by Koksny, Jan 25, 2020.

  1. Koksny

    Koksny

    Joined:
    Nov 15, 2017
    Posts:
    15
    One of our Linux users reported that game doesn't start on Linux Mint. After starting, it only generates "Failed to load il2cpp" message into log.

    Clang, mono-complete and dotnet-runtime are installed.

    There are no issue with exactly same build on neither Ubuntu, Arch and Manjaro. We also can't get Unity Editor to compile empty project with Mint. Any hint? We're using latest 2019.3 pre-release to create the build in question, but it seems to also fail on our older il2cpp builds.
     
  2. Koksny

    Koksny

    Joined:
    Nov 15, 2017
    Posts:
    15
    Issue is only present on Linux Mint 18.3, build works in latest Mint, thread can be closed.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,415
    This issue happens as a result of Unity currently using whatever sysroot is installed on your machine at the time you export the build from the Unity Editor and if it's not compatible with certain operating systems, the build will crash on startup on those systems.

    We're working on shipping a functional sysroot for Linux IL2CPP in coming 2019.3 builds.
     
  4. tonic-joel

    tonic-joel

    Joined:
    Nov 9, 2018
    Posts:
    2
    Hi is there any update on this issue. I'm currently building linux il2cpp builds using 2019.3.9. They run fine on my local Ubuntu installation, but fail wait the error "Failed to load il2cpp" run I attempt to run the builds on my server.

    I have configure the sysRoot using the code in this post (which allows me to build the game) https://forum.unity.com/threads/uni...e-built-with-linux-error.822210/#post-5633977


    Are there any work around for getting il2cpp builds running on specific Linux installations, or any further development on the functional sysroot?
     
  5. xiaobohappy

    xiaobohappy

    Joined:
    Dec 22, 2020
    Posts:
    1
    Hi , upload_2020-12-22_18-38-43.png I can build an export sucess but run error in linux
    Unity2019 4.13 (Host Win10)with IL2CPP to Linux Target
    "com.unity.sysroot": "version": "0.1.17-preview
    "com.unity.toolchain.win-x86_64-linux-x86_64": "version": "0.1.17-preview"

    The Linux version : 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018


    How do I fix this mistake? What should I do ?
     
  6. Laur3nt1u

    Laur3nt1u

    Joined:
    Apr 30, 2014
    Posts:
    18
    same problem with Unity 2020.3 and 2021.1 but it works with 2019.4.22
     
unityunity