LinVst also detects what prefix it's installed in.falkTX wrote:I know the makefiles are obvious for what they do...
question is, which one should we use? which one is better, more stable, what are the trade-offs...?
I actually just went through the readme quickly, and got even more confused...
I don't understand all that WINEPREFIX stuff..
In Carla I made it so it automatically detects the prefix the plugin is located and sets up the variables for the new process so the plugins always work correctly. In case of not being able to find a valid prefix (ie, plugin is on a random non-wine folder) it falls back to a user defined value.
I do the following.
I have 2 dirs: ~/.wvst-prefix and ~/.wvst. In .wvst-prefix I have a general wineprefix called default for plugins that don't need anything special at all. So I might run WINEPREFIX=~/.wvst-prefix/default wine installer.exe and inside of the prefix I install the plugin into lets say c_drive/VSTPlugins. Then in ~.wvst I create a symlink to ~/.wvst-prefix/default/c_drive/VSTPlugins called default. I have more of the same like fabfilter, ikmultimedia, komplete, etc.
I've never tried the included utilities for copying linvst.so since i wrote a script a long time ago for doing this.
It just changes pwd to ~/.wvst/default and copies linvst for each .dll that it finds there, and walks through all of the prefixes doing the same.
I decided to do that to separate plugin bundles from each other, and also to be able to handle any eventual dll overrides needed. Makes for peace of mind, and if I break a prefix I don't mess all of them up.
A few more tips. Everytime you update wine it will scan and update the registry of the prefix which takes a long time and often means that the loading of plugins time out and fail to load, so after I've updated wine I run a script that does wineboot -u on each prefix. Like that they have already been updated when I start my DAW.
The next tip is to run wineserver -p on each prefix to preload the server before starting the DAW and wineserver -k after exiting. Which speeds up loading quite a lot. So something like:
Code: Select all
#/bin/bash
export WINEDEBUG=-all
WINEPREFIX=~/.vstprefixes/fabfilter wineserver -p
WINEPREFIX=~/.vstprefixes/ik-multimedia wineserver -p
.
.
/home/jack/reaper-linux/reaper5
WINEPREFIX=~/.vstprefixes/fabfilter wineserver -k
WINEPREFIX=~/.vstprefixes/ik-multimedia wineserver -k
.
.
Also I noticed that the git repo now looks a lot better with commits with just a few changes and not like it was before. Very nice, maybe I'll look at the code again when I get the chance, as I still have a few ideas for improvements.