![]() Sunya Boonyatera provided the critical knowledge on how to add it in to get it to work: python build_scripts/build_usd.py /opt/local/USD -build-args USD,"-DPXR_PY_UNDEFINED_DYNAMIC_LOOKUP=ON" I originally though that meant just exporting it as environment variables, but that doesn’t do the trick with USD’s build and installation process. The key to getting it working is passing adding a build configuration detail: The same issue happens regardless of architecture – so it’s quirk for x86 as much as aarch64 architectures. It turns out that an additional build configuration option is needed, specifically for python installed through Conda, because of the way it links to python. I opened an issue on USD’s GitHub project, and quickly got some super helpful support from their team. In operator() at line 149 of /Users/heckj/src/USD/pxr/base/tf/pyTracing.cpp FATAL ERROR: Failed axiom: ' Py_IsInitialized() ' It compiled and installed fine, but any tool I attempted to use crashed immediately with the following error message: python crashed. Python build_scripts/build_usd.py /opt/local/USD With conda installed (and activated), I started installing the various dependencies: conda install pyopenglĪnd then grabbed the open source distribution of USD from Github and set it to building, with the results installed at /opt/local/USD: git clone ![]() To get started, I’d installed miniforge, downloading and then running it to install and update: sh ~/Downloads/Miniforge3-MacOSX-arm64.sh Since I wasn’t sure what the path for Python3 support was looking like, and it took a while get a M1 native build of python in the first place, I’d switched over to installing Python using the packaging tool `conda`, which has been fairly popular and prevalent for ML folks to use. macOS has stopped including Python3 in its default install, although it appears that if you install Xcode (or developer tools on the CLI), you’ll get a version of Python 3 (3.89) installed on the OS. I struggled quite bit with getting USD both installed and operational because, as it turns out, there’s a bit of quirk to Python that made things more difficult. I saw USD release 22.08 drop a few weeks ago, and notably within its release notes is the sentence: “Added support for native builds on Apple Silicon.” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |