gisogrimm / ov-client

Clients (headless and GUI) to share and receive spatial realtime audio on Linux and MacOS using JACK, zita-njbridge and TASCAR
GNU General Public License v3.0
24 stars 7 forks source link

Error when running ov-client on macOS #23

Closed delude88 closed 3 years ago

delude88 commented 3 years ago

When installing the ov-client on macOS and running it, the box.orlandoviols.com website reports the following error:

_Device error: Unable to open receiver module "ortf": dlopen(ovclienttascarreceiverortf.dylib, 2): image not found

This seems like a broken library dependency.

delude88 commented 3 years ago

Ok, running ov-client as sudo seems to fix the issue.

Background: on many unix systems the lower ports (9871) cannot be reserved without root privileges.

Shall we use another port or just require the user to have root privileges / run it as sudo?

gisogrimm commented 3 years ago

What is the threshold for user space ports? On Linux it is 1024.

Regarding the dlopen problem: ovclienttascarreceiver_ortf.dylib (and similar ..._hrtf.dylib) are the dynamic libraries which are needed to render the sound. They are compiled as part of ov-client and will be at ov-client/tascar/plugins/build/.

gisogrimm commented 3 years ago

on Linux, running it with LD_LIBRARY_PATH=./tascar/plugins/build/ ./build/ov-client should solve the library issue.

hendrikkayser commented 3 years ago

LD_LIBRARY_PATH=./tascar/plugins/build/ ./build/ov-client

I can confirm that this solves the issue under macos (without sudo).

alessandrostone commented 3 years ago

Yep That works 👍

delude88 commented 3 years ago

Ok works for me too.

Maybe we could later provide a shell script for this ... but I'll close this issue, since we got this workaround 👍