1. Download the Linux version of the toolchain
First go to the official website to download the corresponding version of the toolchain installation
Official website link; :https://docs.unrealengine.com/4.26/en-US/SharingAndReleasing/Linux/GettingStarted/
After downloading, click Install exe and wait for the installation to complete
2. Check whether the installation is successful
run in cmd %LINUX_MULTIARCH_ROOT%x86_64-unknown-linux-gnu\bin\clang++ -v
,
This prompt appears to indicate that the operation is successful
3. Configure in the project configuration Config
Add to \Config\DefaultEngine.ini of your project file:
[/Script/LinuxTargetPlatform.LinuxTargetSettings]
TargetArchitecture=X86_64UnknownLinuxGnu
Finally package Linux