Trying the examples on macOS: dyld fails to find libSM.6.dylib

385 views
Skip to first unread message

Pyry Kontio

unread,
Oct 29, 2017, 3:57:16 PM10/29/17
to ArrayFire Users
Hi, I installed the ArrayFire binary installation on my freshly installed macOS HighSierra 10.13, and after that, tried to run the examples. It installed and built the examples without a hitch, but when trying to run any of them, the dynamic linker fails to link the library `libforge`. I chose it to install everything in the install wizard, including libforge.

The exact message is as follows:

```
dyld: Library not loaded: /opt/X11/lib/libSM.6.dylib
  Referenced from: /usr/local/lib/libforge.1.dylib
  Reason: image not found
```

It seems to me that libSM.6.dylib is an X session manager library, so it shouldn't really be needed on macOS.

Is there anything I can do to fix it?

Umar Arshad

unread,
Oct 29, 2017, 6:54:24 PM10/29/17
to ArrayFire Users
ArrayFire graphics functionallity uses X11 for windowing purposes. You can get XQuartz to avoid this error

https://www.xquartz.org/
Reply all
Reply to author
Forward
0 new messages