steinbergmedia / vst3sdk

VST 3 Plug-In SDK
Other
1.59k stars 162 forks source link

VST3SDK not including uidescription when building for Windows #71

Closed simonhochrein closed 3 years ago

simonhochrein commented 3 years ago

Hello,

When I create a vst3sdk project on windows with default options and vstgui, I get a blank black screen on opening the plugin. After some investigation, I found that it was caused by a failure to load the uidescription file. I noticed that the uidescription file is not embedded into the vst unless "Create bundle for windows" is checked. However, if I use the windows bundle option the plugin is not detected by the DAW. Any suggestions?

scheffle commented 3 years ago

Which DAW? We are not aware of any host that cannot load packaged VST3 plug-ins (if the host supports VST3 in general).

simonhochrein commented 3 years ago

I'm currently using FL Studio 20, however the audio host sample failed to load the vst bundle as well.

simonhochrein commented 3 years ago

image This is what it looks like when I open the plugin (when I build non-bundled).

scheffle commented 3 years ago

As the bundle format is the default one, you should try to get that working. How are you trying to start the audio-host sample? What about the validator? And can you load your plug-in with the editor host example?

simonhochrein commented 3 years ago

The validator is successful. The editor host does load the bundle successfully. This could be a problem with FL Studio, then.

scheffle commented 3 years ago

Maybe an installation issue or path issue. Where's your plug-in located? Do you have a correct link to the common VST3 location?

simonhochrein commented 3 years ago

I believe I have found the issue. Symlinks do not work when the plugin is built as a bundle. I copied the bundle directly to the VST3 folder and it works as expected.

simonhochrein commented 3 years ago

My solution is replacing COMMAND mklink with COMMAND mklink /D on line 103 of cmake/modules/SMTG_AddSMTGLibrary.cmake

scheffle commented 3 years ago

Glad you fixed it. I will notify our Windows guru to check your solution.

simonhochrein commented 3 years ago

This might also affect Linux, it would be worth checking