Issue running rvu on new Mac laptop

Hello,

I have a new Mac Book Pro, and I’m trying to get Radiance set up. Certain Radiance commands work, but I am not able to get rvu to work. When I try to run it, I get the following error:

dyld[1562]: Library not loaded: /usr/local/opt/libx11/lib/libX11.6.dylib
Referenced from: <7E016B54-193C-3228-BAE4-E37FD5D7C88D> /usr/local/radiance/bin/rvu
Reason: tried: ‘/usr/local/opt/libx11/lib/libX11.6.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libx11/lib/libX11.6.dylib’ (no such file), ‘/usr/local/opt/libx11/lib/libX11.6.dylib’ (no such file), ‘/usr/local/lib/libX11.6.dylib’ (no such file), ‘/usr/lib/libX11.6.dylib’ (no such file, not in dyld cache)
zsh: abort rvu -ab 1 -ad 128 -as 64 -ar 8 -vf plan.vf temp.oct

I saw a similar posting here: Problems of rvu - #18 by lee, and I tried setting my LD_LIBRARY_PATH to the radiance/bin directory, but it did not help. I also tried running “sudo apt list” as it was suggested in the post, but got an error about not finding a Java runtime. I tried installing Java (JDK), but that did not help either.
I am on a MacBook Pro with Sonoma 14.4. I installed Radiance via GitHub recently.

Thank you.

Hi Kera,

Have you installed the Xquartz for macOS package? I think this is required to run rvu. If you have and it still does not work, there may be some incompatibility with our build system and your version of macOS. This may require that you build from sources, which should work at least for the renderers and ximage. (You may have to remove the TIFF library dependencies in src/px to get that folder to build properly.)

Cheers,
-Greg

Hi Greg,

Thanks. I have installed XQuartz unfortunately. I will try compiling from the source code.

Kera

Hi Kera,

If you know where the libX11 dylib is you can symlink it:
for example if it’s at /usr/local/libX11.6.dylib
you can do
ln -s /usr/local/libX11.6.dylib /usr/local/opt/libx11/lib/libX11.6.dylib

alternatively, if you have homebrew installed:
brew install xquartz should fix this as well.

Hi Taoning,

Thank you. I get an error when I try that command:
ln: /usr/local/opt/libx11/lib/libX11.6.dylib: No such file or directory

I then installed homebrew, and tried the second option, and got the following message:
Warning: Not upgrading xquartz, the latest version is already installed

Despite the warnings, I tried rvu again to see if it would work, and the error I get reinforces what the symlink error is: “no such file”).

Thanks,
Kera

Oops, my symlink command is wrong.

ln -s <target> <link_name>

First you should verify that you downloaded the correct Radiance, you need the arm64 version for Apple Silicon mac. Homebrew default installation location is /usr/local for intel mac, which might explain this error.

If this is M1 mac, the default location for X11 should be /opt/X11, if it’s not there then you need to find it using find /opt -name "libX11*" or find /usr -name "libX11*"