Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to compile a VST on linux?

Tags:

c++

linux

vst

For a class project I'm attempting to write a VST plugin backed by CUDA. My current CUDA workflow is on a Linux box, so I'd prefer to compile and link there.

According to Wikipedia, this should be possible (I couldn't find any Steinberg documentation relevant to Linux) but I can't find a Makefile or instructions on how to build if you aren't using Xcode or Visual Studio.

I'm fairly certain that the VST 3 SDK doesn't support Linux. When I try to compile a plugin under Linux, I get this error:

./base/source/fatomic.cpp:39:30: fatal error: libkern/OSAtomic.h: No such file or directory

This issue is caused by the following code in "VST3 SDK/base/source/fatomic.cpp"

#if MAC
    #include <libkern/OSAtomic.h>
    #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
        #define NATIVE_ATOMIC_TYPE  (volatile int32_t*)
    #else
        #define NATIVE_ATOMIC_TYPE  (int32_t*)
    #endif
#elif WINDOWS
    #include <windows.h>
#endif

But I hope compiling under Linux will work with VST SDK 2.4. Thanks for reading.

like image 341
Robert Karl Avatar asked Jun 30 '11 22:06

Robert Karl


People also ask

Can you run VST on Linux?

Currently available VST plug-in hosts for linux include: FeSTige (part of the KXStudio meta-packages), FSThost or VeSTige (included with the LMMS Digital Audio Workstation which is available in most repositories). Airwave is another interesting application for managing VST instruments.

Can you use a VST without a DAW?

It is possible to run a VST plugin as standalone without using a DAW. The easiest way is to use something called a VST host. A VST host is a lightweight program with the sole purpose of running the VST.

Where are VST plugins stored on Linux?

Linux VST or lxvst They are typically installed in /usr/lib/lxvst , /usr/local/lib/lxvst or a directory mentioned in your LXVST_PATH environment variable.


1 Answers

jVSTwrapper seems to run on linux, but they are only supporting the 2.4 SDK at the moment. Actually, that's a much safer bet, as not too many hosts have full VST3 support yet, and the 2.4 SDK is more or less universal. You will probably have more luck building with that SDK under linux, but it's still going to require some patching.

Anyways, here's a few forum links (1, 2) to get you started.

Edit: I also blogged about this some while back, perhaps this will be useful for any future visitors from google:

http://teragonaudio.com/article/Building-VST-plugins-on-Linux.html

like image 171
Nik Reiman Avatar answered Oct 23 '22 05:10

Nik Reiman