Open lapspider45 opened 9 months ago
Update: getting past compilation now
add_compile_options(-fpermissive -w)
to the top of CMakeLists.txt (-w is probably not necessary but it looks cleaner with)cmake --build build --target JuicySFPlugin_VST3
because the standalone version errors out when compilingThis time it gets this far before any errors:
...
[ 91%] Building CXX object CMakeFiles/JuicySFPlugin_VST3.dir/usr/share/juce/modules/juce_audio_plugin_client/juce_audio_plugin_client_Unity.cpp.o
[ 94%] Building CXX object CMakeFiles/JuicySFPlugin_VST3.dir/usr/share/juce/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp.o
[ 97%] Building CXX object CMakeFiles/JuicySFPlugin_VST3.dir/usr/share/juce/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp.o
[100%] Linking CXX shared module JuicySFPlugin_artefacts/Release/VST3/juicysfplugin.vst3/Contents/x86_64-linux/juicysfplugin.so
/usr/bin/ld: cannot find -lpulsecommon-16.1: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/JuicySFPlugin_VST3.dir/build.make:232: JuicySFPlugin_artefacts/Release/VST3/juicysfplugin.vst3/Contents/x86_64-linux/juicysfplugin.so] Error 1
make[2]: *** [CMakeFiles/Makefile2:158: CMakeFiles/JuicySFPlugin_VST3.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/JuicySFPlugin_VST3.dir/rule] Error 2
make: *** [Makefile:196: JuicySFPlugin_VST3] Error 2
It looks like it's missing a dependency related to pulseaudio? That shouldn't be necessary for a VST3 build right? Hope there is a way to disable that.
Only just noticed that there is a linux
branch. Tried running the docker build, but sadly it also fails in the linker.
Ugh... debugging cmake is so fatiguing...
At least I've figured out a few things, using the linux
branch and docker build
make_juce.sh
go away if we use the official branch instead: making sure the git command being run in clone_juce.sh
is exec git clone --branch 6.1.6 --depth 1 https://github.com/juce-framework/JUCE.git
. According to your comments, this won't build for windows platforms but in my case I don't care about that.make_juce.sh
After all this, it gets as far as building fluidsynth successfully. However, it either looks in the wrong directory for the fluidsynth binary or it's not built at all, possibly due to building with --target libfluidsynth
in make_fluidsynth.sh
. But I can't for the life of me figure out what effect --target libfluidsynth
has on the build from simply looking at the cmake related files. Naturally, it does not build without specifying this target. Who designed this piece of trash build system?
Well, it's progress. Below is the latest part where I got stuck.
Hi! Been enjoying your plugin for a while now, though I always felt it was a shame there is no linux version. So I decided to try building it!
My goal is to get a VST3 build to work on Manjaro Linux / Arch.
Steps taken
sudo pacman -S fluidsynth vst3sdk juce
cmake -S . -B build
inside the juicysfplugin dircmake --build build
At the last step it gives a compilation error. Looks like an easy fix, but my C++ knowledge is next to zero so I couldn't figure out how to fix it even after googling it.
Still, it looks promising so far! Any help would be appreciated.