# Error running rvu - libSM.6.dylib

**URL:** <https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141>\
**Category:** radiance-general\
**Created:** [January 31, 2023, 12:29pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141 "2023-01-31T12:29:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![NimaForouzandeh](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@NimaForouzandeh](https://discourse.radiance-online.org/u/NimaForouzandeh)\
**Post date:** [January 31, 2023, 12:29pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/1 "2023-01-31T12:29:42Z")

</div>

Hi all,  
I face an error when running the `objview` command:

```auto
objview testsurface.rad

```

the pop-up window shows this message:  
 ![Screenshot 2023-01-31 at 11.01.14](https://discourse.radiance-online.org/uploads/default/original/2X/e/e752186be86748d141d4f723aec5e7d277b6efde.png)

and the terminal:

```auto
oconv -f holedsurff.rad /var/folders/3s/4btthscs65jcq1hwcq_5k224g4jgb_/T/8gFj0UKP62/lt8719.rad > /var/folders/3s/4btthscs65jcq1hwcq_5k224g4jgb_/T/8gFj0UKP62/ov8719.oct
        rvu -vtv -vp 12 12.5 10 -vd -5 -5 -5 -vu 0 0 1 -vh 45 -vv 45 -dp 128 -ar 16 -ds 0 -dt .2 -dc .25 -dr 0 -ss 0 -st .5 -af /var/folders/3s/4btthscs65jcq1hwcq_5k224g4jgb_/T/8gFj0UKP62/af8719.amb -aa .3 -ad 256 -as 0 -av 0.36 0.36 0.36 -lr 6 -lw .003 -ps 8 -pt .16 -R /var/folders/3s/4btthscs65jcq1hwcq_5k224g4jgb_/T/8gFj0UKP62/ov8719.rif -o x11 -pe .5 /var/folders/3s/4btthscs65jcq1hwcq_5k224g4jgb_/T/8gFj0UKP62/ov8719.oct
dyld[8725]: Library not loaded: '@executable_path/libSM.6.dylib'
  Referenced from: '/Library/Radiance/bin/rvu'
  Reason: tried: '/Library/Radiance/bin/libSM.6.dylib' (code signature in <AFE0D1D9-D221-38C2-B39F-B17172171213> '/Library/Radiance/bin/libSM.6.dylib' not valid for use in process: library load disallowed by system policy), '/usr/local/lib/libSM.6.dylib' (no such file), '/usr/lib/libSM.6.dylib' (no such file)
rad: error running rvu

```

I tried the potential solutions for the similar issue [here](https://discourse.radiance-online.org/t/problems-of-rvu/5832), which I listed below:

- Testing `objview -o x11 holedsurff.rad` , which resulted in the exact same error.
- The response to `rvu -devices` is the same error.
- I have the RADIANCE 5.4a 2021-09-28 LBNL on my machine and the Radiance directories are added to PATH variable.
- `brew info qt5` gives:

> ==\> qt@5: stable 5.15.8 (bottled) [keg-only]  
> Cross-platform application and UI framework

- I tried setting $LD\_LIBRARY\_PATH to the /usr/local/radiance/bin folder and did not change the error.
- I tried calling rvu with absolute path, which did not work.

Do you have any idea on how to resolve this?

Thank you in advance,  
N.

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [January 31, 2023, 5:11pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/2 "2023-01-31T17:11:57Z")

</div>

Hi Nima,

This sounds like a Linux library compatibility issue with the github environment we’re using. I don’t know much about that, but did you try recompiling from source, using either the cmake build system or the “makeall” script at the top level?

-Greg

---

<div class="post-metadata">

**Author:** ![Taoning\_Wang1](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@Taoning\_Wang1](https://discourse.radiance-online.org/u/Taoning_Wang1)\
**Post date:** [January 31, 2023, 5:18pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/3 "2023-01-31T17:18:43Z")

</div>

Have you try to remove the damaged file as the pop-up suggests?  
Or try to reinstall [xquartz](https://www.xquartz.org) if you want to use X11.

---

<div class="post-metadata">

**Author:** ![NimaForouzandeh](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@NimaForouzandeh](https://discourse.radiance-online.org/u/NimaForouzandeh)\
**Post date:** [January 31, 2023, 6:28pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/4 "2023-01-31T18:28:35Z")

</div>

Hi @Taoning_Wang1,

> Have you try to remove the damaged file as the pop-up suggests?

When I remove, then the error changes to: “libSM.6.dylib is missing” (or something similar).

> Or try to reinstall [xquartz](https://www.xquartz.org/) if you want to use X11

This also did not resolve the issue.

---

<div class="post-metadata">

**Author:** ![NimaForouzandeh](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@NimaForouzandeh](https://discourse.radiance-online.org/u/NimaForouzandeh)\
**Post date:** [January 31, 2023, 6:37pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/5 "2023-01-31T18:37:02Z")

</div>

Hi @Greg_Ward ,  
I haven’t tried recompiling from the source, do your mean recompiling `rvu`?can you please explain more about how can I do that?

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [January 31, 2023, 6:42pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/6 "2023-01-31T18:42:39Z")

</div>

You can try running this from the top ray/ directory:

> ./makeall install

I don’t have any experience doing this on recent versions of Linux, so I’m not 100% sure it’s going to work for you, but it’s worth a try. I don’t think there’s a direct way to recompile just rvu.

-Greg

---

<div class="post-metadata">

**Author:** ![NimaForouzandeh](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@NimaForouzandeh](https://discourse.radiance-online.org/u/NimaForouzandeh)\
**Post date:** [February 1, 2023, 2:03pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/7 "2023-02-01T14:03:47Z")

</div>

Thanks @Greg_Ward,  
compiling from the source solved the problem and Xquartz window pops up after running the command. However, I only see the grey window, and the geometry defined in the .rad file is not showing.  
I am testing a .rad file containing a simple polygon(test.rad):

> void polygon f\_7\_0  
> 0  
> 0  
> 12 0 0 0 4 0 0 4 5 0 0 5 0

and what I get after running `objview test.rad` is:

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/2/21e85a25dc3d0d4317a2bb839982e4974c31dd62.png)

---

<div class="post-metadata">

**Author:** ![Rob\_Guglielmetti](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/rob_guglielmetti/32/508_2.png) [@Rob\_Guglielmetti](https://discourse.radiance-online.org/u/Rob_Guglielmetti)\
**Post date:** [February 1, 2023, 3:35pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/8 "2023-02-01T15:35:22Z")

</div>

Congratulations on getting rvu compiled from source! I see you are already using objview to view this geometry, so my initial reply to this (deleted) was pointless and misleading. Sorry about that.

I guess I’d start playing with the view controls anyway, because if you got no error messages from rvu on loading your rad file, then the geometry must have loaded. I’m not sure why you weren’t presented with a view of your polygon though.

NEXT EDIT:  
Your issue is you have created a polygon with the `void` object; thus, there is no material definition on it to do anything with the light.

try adding a material def, and then assign the material to your polygon e.g.:

_Make this:_  
**void plastic my\_material**  
**0**  
**0**  
**5**  
**.5 .5 .5 0 0**

_And assign to your polygon like so:_  
**my\_material** polygon f\_7\_0  
0  
0  
12 0 0 0 4 0 0 4 5 0 0 5 0

I’m going to drink my coffee now and hope there are no more stupid errors in my responses. =)

---

<div class="post-metadata">

**Author:** ![NimaForouzandeh](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@NimaForouzandeh](https://discourse.radiance-online.org/u/NimaForouzandeh)\
**Post date:** [February 1, 2023, 4:19pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/9 "2023-02-01T16:19:45Z")

</div>

> [@Rob\_Guglielmetti](#):
>
> **void plastic my\_material**  
> **0**  
> **0**  
> **5**  
> **.5 .5 .5 0 0**
> 
> _And assign to your polygon like so:_  
> **my\_material** polygon f\_7\_0  
> 0  
> 0  
> 12 0 0 0 4 0 0 4 5 0 0 5 0

Great, now it works.  
Thanks a lot @Rob_Guglielmetti🙂

---

<div class="post-metadata">

**Author:** ![Rob\_Guglielmetti](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/rob_guglielmetti/32/508_2.png) [@Rob\_Guglielmetti](https://discourse.radiance-online.org/u/Rob_Guglielmetti)\
**Post date:** [February 1, 2023, 5:18pm UTC](https://discourse.radiance-online.org/t/error-running-rvu-libsm-6-dylib/6141/10 "2023-02-01T17:18:16Z")

</div>

Awesome, you’re welcome. I’m still drinking my coffee anyway…
