Plugin GUI not visible when building from cmake-generated makefile | CMake and ASPiK Help | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Plugin GUI not visible when building from cmake-generated makefile
New Member
January 2, 2022 - 4:40 pm
Member Since: January 2, 2022
Forum Posts: 1
sp_UserOfflineSmall Offline

I've just started to learn ASPiK and observed a peculiar behavior, that happens depending on the cmake generator I use: when using -G"Xcode" and then opening and building the project with xcode, everything works fine; OTOH, if I don't specify the generator or use the equivalent -G"Unix Makefile", the project builds and works fine, but I don't get the plugin UI nor the UI editor.

Did anyone observe similar behavior? The binaries created are different but have comparable sizes, link to the same libraries and export almost the same symbols (makefile version has a few more).

I know I can use xcodebuild to build an xcode project from the command line. I'm asking this because, in my head, if both the xcode project and the makefile are generated by cmake, the results should be the same. Maybe I'm missing some important cmake variable/parameter to make the GUI work properly?

I'm running macos 10.13, Xcode 9.4.1, cmake 3.22.1, and using Reaper 6.35 as VST host. My plugin is the example described in the youtube tutorial videos, VST only. My exact cmake command lines were:

cmake -G"Xcode" ..

cmake -DCMAKE_BUILD_TYPE=Debug ..

This may not be entirely related, but I observed similar behavior when building on Linux, where the plugin works on Reaper, but also without UI. I know ASPiK is not supported on Linux, but I managed to build it by making small tweaks to the code and cmake files.

To check the sanity of the build environments, I built the VST SDK samples using cmake-generated makefiles. The plugins with GUIs worked fine on Reaper (helloworldwithgui and Note Expression Synth with GUI), both on macos and on Linux.

Many thanks in advance.

January 7, 2022 - 9:42 am
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline


I use the following commands from the project's mac_build directory, on an ASPiK project generated by RackAFX on Windows, but that shouldn't make any difference:

cmake -GXcode ../

xcodebuild -configuration Debug|Release (depending on whether you want to debug, use the UI Editor in Reaper)

And I can load the VST3 plugin in Reaper & see the UI.

I have found that the latest UI Editor tries to save the PluginGUI.uidesc as Json, which can lead to problems, so I don't ever use that now, and will finish off the UI by editing the XML by hand, but that's an entirely different subject worthy of its own thread.

January 7, 2022 - 10:22 am
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

Have you checked out this page? It might contain some helpful tips:

Otherwise, feel free to paste your XML in here (without all the encoded bitmaps, that'll just bloat your post).

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 2

Members: 782

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 849

Posts: 3370

Moderators: W Pirkle: 693