In this video, we go over how to cross-compile an Unreal Engine project for Linux from Windows by installing the Clang toolchain. We also had to consider edge cases such as making sure our version of the engine had all the necessary dependencies for Linux installed, having to regenerate project files for existing projects after getting the toolchain, and verifying that the LINUX_MULTIARCH_ROOT environment variable was set appropriately. To cap the tutorial off, we made sure our packaged game worked by testing it on the Windows Subsystem for Linux (WSL).
*****IMPORTANT LINKS*****
Cross-Compiling Unreal Engine for Linux: https://docs.unrealengine.com/en-US/SharingAndReleasing/Linux/GettingStarted/
For more information on the Windows Subsystem for Linux (WSL): https://docs.microsoft.com/en-us/windows/wsl/
*****IMPORTANT COMMANDS*****
%LINUX_MULTIARCH_ROOT%x86_64-unknown-linux-gnu\bin\clang++ -v
^Make sure that you have an environment variable called LINUX_MULTIARCH_ROOT and its value is the absolute path of the directory where the toolchain was installed
wsl -l -o
wsl --install -d [name-of-distro]
wsl
wslpath "[windows-directory-path]"
cd "[unix-directory-path]"
ls
./[name-of-project].sh -nullrhi
Ctrl-c
How to support the channel:
Get a shirt or sweatshirt with free shipping (Use code "SHIP" at checkout): https://teespring.com/stores/flopperam
Become a member: https://www.youtube.com/channel/UCO77KLKwplncMHLo6gLpIHw/join
Support us on Patreon: https://www.patreon.com/flopperam
Donate to our PayPal: https://www.paypal.me/flopperam
Sponsor us on Github: https://github.com/sponsors/chris-gong
Social media links:
Discord: https://discord.gg/8yvTRBv
Twitter: https://twitter.com/Flopperam
Instagram: https://www.instagram.com/flopperam/
Facebook: https://www.facebook.com/flopperam
0:00 Installing the clang toolchain
1:50 Things to consider
2:45 Building & packaging a game for Linux
3:38 Running the game on Windows Subsystem for Linux
5:29 Outro
#ue5 #linux #crosscompilation