com.unity.sysroot.linux-x86_64
The Linux-x86_64 sysroot package supplies the Linux x86_64 sysroot for building Linux IL2CPP players. You don’t need to install this package manually. The package manager automatically installs this package, along with com.unity.sysroot. You only need to install your chosen toolchain package.
For an overview of unity sysroot packages, see Unity Sysroot Package documentation.
This package is available as a pre-release package, so it is still in the process of becoming stable enough to release. The features and documentation in this package might change before it is ready for release.
Installation
To install this package, refer to the instructions that match your Unity Editor version:
Version 2021.1 and later
To install this package, make sure you enable pre-release packages in the Unity Editor's Package Manager, and then follow the installation instructions in the Unity User Manual.
Version 2020.3
To install this package, make sure you show preview packages in the Unity Editor's Package Manager, and then follow the installation instructions in the Unity User Manual.
Version 2019.4
To install this package, make sure you show preview packages in the Unity Editor's Package Manager, and then follow the installation instructions in the Unity User Manual.
Choosing the correct toolchain package
When you install a package to build the Linux IL2CPP player, choose the com.unity.toolchain. package based on your host (Editor) platform:
- Linux x86_64: com.unity.toolchain.linux-x86_64
- MacOS x86_64: com.unity.toolchain.macos-x86_64-linux-x86_64
- Windows x86_64: com.unity.toolchain.win-x86_64-linux-x86_64
Building a Linux IL2CPP player
When you have installed your toolchain package, go to Project Settings > Player > Configuration and set the ScriptingBackend to IL2CPP.
To build your project go to File > Build Settings, in the Target Platform dropdown select Linux, then click Build or Build and Run.