Errors in CMake | Compiler Errors & Warnings | Forum

Avatar

Please consider registering
guest

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
Errors in CMake
Avatar
Member
Members
April 23, 2022 - 10:57 am
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

Hello,

After I create my project in Kreator and run cmake -G... I get 

===========

include could not find requested file:

SMTG_Global

===========

There are several such "not find" lines.

The last error is:

CMake Error at cmake/vst_cmake/CMakeLists.txt:60 (smtg_get_default_vst3_path):
Unknown CMake command "smtg_get_default_vst3_path".

 

I went to CMakeLists.txt in C:\Program Files (x86)\ASPiKreator\PluginTemplate\cmake\vst_cmake\  and that's where all those not found includes are, and also the unknown command.

The top of the CMakeLists says '# --- SMTG_ prefix added with VSTSDK 3.7.1", but I installed 3.6.14 as required. (Actually, initially I installed 3.7 but replaced it with 3.6.14).

Any help would be appreciated.

Avatar
Admin
April 24, 2022 - 12:35 pm
Member Since: January 1, 2020
Forum Posts: 107
sp_UserOfflineSmall Offline

Hi Aro,

That sounds like the error that was coming all the time with 3.7.1 so I think you're still referencing that somehow.

I'd suggest creating a new folder and trying again using purely 3.6.14 this time. All the folder hierarchy stuff is critical for a successful build. 

Cheers

Avatar
Member
Members
April 24, 2022 - 2:48 pm
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

Hello Jim, thank you for your input.

Unfortunately it didn't work. I removed the ASPiK installation, deleted all the previous folders and I created a new folder, with a new name, for the entire setup.

I unzipped the ASPiK SDK from Git and I ran ASPiKreatorInstaller.msi. This installed the ASPiKreator. When I looked at CMakeLists.txt in C:\Program Files (x86)\ASPiKreator\PluginTemplate\cmake\vst_cmake, it was the same file as before:

# --- SMTG_ prefix added with VSTSDK 3.7.1
include(SMTG_Global)

............code here............

# --- default path stuff
smtg_get_default_vst3_path(DEFAULT_VST3_FOLDER)

Then I put the VST SDK 3.16 in my ALL_SDK folder, vstgui4 in myprojects and I created the project in ASPiKreator.

The newly created CMakeLists.txt file in C:\DSP\ALL_SDK\myprojects\VolPlugin\cmake\vst_cmake is exactly like the one in the ASPiKreator folder that I mentioned above.

Running cmake failed with the same message as before.

Avatar
Admin
April 24, 2022 - 3:23 pm
Member Since: January 1, 2020
Forum Posts: 107
sp_UserOfflineSmall Offline

Yep the CMake stage can be very frustrating.

You can't be running VST SDK 3.16 though if you're seeing a message about 3.7.1 which wouldn't have existed at that time of creation. The issue seems to stem from ASPiKreator running the wrong files to what you're intending. Maybe the folder directories are wrong from ASPiKreator's perspective. Try removing all traces of that and reinstalling from there.

If that fails however, try building one of the example plugins that are provided such as DemoVolume and see if that works.

Avatar
Member
Members
April 24, 2022 - 4:15 pm
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

I don't know if the issue is on my computer. If you look in Github at https://github.com/willpirkleaudio/ASPiK/blob/develop/PluginTemplate/cmake/vst_cmake/CMakeLists.txt

 you'll see that the file contains the code that gives me errors (the includes and line 60).

Avatar
Admin
April 25, 2022 - 8:21 am
Member Since: January 1, 2020
Forum Posts: 107
sp_UserOfflineSmall Offline

Right Aro, my mistake. Sorry I got mixed up with the SDK version numbers.

Meant to say that that looks like the error log that was introduced with VSTSDK_3.7.4. It may be that you are still using the newer VSTGUI package which was also updated.

I was using VST_SDK 3.7.1 and 3.7.2 which worked with the latest ASPiKreator 1.7.2.001 however I'm not actually sure if 3.6.14 did also. 

I'd still suggest trying afresh with a new folder, making sure to get rid of all traces of the old ASPiKreator before reinstalling it. Also just see if you can build the DemoVolume project. 

If that's no good then here's an ASPiK update that works with the current VSTSDK_3.7.4 but the ASPiKreator won't work. You can still create projects manually from the templates though. 

Cheers

Avatar
Member
Members
April 25, 2022 - 9:02 am
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

What is very strange is that I removed every trace I could find of the older stuff, including the VST_SDK, and I got the ASPiK June 2019 commit from Github. This, combined with VST3 SDK 3.6 should work... but it doesn't.

