Windows cross compiling for Linux

I tried to cross compile my project on Windows 10 for the Ubuntu executable file.
I used the packaging tool in my UE5 to do this.

However, when I moved the packaged project to Ubuntu for execution, I got the following error:

CommonUnixCrashHandler: Signal=11
Failed to find symbol file, expected location:
“/xhzy/workspace/Linux-test/Engine/Binaries/Linux/UnrealGame.sym”
[2022.05.30-12.14.12:104][ 0]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000010

[2022.05.30-12.14.12:104][ 0]LogCore: Fatal error!

0x00007f7034424d64 libvulkan_radeon.so!UnknownFunction(0x171d64)
0x00007f7034425041 libvulkan_radeon.so!UnknownFunction(0x172040)
0x00007f72e005a0cc libvulkan.so.1!UnknownFunction(0x2b0cb)
0x00007f72e005a586 libvulkan.so.1!UnknownFunction(0x2b585)
0x00007f72c005e27c libVkLayer_MESA_device_select.so!UnknownFunction(0x1427b)
0x00007f72e0059bdb libvulkan.so.1!UnknownFunction(0x2abda)
0x00007f72e005c849 libvulkan.so.1!vkEnumeratePhysicalDevices(+0x48)
0x0000000008628c8d UnrealGame!UnknownFunction(0x8428c8c)
0x0000000008626a1b UnrealGame!UnknownFunction(0x8426a1a)
0x0000000008626747 UnrealGame!UnknownFunction(0x8426746)
0x000000000873246e UnrealGame!UnknownFunction(0x853246d)
0x0000000003921a04 UnrealGame!UnknownFunction(0x3721a03)
0x0000000003919d5c UnrealGame!UnknownFunction(0x3719d5b)
0x000000000ae0bad8 UnrealGame!UnknownFunction(0xac0bad7)
0x00007f734e3db0b3 libc.so.6!__libc_start_main(+0xf2)
0x000000000390c2a9 UnrealGame!UnknownFunction(0x370c2a8)

I’m going crazy. Please help me!

I *think that with Linux it’s not so simple. It may be in regards to a missing .dll. I don’t think you can package for Linux straight out of the box as it requires some setup and additional stuff. There is some documentation on this somewhere on epics site. Tried it myself and didn’t have the time to work through it. I know that doesn’t help much, but I don’t think it’ll work out right without jumping through the hoops to set it up correctly.

1 Like