victor-shepardson/rave-supercollider

libmkl_intel_lp64.dylib, libiomp5.dylib files in Extensions not found on boot

Opened this issue · 1 comments

Hi,
I managed to build RAVE following the instructions on projects main git page, but unfortunately i get this message in SuperCollider on boot:

*** ERROR: dlopen '/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/RAVE_scsynth.scx' err 'dlopen(/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/RAVE_scsynth.scx, 0x0002): Library not loaded: @rpath/libmkl_intel_lp64.dylib
Referenced from: /Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/libtorch.dylib
Reason: tried: '/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/libmkl_intel_lp64.dylib' (no such file), '/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/../../../../libmkl_intel_lp64.dylib' (no such file)
Referenced from: /Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/libtorch_cpu.dylib
Reason: tried: '/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/libiomp5.dylib' (no such file), '/Users/andrejs/Library/Application Support/SuperCollider/Extensions/RAVE/../../../../libiomp5.dylib' (no such file)

The same error for 'RAVE_supernova.scx' file in Extensions – missing libiomp5.dylib and libmkl_intel_lp64.dylib.
This results in:

exception in GraphDef_Recv: UGen 'RAVE' not installed.
*** ERROR: SynthDef temp__0 not found

I am running it on arm64 mac with SuperCollider built from source v 13.11.2, Xcode version 13.4.1 and pytorch installed through conda.

Sadly my python skills are quite low, but I would really like to test this out!
Any suggestion pointing in the right direction is very appreciated.

hey sorry for the late reply! it sounds like you are probably using an x86 python, since it is looking for intel MKL stuff?

were you trying to build an x86 version to run with rosetta, or a native arm64 version?

if the former, you probably need to get a pytorch version without MKL, I doubt that it works through rosetta since it's specific to intel processors (?)

if the latter, you may need to install conda for arm64. I personally use mambaforge installed from here: https://github.com/conda-forge/miniforge#mambaforge , or I believe you can brew install --cask miniconda. It's also possible to install libtorch with brew install pytorch, and not touch python at all.

also, double-check that you built supercollider for arm64 (I think it would fail before trying to load the MKL dylibs if so)