midilab / jc303

A Free Roland TB-303 Plugin for Windows, MacOS and Linux: VST2, VST3, LV2, CLAP and AU. A Juce port of Open303 engine.
https://midilab.co/jc303
GNU General Public License v3.0
136 stars 4 forks source link

Compiling on a Raspberry Pi #2

Closed Baggypants closed 9 months ago

Baggypants commented 10 months ago

To compile on on a raspberry pi without having to download the vst sdk which wouldn't work anyway, I had to change the following.

git diff CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 635bcf6..1e4e96b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,7 +47,7 @@ FetchContent_MakeAvailable(juce)
 # If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs.
 # This setup should be done before calling `juce_add_plugin`.

-juce_set_vst2_sdk_path("${PROJECT_SOURCE_DIR}/vstsdk2.4")
+#juce_set_vst2_sdk_path("${PROJECT_SOURCE_DIR}/vstsdk2.4")
 # juce_set_aax_sdk_path(...)

 # `juce_add_plugin` adds a static library target with the name passed as the first argument.
@@ -57,7 +57,7 @@ juce_set_vst2_sdk_path("${PROJECT_SOURCE_DIR}/vstsdk2.4")
 # Check the readme at `docs/CMake API.md` in the JUCE repo for the full list.

 juce_add_plugin("${PROJECT_NAME}"
-       FORMATS AU VST VST3 LV2                 # The formats to build. Valid formats: Standalone Unity VST3 AU AUv3 AAX VST LV2.
+       FORMATS LV2                 # The formats to build. Valid formats: Standalone Unity VST3 AU AUv3 AAX VST LV2.
                                                 # AU and AUv3 plugins will only be enabled when building on macOS.
     PRODUCT_NAME "JC303"                        # The name of the final executable, which can differ from the target name.
     PLUGIN_NAME "JC303"                         # Name of the plugin that will be displayed in the DAW. Can differ from PRODUCT_NAME.
midilab commented 10 months ago

So how does it runs on raspberry? i was about to compile on mine to release binary for download but find no time yet...

Baggypants commented 10 months ago

Runs fine on a pi4. No problems.

midilab commented 10 months ago

great! thanks for the test!

we can compile for VST3 format too on linux, i preffer lv2 format but lots of guys uses VST3 nowdays on linux, i will add both on binary release and a macro on makefile to setup the correct formats on linux compile.

grawlinson commented 10 months ago

CLAP is also possible with JUCE using the juce-clap-extensions repository. If you want some examples of projects using this, odin2, sg-323, surge-xt and dexed all use it.

Baggypants commented 10 months ago

I don't think CLAP is specific to raspberry pi.

grawlinson commented 10 months ago

No, it's not. Apologies for the unnecessary comment in this issue.

midilab commented 9 months ago

Now the CMake checks for the existence of vst2 sdk folder, if there is no folder then he removes VST2 from compile list