supercollider / sc3-plugins

Community plugins for SuperCollider
https://supercollider.github.io/sc3-plugins/
GNU General Public License v2.0
456 stars 122 forks source link

Request assistance in getting Greyhole to run #303

Closed TauPan closed 3 years ago

TauPan commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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!