Skip to content

AudYoFlo: Building on MS Windows Visual Studio

jvxgit edited this page Jan 30, 2023 · 17 revisions

On MS Windows to build AudYoFlo with Visual Studio the following pre-installations should be available:

  1. QT Version 5 (e.g. 5.17)
  2. Git bash (which you probably have installed since you work with Github)
  3. Visual Studio 2022

QT Version 5 typicall requires to download and build QT from source. We focus on version 5 since version 6 did not yet have the status required to provide all required functions that QT Version 5 does.

Optionally, Matlab and Python components can be involved:

  1. Matlab Version 2017 or higher
  2. Python Version 3.10 or higher

Preparing the build

To start working with jvxgit, at first, we open the git bash as a (simple) Linux command interpreter. There, we create a folder where we locate the repository afterwards, e.g., jvxgit, and finally, we obtain the main AudYoFlo repository by running the corresponding git command:

mkdir jvxgit
cd jvxgit
git clone https://github.com/jvxgit/AudYoFlo.git

grafik

Next, we create a folder right next to the repository folder AudYoFlo:

grafik

Then, we copy the file <AudYoFlo>/build-scripts/windows/debug/rt--sdk/compiled.bat to the newly created build folder,

grafik

The folder <AudYoFlo> in that context represents the main folder of the checked out repository.

Adapting the build script and running the cmake command

In the build script, the local installations must be cross-referenced. Also, compile options can be set:

grafik

We need to specify the location of the checked-out AudYoFlo repository in the variable JVX_SRC_PATH. Then, some other directories must be provdied.

Then, we open a Visual Studio command shell, change to the build folder.

grafik

Download of sub repositories

Note that wunning the build command for the first time will trigger a download of the following repositories:

  • VST - Virtual Studio Technology SDK from Steinberg
  • Library jsmn
  • Library civetweb
  • Library libmysofa
  • Library libebur1128
  • Library hash-lib
  • Library qwt
  • Library qcustomplot

Building the code generation tools

At first we need to build the code generation tools. we do so by running the command

compiled.bat rt-bt

grafik

Building the code generation tools is only necessary if something changed in the fundamentals of the code generation tools. If nothing has changed, the build tools typically will hbe built only once and stay as they are for a longer time.

Building the main system

Next, we need to clear the cmake cache and run the main cmake step. We do so by running

compiled.bat cc && compiled.bat rt

During this step, the downloads of the involved third-party repositories will be done. These steps are required only at the very first time and therefore will not be required anytime later than the very first build.

Clone this wiki locally