I just went down quite a rabbit hole, getting the VST3 SDK to compile on Ubuntu with Eclipse, so I am posting the details here for whoever is interested.
Ubuntu, Eclipse, and VST3 setup
- Ubuntu 20.04 LTS running on Oracle VirtualBox 6.1.16 (on Windows 10), minimal Ubuntu installation.
- Version 3.6.12 of the VST SDK, which is a bit outdated (from March of 2018).
- The Eclipse C++ IDE, 2020-09 build for 64-bit Linux.
The VST SDK extracts to "/vstsdk3612_03_12_2018_build_67/VST_SDK". It is prepared for a CMake build, and hence, the main goal is to import the VST CMake project into Eclipse.
Importing the VST SDK into Eclipse
- Create a new directory called "out" under VST_SDK for the output of CMake (the directory can be called anything and can be anywhere).
- Open Terminal and switch to that new directory.
- Run the command "cmake -G "Eclipse CDT4 - Unix Makefiles" to prepare the CMake project for Eclipse.
- Depending on the packages installed, CMake may complete with or without errors. In my case, a number of required packages were missing.
- Install missing packages. CMake will print errors one by one, so this is a matter of installing one package and repeating the same call to CMake above. The missing packages were.
- libxmu-dev (installed with "sudo apt install libxmu-dev"; CMake error was missing X11)
- similarly installed libfreetype6-dev (missing Freetype)
- libxcb-keysyms1-dev. I think on Fedora and other non-Debian systems, this will be without the "1", but I cannot be sure.
- At this point, the same CMake command above completed without errors.
- Create a directory ".vst3" under /home/username, where "username" is the name of the current user (i.e., "mkdir .vst3" in the appropriate directory). The directory will not be visible in Files, but it will be visible in Terminal. It seems that this directory is needed to compile the project in Eclipse.
- Open Eclipse. Launching with the default workspace is fine.
- Click on File and then Import to import a project. In the import wizard, select General and then Existing Projects Into Workspace. Click on Next.
- Browse to the project. In the setup described above, open the folder "/ vstsdk3612_03_12_2018_build_67/VST_SDK". When choose the folder, the project will show up as "vstsdk-Debug@out" with some extra information about location.
- Build the project. The output of the build will be in the "out" folder (most notably, for me, the static VST ".a" libraries are in "lib" under "out").
In general, a lot of these steps were necessary because my Ubuntu installation was new and minimal. Things will likely be easier on the machine of a developer, who used the machine for other projects. Still, even nowadays there are no easy ways to import a CMake project into Eclipse.