There is no mention anymore in the CMakeLists.txt file of 3.7, but I get similar errors on:

include(Global)

and

Unknown CMake command "smtg_get_default_vst3_path"

I will look into creating projects manually.

Avatar
Member
Members
April 27, 2022 - 9:03 pm
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

I am confused... I tried it on a laptop that never had any audio-related software installed on it and I get the same errors.

I downloaded ASPiK 1.6.4.01 from February 2020. I made sure I have VST SDK 3.6.14. There is no sign of VST 3.7, nor any mention of it in any CMakeLists file.

I get those errors:

CMake Error at cmake/vst_cmake/CMakeLists.txt:24 (include):
include could not find requested file:

Global

...more include not find...

CMake Error at cmake/vst_cmake/CMakeLists.txt:59 (smtg_get_default_vst3_path):
Unknown CMake command "smtg_get_default_vst3_path".

I don't know what to do anymore...

Avatar
Anglia
Member
Members
April 28, 2022 - 4:45 am
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

Hi,

You need to check that value of the ${SDK_ROOT} variable, which is set if the CMakeLists.txt in the project root (which would be the CMakeLists.txt file in C:\Program Files (x86)\ASPiKreator\PluginTemplate\ based on what you've written).

This variable is assigned a value based on other variables which have already been assigned a value:

set(SDK_ROOT ${GRANDPARENT_DIR}/${UNI_VST3_SDK_FOLDER})

If we look further towards the start of this CMakeLists.txt file, we see is being assigned a value as follows:

set(UNI_VST3_SDK_FOLDER VST_SDK/VST3_SDK)
 

so the VST3 SDK should be installed in a subdirectory VST3_SDK under VST_SDK, as discussed here:

 

https://www.willpirkle.com/forum/cmake-and-aspik-help/include-could-not-find-requested-file/

 

Hope this helps 🙂

Avatar
Member
Members
April 28, 2022 - 4:32 pm
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

VST3 SDK is located in the subfolder VST3_SDK under the folder VST_SDK. This was the first error message I got from cmake and subsequently the first change I made. The folder structure is ok.

I went back to ASPiK 1.6.4.01 + VST SDK 3.6.14 and I still get the errors. At this point I'm stuck.

Avatar
Anglia
Member
Members
April 29, 2022 - 8:58 am
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

Could you perhaps share a directory listing - that may help better understand if there are issues in the way these are set up.

You could run the tree command, if you have access to a bash prompt or similar, as I've done below on MacOS zsh. This is a Universal project setup, for building VST3s and Audio Units:

% tree -dL 3

.

├── AU_SDK

│   ├── AUPublic

│   │   ├── AUBase

│   │   ├── AUInstrumentBase

│   │   ├── OtherBases

│   │   └── Utility

│   └── PublicUtility

├── VST_SDK

│   ├── VST3_Project_Generator

│   │   ├── Windows

│   │   └── macOS

│   ├── VST3_SDK

│   │   ├── base

│   │   ├── bin

│   │   ├── cmake

│   │   ├── pluginterfaces

│   │   ├── public.sdk

│   │   ├── tools

│   │   ├── vst3_doc

│   │   └── vstgui4

│   ├── build

│   │   ├── CMakeFiles

│   │   ├── CMakeScripts

│   │   ├── Debug

│   │   ├── VST3

│   │   ├── VSTGUI.build

│   │   ├── base

│   │   ├── bin

│   │   ├── build

│   │   ├── lib

│   │   ├── pluginterfaces

│   │   ├── public.sdk

│   │   ├── vstsdk.build

│   │   └── vstsdk.xcodeproj

│   ├── my_plugins

│   │   ├── build

│   │   ├── helloworld

│   │   └── helloworld_with_VSTGUI

│   ├── vst2sdk

│   │   └── public.sdk

└── myprojects

    ├── IIRFilters

    │   ├── cmake

    │   ├── mac_build

    │   ├── project_source

    │   └── win_build

    ├── RLCFilters

    │   ├── cmake

    │   ├── mac_build

    │   ├── project_source

    │   └── win_build

    ├── Volume

    │   ├── cmake

    │   ├── mac_build

    │   ├── project_source

    │   └── win_build

    ├── Volumeii

    │   ├── cmake

    │   ├── mac_build

    │   ├── project_source

    │   └── win_build

    ├── ZVAFilters

    │   ├── cmake

    │   ├── mac_build

    │   ├── project_source

    │   └── win_build

    └── vstgui4

        └── vstgui

Avatar
Member
Members
April 29, 2022 - 10:48 am
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

Here is the content of ALL_SDK. I only have the VST_SDK folder, and I create the projects in ASPiKreator for universal with only VST checked.

├───myprojects
│ ├───Volume
│ │ ├───cmake
│ │ │ ├───aax_cmake
│ │ │ ├───au_cmake
│ │ │ └───vst_cmake
│ │ ├───mac_build
│ │ ├───project_source
│ │ │ ├───cmake
│ │ │ │ ├───aax_cmake
│ │ │ │ ├───au_cmake
│ │ │ │ └───vst_cmake
│ │ │ ├───mac
│ │ │ │ ├───aax
│ │ │ │ ├───au
│ │ │ │ └───vst
│ │ │ ├───resources
│ │ │ │ ├───backgrounds
│ │ │ │ ├───buttons
│ │ │ │ ├───knobs
│ │ │ │ └───meters
│ │ │ ├───source
│ │ │ │ ├───aax_source
│ │ │ │ ├───au_source
│ │ │ │ │ └───cocoa_ui
│ │ │ │ ├───CustomControls
│ │ │ │ ├───FFTW
│ │ │ │ ├───PluginKernel
│ │ │ │ └───vst_source
│ │ │ └───win
│ │ │ ├───aax
│ │ │ └───vst
│ │ └───win_build
│ │ ├───cmake
│ │ │ └───vst_cmake
│ │ │ └───CMakeFiles
│ │ └───CMakeFiles
│ │ ├───3.23.1
│ │ │ ├───CompilerIdC
│ │ │ │ ├───Debug
│ │ │ │ │ └───CompilerIdC.tlog
│ │ │ │ └───tmp
│ │ │ ├───CompilerIdCXX
│ │ │ │ ├───Debug
│ │ │ │ │ └───CompilerIdCXX.tlog
│ │ │ │ └───tmp
│ │ │ └───x64
│ │ │ └───Debug
│ │ │ └───VCTargetsPath.tlog
│ │ └───CMakeTmp
│ └───vstgui4
│ └───vstgui
│ ├───.vscode
│ ├───contrib
│ ├───Documentation
│ ├───doxygen
│ │ └───screenshots
│ ├───lib
│ │ ├───animation
│ │ ├───controls
│ │ └───platform
│ │ ├───common
│ │ ├───linux
│ │ ├───mac
│ │ │ ├───carbon
│ │ │ ├───cocoa
│ │ │ └───ios
│ │ └───win32
│ │ └───direct2d
│ ├───plugin-bindings
│ ├───standalone
│ │ ├───cmake
│ │ │ ├───modules
│ │ │ └───resources
│ │ ├───examples
│ │ │ ├───mandelbrot
│ │ │ │ ├───resource
│ │ │ │ │ └───progress
│ │ │ │ └───source
│ │ │ ├───simple_standalone
│ │ │ │ ├───resource
│ │ │ │ └───source
│ │ │ └───standalone
│ │ │ ├───resource
│ │ │ └───source
│ │ ├───include
│ │ │ └───helpers
│ │ │ └───uidesc
│ │ └───source
│ │ ├───helpers
│ │ └───platform
│ │ ├───gdk
│ │ ├───mac
│ │ └───win32
│ ├───tests
│ │ ├───base64codecspeed
│ │ ├───gfxtest
│ │ │ ├───resource
│ │ │ └───source
│ │ ├───ios standalone
│ │ │ ├───iOS Standalone
│ │ │ │ ├───Base.lproj
│ │ │ │ └───en.lproj
│ │ │ └───iOS Standalone.xcodeproj
│ │ ├───uidescription vst3
│ │ │ ├───mac
│ │ │ │ └───uidescription test.xcodeproj
│ │ │ ├───resource
│ │ │ │ └───ZoomExample
│ │ │ ├───source
│ │ │ └───win
│ │ ├───uidescriptioneditorapp
│ │ │ ├───resource
│ │ │ └───source
│ │ └───unittest
│ │ ├───lcov
│ │ ├───lib
│ │ │ ├───animation
│ │ │ └───controls
│ │ └───uidescription
│ │ └───uiviewcreator
│ ├───tools
│ │ ├───imagestitcher
│ │ │ ├───resource
│ │ │ └───source
│ │ └───uidesccompressor
│ └───uidescription
│ ├───detail
│ ├───editing
│ │ └───resources
│ ├───expat
│ └───miniz
└───VST_SDK
├───my_plugins
│ ├───helloworld
│ │ ├───include
│ │ ├───resource
│ │ └───source
│ └───helloworld_with_VSTGUI
│ ├───include
│ ├───resource
│ └───source
├───vst2_sdk
│ └───public.sdk
│ └───source
│ └───vst2.x
├───VST3_Project_Generator
│ ├───macOS
│ │ └───VST3_Project_Generator.app
│ │ └───Contents
│ │ ├───MacOS
│ │ ├───Resources
│ │ │ └───cmake
│ │ │ ├───modules
│ │ │ └───templates
│ │ │ └───vst3plugin_folder
│ │ │ ├───resource
│ │ │ └───source
│ │ └───_CodeSignature
│ └───Windows
│ └───Resources
│ └───cmake
│ ├───modules
│ └───templates
│ └───vst3plugin_folder
│ ├───resource
│ └───source
└───VST3_SDK
├───base
├───cmake
├───doc
├───pluginterfaces
├───public.sdk
└───vstgui4

Avatar
Anglia
Member
Members
April 30, 2022 - 9:21 am
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

Hi,

I'm getting strongly the impression, unless your tree listing is somehow misaligned (I have noticed that leading spaces get trimmed when you paste in this forum), that you have the VST_SDK and the myprojects directories directly below the ALL_SDK directory, which I'd expect, but that the VST3_SDK directory is at this same level, and not below VST_SDK, which it should be.

You might want to consider downloading and reinstalling the VST SDK from one of these locations:

https://willpirkle.com/special/VST_SDK.371.zip

or

VST 3 Audio Plug-Ins SDK

At any rate, from any individual project directory, say, ALL_SDK/myprojects/Volume, the path the the VST3_SDK directory, when creating Universal projects, should be

../../VST_SDK/VST3_SDK

This is my setup, executing tree from the directory containing ALL_SDK, with maximum 3 levels to keep it easier to follow:

% tree -dL 3 ALL_SDK
ALL_SDK
├── AU_SDK
│   ├── AUPublic
│   │   ├── AUBase
│   │   ├── AUInstrumentBase
│   │   ├── OtherBases
│   │   └── Utility
│   └── PublicUtility
├── VST_SDK
│   ├── VST3_Project_Generator
│   │   ├── Windows
│   │   └── macOS
│   ├── VST3_SDK
│   │   ├── base
│   │   ├── bin
│   │   ├── cmake
│   │   ├── pluginterfaces
│   │   ├── public.sdk
│   │   ├── tools
│   │   ├── vst3_doc
│   │   └── vstgui4
│   ├── build
│   │   ├── CMakeFiles
│   │   ├── CMakeScripts
│   │   ├── Debug
│   │   ├── VST3
│   │   ├── VSTGUI.build
│   │   ├── base
│   │   ├── bin
│   │   ├── build
│   │   ├── lib
│   │   ├── pluginterfaces
│   │   ├── public.sdk
│   │   ├── vstsdk.build
│   │   └── vstsdk.xcodeproj
│   ├── my_plugins
│   │   ├── build
│   │   ├── helloworld
│   │   └── helloworld_with_VSTGUI
│   └── vst2sdk
│   └── public.sdk
└── myprojects
    ├── IIRFilters
    │   ├── cmake
    │   ├── mac_build
    │   ├── project_source
    │   └── win_build
...

    └── vstgui4
        └── vstgui

Either way, this "could not find requested file:" error really appears to be a path-related issue.

Avatar
Member
Members
April 30, 2022 - 10:58 am
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

Good news, it works !  How did I get it to work?  By accident...

Yesterday I tried to install Windows Subsystem for Linux and it completely messed up my PC... blue screens, etc. The only solution was reinstalling Windows 10 (fun times).

After that, I installed Visual Studio, CMake and I created the folder structures for ASPiK and VST SDK. Then I created a project in ASPiKreator, ran CMake... and it all worked.

I didn't do anything different from before, when it wasn't working. I don't know what was on my computer before that was keeping it from running, and we'll never know.

StevieD

My folder structure was correct, it must have been the way it was rendered on the page here that made it look off.

Avatar
Anglia
Member
Members
April 30, 2022 - 12:51 pm
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

All's well that ends well, then.Smile Well done! Hopefully you can now focus on the actual plugin development from now, without any more annoying environmental issues.

Avatar
Member
Members
April 30, 2022 - 1:37 pm
Member Since: April 23, 2022
Forum Posts: 15
sp_UserOfflineSmall Offline

I agree, now I can have some fun. I was thinking... on my previous installation I had JUCE, iPlug 2, Reaper. Audacity, Reason and some VSTs. One of those must have been the culprit.

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
3 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