microsoft / AirSim

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

Unable to build on M1 Mac #4739

Closed canxkoz closed 1 year ago

canxkoz commented 1 year ago

Bug report

What's the issue you encountered?

I can setup.sh and build.sh without any problems but when I open Xcode and build the Blocks.workspace I get the following errors. "Shell Script Invocation Error Group" and "/Users/Shared/Epic Games/UE_4.27/Engine/Source/Runtime/Engine/Classes/Materials/Material.h:1279:26: Variable 'LayerNames' set but not used"

Screen Shot 2022-11-07 at 17 45 51

Settings

I don't have any specific settings. But here are some outputs from setup.sh and build.sh Screen Shot 2022-11-07 at 19 44 43

How can the issue be reproduced?

  1. have a mac with an M1 chip, install brew.
  2. go through the setup instructions on AirSim MacOS Setup Instructions
  3. I am stuck on the last step "Open the XCode workspace, and press the Build and run button in the top left." on the setup instructions link.

    Include full error message in text form

    "Shell Script Invocation Error Group" and "/Users/Shared/Epic Games/UE_4.27/Engine/Source/Runtime/Engine/Classes/Materials/Material.h:1279:26: Variable 'LayerNames' set but not used

canxkoz commented 1 year ago

Deleting the following lines on the screenshot attached on this issue fixed the problem. 1278, 1279, 1280, 1292, 1293, 1294. This specific file is customized as "do not edit" by the developers but deleting these lines fixes the error. I have worked extensively with AirSim so far and I have not experienced any issues due to the deletion.

mr-cat-sudo commented 1 year ago

TYSM!

jdagdelen commented 1 year ago

I've added a PR that fixes this in a rather simple way. https://github.com/EpicGames/UnrealEngine/pull/9881