DISTRHO / Cardinal

Virtual modular synthesizer plugin
https://cardinal.kx.studio/
GNU General Public License v3.0
2.29k stars 154 forks source link

(build failing) CLAP arm64 SurgeStorage #693

Open kevleyski opened 3 months ago

kevleyski commented 3 months ago

Version

24.05

Plugin type

CLAP

OS

macOS Sonoma 14.3 M3

DAW / Host (if applicable)

No response

Description

Creating CLAP plugin for Cardinal ld: warning: ignoring duplicate libraries: '-lm', '-lsndfile' Undefined symbols for architecture arm64: "surgextghc::filesystem::is_directory(surgextghc::filesystem::path const&)", referenced from: Surge::Storage::FxUserPreset::doPresetRescan(SurgeStorage, bool) in libsurge-common.a3 Surge::Storage::FxUserPreset::doPresetRescan(SurgeStorage, bool) in libsurge-common.a3 SurgeStorage::SurgeStorage(SurgeStorage::SurgeStorageConfig const&) in libsurge-common.a15 SurgeStorage::createUserDirectory() in libsurge-common.a15 SurgeStorage::refresh_wtlist() in libsurge-common.a15

dromer commented 3 months ago

How are you building the plugin on your system?

Maybe look at the macOS specific prerequisites for the CI builds: https://github.com/DISTRHO/Cardinal/blob/main/.github/workflows/build.yml#L159-L208

falkTX commented 2 months ago

This is likely due to differences in base macOS system used for the build, and the cmake flags passed into surge.

Cardinal builds target 10.15 as the minimum version, but this is not the default on cmake when doing regular builds. I just added b5daa7dfa1f3d379bad12ec665af5dee99e309b0 that might fix this, please test