How to Cross-Compile for Linux in Unreal Engine 5

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 64

  • @Zarrar2802
    @Zarrar2802 7 месяцев назад +3

    I like how you put most of the important commands in the description as the Unreal page has been updated and doesn't contain the commands anymore. Thanks!

  • @IJaba27
    @IJaba27 2 года назад +3

    This solution worked for me. Make sure to restart your PC after installing Clang.
    Thank you for sharing.

  • @ReubenAStern
    @ReubenAStern 2 года назад +1

    Thanks a lot man, I finally got my game compiling for Linux! If every Linux guy was as thorough as you I would have made so much more progress with Linux.

  • @BrassBoii
    @BrassBoii 2 года назад +2

    If anyone struggles with compiling after you've installed the latest toolchain, it's because UE5 need V17 clan 10.0.1 - It could seem like this video uses the absolute latest version of UE, maybe the main branch? - Anyways - massive amount of love you for making this video. Your channel is really helpful!

    • @Flopperam
      @Flopperam  2 года назад

      Hey, thank you for the kind words. I am using the 5.0 branch, which supports the v19-11.0.1 toolchain, in this video but yes, the ue5 main branch, I believe atm, also supports that same version of the toolchain.

    • @Flopperam
      @Flopperam  2 года назад

      Just wondering, are you using Unreal Engine 5 Early Access? Because yes, that version uses the v17-10.0.1 clang toolchain since ue5-ea is a fork of 4.26. I could see the very early/first commits of the 5.0 branch being parallel with 4.26 but most of the commits, especially the later ones, of 5.0 should be in parallel with 4.27, thereby supporting the v19-11.0.1 toolchain.

    • @BrassBoii
      @BrassBoii 2 года назад

      Indeed i am using the early access build. And yes it's a 4.26 fork, i learned that after much struggle 😂

    • @BrassBoii
      @BrassBoii 2 года назад

      Now i am kinda wondering about something. Do you have experience with Amazon gravitation servers for the builded linux server? If so - then please make a video about that topic cuz i am struggling to push the builded solution to a service with the correct settings 😂

    • @Flopperam
      @Flopperam  2 года назад

      Hey, I would recommend looking at this blog post for more info on Graviton, aws.amazon.com/blogs/gametech/compiling-unreal-engine-4-dedicated-servers-for-aws-graviton-ec2-instances/, but it shouldn't be too bad. It's just that Graviton instances run on ARM CPUs so you need to package a Linux Aarch64 build instead of a x86-64 build for Unreal Engine. Other than that, it should be pretty straightforward, at least from what I gather from the blog post.

  • @SyafiqRokman
    @SyafiqRokman Год назад +1

    This helped. Thanks
    edit: If for some reason, you built UE from src, and cant see the Linux package option, try running your dev editor from VS

    • @AlphaSpaceDev
      @AlphaSpaceDev 8 месяцев назад

      Yeah, this also fixed my issue after fixing first the Clang folder path and restarted Windows.

  • @Toasticuss
    @Toasticuss 10 месяцев назад +3

    I was having an issue where it kept saying the SDK for Linux wasn't installed even though it was on Windows and I could see the environmental variable. A system reboot fixed it for me.

  • @RootsterAnon
    @RootsterAnon 2 года назад +5

    Thank you, this was helpful!

  • @marcusmuller9014
    @marcusmuller9014 6 месяцев назад

    Thank you a lot, this helped! Regarding graphics output: Did you ever acutally make the game render using wsl2? I tried like everything....

    • @Flopperam
      @Flopperam  6 месяцев назад

      I haven't but I'm not sure if that's possible. I could be wrong though

  • @bioblazepayne
    @bioblazepayne 2 года назад +2

    Love the new Intro

  • @overrated6348
    @overrated6348 4 месяца назад +1

    Nice info thanks.

  • @JustaGameDev24
    @JustaGameDev24 2 года назад +2

    you saved my life

  • @shirakuyanai4095
    @shirakuyanai4095 2 дня назад

    Not working for the source build version 5.5. Clang 16 for 5.4 wouldn't compile because it requires 18 or later but when I installed those and regenerated the project files, the linux options disappeared lol.

    • @Flopperam
      @Flopperam  2 дня назад

      Hmmm thanks for letting me know, surprised this video already needs an update/remake

    • @shirakuyanai4095
      @shirakuyanai4095 2 дня назад

      @ Well 5.5 is not officially out yet so it's understandable.

  • @zxc-lv6fz
    @zxc-lv6fz 6 месяцев назад

    thx ,solved my problem

  • @Akashwade
    @Akashwade 2 года назад +1

    can i run Unreal engine 5 on 16gb ram intel i5 6th gen 2.6 GHZ 240ssd plz tell me which Unreal engine version should i use ?

    • @Flopperam
      @Flopperam  2 года назад

      Those specs should be fine, maybe a little slow, for ue5, also depends on the gpu.

  • @letmedwight
    @letmedwight 4 месяца назад

    But how to Cross-Compile for "Windows", if I am running the Linux Version of UE5?

    • @Flopperam
      @Flopperam  4 месяца назад

      Its a good question but I don't have a great answer. Compiling windows stuff on Linux isn't natively supported from what I understand. There are third party libraries like WINE for example that allow you to run windows stuff on Unix; however, unreal is huge so it's not going to be easy. I know this doesn't answer your question but I'm just not sure if it's even possible.

    • @letmedwight
      @letmedwight 4 месяца назад

      @@Flopperam I mean I downloaded the Linux Version of the Unreal 5 Editor on my Linux Mint OS on my Computer.
      The Linux version of Unreal 5 supports of corse compiling for Linux Builds. But I dont see a option to also compile my game for Windows.
      I mean what Game on earth only offers a Linux version to play?
      So there must be a way to also crosscompile your game for windows.
      I found a forum that was talking about "mingw", but it seems that mingw was already installed but still doesen't show me an build option for windows in the Editor, even Windows is selected for supported build options.

  • @blakedellinger5300
    @blakedellinger5300 2 года назад +1

    I'm using UE5 source - I downloaded the latest clang as indicated by unreal (v20 13.0.1), however, linux is still not showing up as an option to package. Instead it is under "Platforms with no complied support". Does anyone know if this means I have to build the game again in VS code under the linux option?

    • @Flopperam
      @Flopperam  2 года назад

      You have to regenerate the project files and build the engine from source again for the Linux option to show up I believe.

    • @blakedellinger5300
      @blakedellinger5300 2 года назад

      @@Flopperam thanks! I will try that

  • @pacrouge4429
    @pacrouge4429 2 года назад +1

    For 5.0.3 there is no clang version related. Ive followed all the steps and I keep receiving error while I’m packaging for Linux, any clue ?

    • @Flopperam
      @Flopperam  2 года назад

      I'm not too sure. Are you using the 4.27 keychain? Also, what's the error?

    • @pacrouge4429
      @pacrouge4429 2 года назад

      @@Flopperam I’m using UE 5.0.3, I use the the last tool chain available only for 5.0.2. This is the error : Platform Linux is not a valid platform to build

    • @Flopperam
      @Flopperam  2 года назад

      @@pacrouge4429 Is this occurring when packaging or building in Visual Studio?

    • @pacrouge4429
      @pacrouge4429 2 года назад

      @@Flopperam It's occurring while I'm packaging on Unreal, on the documentation page, l've figured out that there is no clang version available for 5.0.3 yet.

    • @Flopperam
      @Flopperam  2 года назад

      @@pacrouge4429 Unreal 5.0.x is technically a fork of 4.27 so that toolchain should work. i know you said you followed the instructions so maybe these are dumb questions, but did you rebuild your engine after installing the toolchain? Are you using a source build version of Unreal? And did you rerun the Setup and GenerateProjectFiles scripts before rebuilding?

  • @HadrienBasch
    @HadrienBasch 2 года назад

    thanks a lot for your video ! I'm getting this error though.. It seems impossible to understand.. I have toolchain v20 installed but when i try to package it says : "BUILD FAILED: AddBuildProductsFromManifest: C:\Binaries\Linux\JUD.debug was in manifest "C:\Intermediate\Build\Manifest.xml" but could not be found. I tried everything what could it be ? thanks a lot

    • @Flopperam
      @Flopperam  2 года назад

      Hey sorry for the late response but are you still getting this error?

    • @HadrienBasch
      @HadrienBasch 2 года назад

      @@Flopperam no thanks i found out what was happening !

    • @leohmedia1592
      @leohmedia1592 Год назад

      @@HadrienBasch Do you remember what you did haha ?

    • @HadrienBasch
      @HadrienBasch Год назад

      Damn sorry no... I don't even have an idea on what project this was about@@leohmedia1592 but ask @Flopperam

  • @squade4873
    @squade4873 2 года назад

    This might be unrelated to the video but I'm getting an error claiming that an SDK for linux is not installed properly, does anyone know how to fix this?

    • @Flopperam
      @Flopperam  2 года назад

      At what timestamp of the video is this error occurring?

    • @squade4873
      @squade4873 2 года назад

      @@Flopperam 3:22 , right after clicking Package Project. I'm on UE 5.0.3.

    • @Flopperam
      @Flopperam  2 года назад

      @@squade4873 Hmmm, did you download the engine from the Epic Games Launcher or from Github?

    • @squade4873
      @squade4873 2 года назад

      @@Flopperam Epic Games. I also double checked if I had Linux checked on Target platforms.

    • @Flopperam
      @Flopperam  2 года назад

      @@squade4873 Could you try reinstalling the engine, maybe even regenerating the visual studio project files for the project, rebuild the project in Visual Studio, and then trying again?

  • @wdm2180
    @wdm2180 2 года назад

    Should it work on linux?

    • @Flopperam
      @Flopperam  2 года назад

      Hey, are you asking about compiling on a Linux machine or will the cross-packaged game work on a linux machine?

    • @wdm2180
      @wdm2180 2 года назад

      @@Flopperam crooss-package.
      How i know its when u make game on windows and linux sametime,am i right?

    • @Flopperam
      @Flopperam  2 года назад

      That's a good question. Unfortunately, since there are so many Linux operating systems, the only real way of knowing is to test the packaged game on a Linux machine. Unreal let's you cross compile for two Linux architectures I believe, arm and x64.