I’m making a VST plugin wihch includes call to libusb in order to send data outside the DAW.
This seems to create some sort of issue with juce_vst3_helper at compile time which fails with a segmentation fault.
The AU plugin compiles fine. When I comment out the lines with the libusb_* functions, the seg fault disappears.
I’m on MacOs Sonoma with Xcode 15.1 (and Juce v7.0.9) which seemed to have been quite a nightmare (Link Time Optimisation in particular) but I’m not sure this is related, I think it’s caused by compiling with the external libusb.
Was there any resolution on this? I am getting the same exact seg fault. I was able to clean build files and make it go away for a while, but now that doesn’t work and my vst3 build is broken.
Actually yes - basically the VST3_helper runs part of the plugin (I think at least the constructor of the Audio Processor class), and in my case there was a segmentation fault in the constructor.
My guess is this is caused by your code - try commenting out some bits of in the Plugin processor to identify which bits of code generates the segmentation fault
Thanks, that makes sense - I was working on the constructor of my plugin. It seems like vst3 “helper” is triggering a runtime error at build time, which I find decidedly unhelpful. I can’t debug it at build time. Luckily I have other plugin formats that don’t have a “helper”, and I use that term very loosely :), and I can debug the problem there. No idea why juce added this helper - it was not there in v6.