microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.39k stars 4.57k forks source link

Cannot compile environment to Linux #4253

Open rhalaly opened 2 years ago

rhalaly commented 2 years ago

Bug report

What's the issue you encountered?

image

Settings

How can the issue be reproduced?

  1. Open an environment in Windows
  2. Package project to Linux / Linux (AArch64)

Include full error message in text form

fatal error: 'UdpSocket.hpp' file not found PackagingResults: Error: loop variable 'preset' creates a copy from type 'const FNamedLensPreset' [-Werror,-Wrange-loop-construct] PackagingResults: Error: loop variable 'preset' creates a copy from type 'const FNamedFilmbackPreset' [-Werror,-Wrange-loop-construct]

rhalaly commented 2 years ago

@bozcani Thank you for the fix, but there is also a problem that UdpSocket.hpp file not found.

Did you manage to compile a custom environment on Windows for Linux?

bozcani commented 2 years ago

Ah no, my bad. I see your problem is different. I compiled a custom environment on Linux for Linux. And, I got almost the same error messages:

 PackagingResults: Error: loop variable 'preset' creates a copy from type 'const FNamedLensPreset' [-Werror,-Wrange-loop-construct]
PackagingResults: Error: loop variable 'preset' creates a copy from type 'const FNamedFilmbackPreset' [-Werror,-Wrange-loop-construct]

My PR fixes this for building on Linux for Linux but it doesn't necessarily solve your problem. I will remove the link to your issue from my PR message.

rhalaly commented 2 years ago

@bozcani thanks for the clarification. Actually, I didn't succeed to compile Linux on Linux even for the basic Blocks environment with Unreal Engine 4.27, only with 4.25... (Fixed the loop variable error manually)

bozcani commented 2 years ago

Ok, I have created a new issue (https://github.com/microsoft/AirSim/issues/4264) just to solve "loop variable" and pointed my MR (https://github.com/microsoft/AirSim/pull/4262) to that. I think your problem is different (i.e., fatal error: 'UdpSocket.hpp' file not found ) and have no idea for the solution at the moment. I hope someone can help.