I’ve tried to narrow down the issue, but I didn’t manage to make any progress.
I thought at first that it was due to the need to call VSTGUI::init() with the latest version of the VST3 SDK, but I get the exact same issue whatever SDK version I use.
Am I the only one to encounter this ?
Is there something specific to Xcode 12.5 I’m forgetting to do ?
Then this is missing. But just by upgrading the macOS version you cannot loose two functions So this must have happened before too. These functions are normally exported when adding the file
The issue was that “public_sdk_SOURCE_DIR” was empty when calling “smtg_add_library_main” from “SMTG_AddSMTGLibrary.cmake”.
I still don’t understand why since it seems to be properly set in the main vst3sdk CMakeLists.txt file and there is no other place where it’s reassigned.
It worked before because I assigned “public_sdk_SOURCE_DIR” in an external cmake file of mine, which I cleared a bit a few days before updating my system to Big Sur.
Hi @mike13_2 !
I think “public_sdk_SOURCE_DIR” remains empty if you forget to call the macro “smtg_enable_vst3_sdk()” in your CMakeLists.txt, defined in the vst3sdk module SMTG_Global.cmake.
Hope it helps!
Actually the issue was happening because I had multiple levels of cmake files in my projects, and calling smtg_enable_vst3_sdk() from a sublevel library’s CMakeLists.txt didn’t properly set public_sdk_SOURCE_DIR in the top level file.
I just needed to set vst3sdk_SOURCE_DIR and call smtg_enable_vst3_sdk() from the top level CMakeLists.txt.