microsoft / AirSim

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

Building Blocks on Mac OS Sonoma with Apple Silicon chip #4922

Open NikitaYeryomin opened 9 months ago

NikitaYeryomin commented 9 months ago

Question

What's your question?

I was previously able to successfully build AirSim Blocks environment on MacOS BigSur with intel chip. However, getting issues building it on new Mac with Mac OS Sonoma 14.1 and Xcode 15.2 (please see attached screenshot). There are a bunch of deprecation warnings/errors which can't be removed, e.g. IsTriviallyCopyAssignable.h:13:17 builtin has_trivial_assign is deprecated; use is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]

I tried to enable the -Wno-deprecated-builtins flag as shown on the screenshot, but it still does not help. Also tried to follow the workaround described here: https://forums.unrealengine.com/t/wdeprecated-builtins-error-when-trying-to-build-ue4-on-xcode-15-0-1/1404880/3 But Xcode 13.4.1 is crashing when launched on Sonoma unfortuntely.

Kindly looking for an advice.

Include context on what you are trying to achieve

image

Context details

Include details of what you already did to find answers

juan5705 commented 9 months ago

Same issue here... seems like we need Xcode 13 for building the engine. I tried to build with Xcode 14 with Project Format "Xcode 13 - compatible" but I got the same problem.

Did you find a solution?

NikitaYeryomin commented 9 months ago

Same issue here... seems like we need Xcode 13 for building the engine. I tried to build with Xcode 14 with Project Format "Xcode 13 - compatible" but I got the same problem.

Did you find a solution?

Nope, switched to my old mac for now, but definitely it's a huge issue.

juan5705 commented 9 months ago

Ok, on my side I was finally able to build Blocks environment on Sonoma using Colosseum and XCode 14.3.1.

nikita-noteunlimited commented 9 months ago

Ok, on my side I was finally able to build Blocks environment on Sonoma using Colosseum and XCode 14.3.1.

Great, can you share some details?

greglo commented 8 months ago

@nikita-noteunlimited I just got Colosseum running on a M1/Sonoma/XCode 15.2 with the following steps

1. Fresh install of Colosseum and Unreal 5.2 (set as current)
2. In Colosseum, update setup.sh and build.sh to use llvm 13 (not 8)
3. Update setup.sh to add `-DCMAKE_OSX_ARCHITECTURES=x86_64` to CMAKE_FLAGS
4. After opening the XCode Workspace, in Blocks and blocks_build > Build Settings > Search for arm64
  - Update all values to x86_64
5. XCode Top menu > Product > Destinations > Destination Architectures > Enable "Show both"
6. Build using "My Mac (Rosetta)"
AYHSASIDDIKADOLA commented 5 months ago

@nikita-noteunlimited I just got Colosseum running on a M1/Sonoma/XCode 15.2 with the following steps Can you please explain more point no 3? any tutorial please ?im woring for my research im stuck here

nikita-noteunlimited commented 5 months ago

@nikita-noteunlimited I just got Colosseum running on a M1/Sonoma/XCode 15.2 with the following steps Can you please explain more point no 3? any tutorial please ?im woring for my research im stuck here

@AYHSASIDDIKADOLA I believe your question is for @greglo, since I have not tried the approach he described above.

enterpolation commented 4 months ago

Anyone tried on M3? Does it work? For me the following algorithm fails on the step

./GenerateProjectFiles.sh /Users/Shared/Epic\ Games/UE_5.2

with an error

Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/interpolation/Colosseum/Unreal/Environments/Blocks/Intermediate/Build/BuildRules/BlocksModuleRulesManifest.json'.

greglo commented 4 months ago

@nikita-noteunlimited See the video here

I may have been looking at a different version of the scripts when I wrote the above since you're right, it doesn't appear necessary in setup. The appropriate flag is added in build.sh already: https://github.com/microsoft/AirSim/blob/main/build.sh#L100

@enterpolation I'm afraid I don't have an M3 system that I can test it on. I don't see any reason why that error would be related to having an M3 processor but anything's possible

Chop91 commented 4 months ago

@nikita-noteunlimited See the video here

I may have been looking at a different version of the scripts when I wrote the above since you're right, it doesn't appear necessary in setup. The appropriate flag is added in build.sh already: https://github.com/microsoft/AirSim/blob/main/build.sh#L100

@greglo Somehow they removed those setting entirely from build.sh: https://github.com/CodexLabsLLC/Colosseum/blob/main/build.sh

I am struggeling since hours to get this running on my Mac Studio M2 with Sonoma 14.3 and XCode 15.4