-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unable to build for M1 Mac #1736
Comments
Whenever I use the USD tools, I have to set the terminal to Rosetta mode, haven't managed to build it on arm64 either. |
Thanks Bersalor..Thats what I ended up doing as I couldn't get the project to build for m1 Mac.. |
You got me interested, so I just tried compiling it on MacOs too, i usually run it with When trying to compile in Rosetta-Terminal, I got all the way to the last step but then:
Apparently when using
After this step, I managed to build v21.11 myself (on x86_64). PS: In the Readme file to the precompiled USD tools by Apple they also compile it with |
Filed as internal issue #USD-7127 |
Thanks Bersaelor. I tried Apple's build command
here's my clang version:
|
To get past the TBB attempting to build for the wrong architecture on M1 Macs, this worked for me:
No idea why it's pulling up the wrong arm architecture by default. ( |
Also see Issue #1718. |
I just tried compiling USD on Mac M1/arm64 and it seems to proceed:
The arm64 wheel works as well, for homebrew python3.9, here is a precompiled wheel in case someone wants to try it:
|
Thanks @erwincoumans for the help! I struggled one hour to make it work. I managed my python versions using I needed to uninstall it completely and reinstall the python version with home-brew |
Hello, I wanted to mention that v22.08 added support for native builds on M1 via build_usd.py, so using Rosetta or the additional build arguments should not be necessary. However, USD does not currently have a native M1 I'm going to close this out, please file a new issue if you run into any problems. Thanks! |
Other ARM64 platforms lack similar wheels, here is another one for GH200 (Ubuntu 22.04 on ARM64) |
Description of Issue
I cloned the latest version of USD project and checked out
release
branch which is at following commit:commit faed18ce62c8736b02413635b584a2f637156bad (HEAD -> release, tag: v21.11, origin/release, origin/HEAD)
When I tried to build I get the following error:
Looks like its failing when linking TBB library. While my Mac has arch of type:
arm64
, it seems to build forarmv4t
.Any suggestions on how to fix this or how to force build system to build just for
arm64
Steps to Reproduce
python USD/build_scripts/build_usd.py /opt/local/USD
System Information (OS, Hardware)
macOS Big Sur
, V 11.6.2Python 3.8.11
Package Versions
Build Flags
The text was updated successfully, but these errors were encountered: