From 845e9d6e65bd58ae5913716f1a4b59009237116a Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sun, 5 Jan 2020 00:51:19 +0100 Subject: [PATCH] Updated README.md --- README.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 43cbdfdb..73a76b73 100644 --- a/README.md +++ b/README.md @@ -43,25 +43,31 @@ You can build with `clang`, although in that case the CMakeFile defaults to usin ### Building with MSVC on windows The simplest is to use `vcpkg` as a package manager, which will give you access to `libsndfile`. -```sh -PS> git clone https://github.com/Microsoft/vcpkg.git -PS> cd vcpkg -PS> .\bootstrap-vcpkg.bat -PS> .\vcpkg integrate install -PS> .\vcpkg integrate powershell +```powershell +git clone https://github.com/Microsoft/vcpkg.git +cd vcpkg +.\bootstrap-vcpkg.bat +.\vcpkg integrate install +.\vcpkg integrate powershell ``` Assuming you want to build for x64, install the relevant packages as follows -```sh -PS> .\vcpkg.exe install libsndfile:x64-windows zlib:x64-windows libsamplerate:x64-windows +```powershell +.\vcpkg.exe install libsndfile:x64-windows zlib:x64-windows libsamplerate:x64-windows ``` In the sfizz source directory, you can then build with CMake as usual, although you should clone the windows branch: -```sh +```powershell git clone --branch windows --recursive https://github.com/sfztools/sfizz.git cd sfizz -mkdir build && cd build +mkdir build +cd build cmake .. -DSFIZZ_JACK=OFF "-DCMAKE_TOOLCHAIN_FILE=C:\Users\Paul\source\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows cmake --build . -j 16 --config Release ``` +This builds the lv2 plugin in `build\lv2\Release` and the Turtle files in `build\sfizz.lv2`, but the installation procedure is not entirely automatic yet. +In particular, having the required DLLs along with `sfizz.dll` is actually not helpful because the system cannot find dlls from another dll's root directory. +You thus need to add all of `FLAC.dll`, `libsndfile-1.dll`, `vorbis.dll`, `ogg.dll`, `vorbisenc.dll` in some directory in your `PATH` variable, and manually add `sfizz.dll` to the `sfizz.lv2` directory, and the the `sfizz.lv2` directory to `%APPDATA%\Roaming\LV2`. +Ardour should then find the plugin correctly and load it without issues. +