Closed goetzmoritz closed 8 months ago
Filed as internal issue #USD-8609
Is your homebrew running as x86_64? The error is most likely because your opensubdiv install is being found from homebrew and it's an Intel build.
Recommended steps would be either of the following:
Build opensubdiv yourself as arm64 and tell USD where it is <= How do I do this?
I'd recommend trying the first step I mentioned above before trying a custom build. I'd also recommend trying the second step in general because your homebrew is installing Intel binaries which means you're not getting all the performance you could from your homebrew packages.
But anyway if you did want to proceed with a custom build , the general steps are:
You'd clone https://github.com/PixarAnimationStudios/OpenSubdiv, run the cmake build with CMAAKE_OSX_ARCHITECTURES set to arm64, and then pass OPENSUBDIV_ROOT to the usd build script or cmake.
But again, if you're not comfortable building these libraries, I'd really recommend starting with the first two steps.
I was successful getting the arm64 version of opensubdiv with homebrew. Now, my question is: How do I tell build_usd.py that I have my "own" opensubdiv downloaded via homebrew?
The FindOpenSubdiv.cmake script looks for this variable: OPENSUBDIV_ROOT_DIR
so you can pass that in via
-DOPENSUBDIV_ROOT_DIR=/path/to/my/OpenSubdiv
Note however that this should have worked automatically.
Since you are installing to ~/usd
according to your command line, in the directory ~/usd/build/usd
there should be a file named CMakeCache.txt.
If you look in that file, you should find a line similar to this:
//Details about finding OpenSubdiv
FIND_PACKAGE_MESSAGE_DETAILS_OpenSubdiv:INTERNAL=[/Users/yourname/usd/include][/Users/yourname/usd/lib/libosdCPU.dylib;/Users/yourname/usd/lib/libosdGPU.dylib][v3.5.0(3)]
could you check that and report what you see?
I did:
FIND_PACKAGE_MESSAGE_DETAILS_OpenSubdiv:INTERNAL=[/opt/local/USD/lib/opensubdiv.framework [/Users/myuser/usd/lib/libosdCPU.dylib;/Users/myuser/usd/lib/libosdGPU.dylib][v(3)]
Hi @goetzmoritz , sorry for the silence - did you find a resolution for this?
Closing - please reopen if you have further questions - thanks!
Description of Issue
I cannot complete the build with: python3.10 USD/build_scripts/build_usd.py ~/usd --no-examples --no-tests --no-docs --no-ptex --no-openvdb --no-draco --no-materialx --no-examples --prefer-speed-over-safety
System Information (OS, Hardware)
Mac OS Ventura 13.4.1, Apple M1 Hardware cmake 3.27.20230822-g93e09f0 PySide6 6.5.2 PyOpenGL 3.1.7
I get this error:
I tried to get past this by installing opensubdiv from homebrew:
brew install opensubdiv
But it did not help.