Skip to content

Building

Thomas Guillory edited this page Jan 14, 2025 · 1 revision

This tutorial suppose you have a basic understanding of what a terminal is

  1. Download a package manager

windows : chocolatey macos : homebrew linux : you are probably aware of what a package manager is

  1. Use you package manager to install some stuff
mac/win install [library_name]
brew/choco install llvm
brew/choco install cmake
brew/choco install git
  1. Install some more libraries

For windows, you will need to install visual studio community, altough we won't use it, it downloads some needed librairies same for macos with xcode

  1. install visual studio code

  2. Clone the github

git clone [repo url]
  1. Prepare the project in vscode

Open the vscode project at the root of the repo, it will recommend extensions to you, download them, close and reopen the project, the cmake extension should show a pop-up asking you to choose your compiler, take clang++ / clang.

  1. Download the juce lib by updating the submodules

Use this line in the project folder

git submodule update --init --recursive
  1. Prepare Cmake

Open the command palette with cmd+shift+p or control+shift+p, type cmake variant, choose the proposition named "Cmake : Select Variant", select "Release"

  1. Build

Reopen the command pallette and type cmake build. It should take some time to build, it might fail at the end if you don't have enough permission for the vst to be copied in your system file, but you can find the vst3 in the build folder anyway, and move it yourself (/build/src/[project_name]_artefact/Release/VST3)

The standard folder for vst3 are :

win: Program Files/Common Files/VST3 mac: /Library/Audio/Plug-ins/VST3

Feel free to reach me for help !

Clone this wiki locally