Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request assistance in getting Greyhole to run #303

Closed
TauPan opened this issue Dec 20, 2020 · 3 comments
Closed

Request assistance in getting Greyhole to run #303

TauPan opened this issue Dec 20, 2020 · 3 comments

Comments

@TauPan
Copy link

TauPan commented Dec 20, 2020

Hi!

I'm trying to get Luka's lcm code snippet to run (from recent code ping pong on the mailing list) https://git.tmp.si/luka/SuperCollider-Workspace/raw/branch/master/2020-12-05-least_common_multiple.scd and I'm banging my head against the wall.

Since Greyhole was missing from the sc3-plugins package on ubuntu-studio I've compiled supercollider and sc3-plugins from git master (as of today).

I've noticed that in order to have Greyhole compile at all, I need to define NATIVE=on.

I've used the following cmake flags for supercollider:

cmake -DNATIVE=ON -DCMAKE_INSTALL_PREFIX=~/local/stow/supercollider ..

And the following for sc3-plugins

cmake -DCMAKE_INSTALL_PREFIX=~/local/stow/sc3-plugins -DNATIVE=on -DSC_PATH=../../supercollider -DCMAKE_BUILD_TYPE=Release -DSUPERNOVA=ON ..

And since the first causes supercollider to look for plugins and extensions in ~/local/stow/supercollider, I've symlinked the plugins and extensions:

cd ~/.local/share/SuperCollider/Extensions
cp -srf ~/local/stow/sc3-plugins/lib/SuperCollider/plugins plugins
cp -srf ~/local/stow/sc3-plugins/share/SuperCollider/Extensions/SC3plugins SC3plugins

And after evaluating Server.supernova and the snippet, I get the following error:

Booting server 'localhost' on address 127.0.0.1:57110.
Supernova booting
no more csLADSPA plugins
Found 393 LADSPA plugins
Supernova ready
JackDriver: max output latency 42.7 ms
Requested notification messages from server 'localhost'
localhost: no maxLogins info from server process.
localhost: keeping clientID (0) as confirmed by server process.
Shared memory server interface initialized
-> Ndef('lcmnoise')
-> Ndef('lcmnoise')
-> Ndef('lcmnoise')
Exception when reading synthdef: Cannot load synth temp__0lcmnoise-1872273500_1007: Unit generator GreyholeRaw not installed
Cannot create synth (synthdef: temp__0lcmnoise-1872273500_1007, node id: 1004)

So it looks like Greyhole is found, but GreyholeRaw isn't. I do have Greyhole.so and Greyhole_supernova.so in the plugins folder.

No idea what I have done wrong.

@TauPan
Copy link
Author

TauPan commented Dec 20, 2020

Hm, I've failed to find related issues by search, but now it occurs to me that there might be a relation to #149 / #172.

@TauPan
Copy link
Author

TauPan commented Dec 20, 2020

In fact if I replace "Greyhole" with "JPverb" in the snippet (without paying attention to the args), I get:

	Exception when reading synthdef: Cannot load synth temp__0lcmnoise-1872273500_1009: Unit generator JPverbRaw not installed

@TauPan
Copy link
Author

TauPan commented Dec 22, 2020

Sheesh! It turns out I had an old installation of supercollider in /usr/local which was causing segfaults and other problems. (Probably from trying to build a deb earlier.)

I've just installed to /usr/local/stow (because my $HOME won't work since scsynth needs uid 0 for raw sockets) and everything works!

@TauPan TauPan closed this as completed Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant