Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BROKEN]Add support for Apple Silicon (M1) build #5085

Closed
wants to merge 23 commits into from

Conversation

GustavoSilvera
Copy link

@GustavoSilvera GustavoSilvera commented Jan 18, 2022

Description

There are several reasons why one might want to build CARLA on the M1 devices, not least of which is the incredible performance they house in a tiny form-factor. Here I present some changes that I needed to build CARLA on my M1 MAX machine.

  • Allow >clang-8 building
  • Unified Linux and Mac .sh scripts as Unix build scripts
  • Add necessary flags to make LibCarla && make launch && make package in x86_64 Apple (Run on rosetta)
  • Add necessary flags to make LibCarla && make PythonAPI && make check in arm64 (runs natively)
  • Does not change the Linux/Windows build
  • Add documentation for Mac build (see Docs/build_mac.md)

Fixes #150 (but specifically for M1 devices)

Where has this been tested?

  • Platform(s): MacOS 12.1, Linux (Ubuntu 21.04), Windows 10
  • Python version(s): Python3.8 - Anaconda
  • Unreal Engine version(s): 4.26-carla (modded by Carla)

Possible Drawbacks

  • Unforeseen challenges with CARLA in multiple architectures
  • Additional maintenance with CARLA for MacOS users
  • Unable to build PythonAPI in x86_64 mode
  • Unable to build PythonAPI with -ljpeg and -ltiff for now
  • Need to make LibCarla twice, once in x86 mode and once in arm64 mode

This change is Reviewable

@GustavoSilvera GustavoSilvera requested a review from a team as a code owner January 18, 2022 14:22
@update-docs
Copy link

update-docs bot commented Jan 18, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update our CHANGELOG.md based on your changes.

@GustavoSilvera GustavoSilvera deleted the m1 branch January 18, 2022 14:41
@GustavoSilvera GustavoSilvera changed the title Add support for Apple Silicon (M1) build [BROKEN]Add support for Apple Silicon (M1) build Jan 18, 2022
@GustavoSilvera
Copy link
Author

Made a mistake in the Github pr process. My bad. Reopening in #5086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building Carla on Mac OSX
1 participant