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

Houdini missing library linked from /Applications/MoonRay/installs/lib/python/pxr/Tf/_tf.so for MacOS #167

Open
justptkthings opened this issue Aug 27, 2024 · 0 comments

Comments

@justptkthings
Copy link

justptkthings commented Aug 27, 2024

I must be missing something, but my Houdini is having issues loading MoonRay as a plugin on Apple Silicon because the Python3.9 framework is missing in the install.

Error from Houdini:

ImportError: dlopen(/Applications/MoonRay/installs/lib/python/pxr/Tf/_tf.so, 0x0002): Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3
  Referenced from: <B018F789-E1DA-32B3-8E79-0F748D30ED37> /Applications/MoonRay/installs/lib/python/pxr/Tf/_tf.so

Full Error:
houdini_errors.txt

otool output:

otool -L /Applications/MoonRay/installs/lib/python/pxr/Tf/_tf.so
/Applications/MoonRay/installs/lib/python/pxr/Tf/_tf.so:
	@rpath/_tf.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libusd_tf.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libusd_arch.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.120.2)
	@rpath/Python3.framework/Versions/3.9/Python3 (compatibility version 3.9.0, current version 3.9.0)
	@rpath/libboost_python39.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1700.255.5)

ls output of /Applications/MoonRay/installs/lib aka @rpath
ls_output.txt

Reproduction:

MacOS Version: Sonoma 14.6.1
OpenMoonRay Version: 1.6.0
Houdini Version: 19.5.805

OpenMoonRay Installation (Pretty much taken from the guide, but included for sanity check):

sudo mkdir -p /Applications/MoonRay/{installs,build,build-deps,source}
sudo mkdir -p /Applications/MoonRay/installs/{bin,lib,include}
sudo chown -R ${USER}: /Applications/MoonRay
cd /Applications/MoonRay/source
git clone https://github.com/dreamworksanimation/openmoonray.git
cd /Applications/MoonRay
ln -s source/openmoonray/building .
ln -s source/openmoonray .
cd /Applications/MoonRay/build-deps
cmake ../building/macOS
cmake --build .
cd /Applications/MoonRay/openmoonray
cmake --preset container-macOS
cmake --build --preset container-macOS
rm -rf /Applications/MoonRay/{build,build-deps,openmoonray/release}

Using Houdini Terminal 19.5.805:

sed -i 's/19.5.640/19.5.805/g' /Applications/MoonRay/openmoonray/scripts/macOS/setupHoudini.sh
source /Applications/MoonRay/openmoonray/scripts/macOS/setupHoudini.sh
houdinicore
@github-staff github-staff deleted a comment from vineet1401 Oct 23, 2024
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

No branches or pull requests

1 participant