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
CMake Error at cmake/vst_cmake/CMakeLists.txt:59 (smtg_get_default_vst3_path)
Avatar
rpuhalovich
Member
Members
December 8, 2020 - 5:09 am
Member Since: December 8, 2020
Forum Posts: 3
sp_UserOfflineSmall Offline

Hey all!

I've been thoroughly enjoying the Designing Audio Effect Plugins in C++ book this past few days and am now just getting into the 6th chapter where we begin the usage of ASPiK for our first example project. Unfortunately, I've had no luck with using Cmake for generating both Xcode on my laptop and Visual Studio on my desktop. I keep getting a string of errors (shown below). :/

Things I have tried: 

- re-downloading all SDKs that I am using (AU and VST).

- using Cmake to build the projects inside the VST SDK (as per the documentation).

- using a VM on my windows machine.

- trying on my Mac and PC.

 

File path and terminal:

file_structure

 

Any suggestions? Thanks again,

- Ryan

 

// output from the Terminal/Command Line --------------------------------------------------------------------------------------------------

  mac_build cmake -GXcode ../

-- The C compiler identification is AppleClang 12.0.0.12000032

-- The CXX compiler identification is AppleClang 12.0.0.12000032

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- --- Updated File: project_source/source/PluginKernel/plugindescription.h

--

-- ------> Starting AU Project Build:

--         AU SDK Location: /Users/rpuhalovich/dev/ALL_SDK/AU_SDK

--

--      -> Adding AU ported project in source folder: /Users/rpuhalovich/dev/ALL_SDK/project_source

--         AU Target Name: VolPlug_AU

--

-- ------> Starting VST Project Build:

--         VST SDK Location: /Users/rpuhalovich/dev/ALL_SDK/VST_SDK/VST3_SDK

--

CMake Error at cmake/vst_cmake/CMakeLists.txt:24 (include):

  include could not find load file:

 

    Global

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:25 (include):

  include could not find load file:

 

    AddVST3Library

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:26 (include):

  include could not find load file:

 

    Bundle

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:27 (include):

  include could not find load file:

 

    ExportedSymbols

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:28 (include):

  include could not find load file:

 

    PrefixHeader

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:29 (include):

  include could not find load file:

 

    PlatformIOS

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:30 (include):

  include could not find load file:

 

    PlatformToolset

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:31 (include):

  include could not find load file:

 

    CoreAudioSupport

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:32 (include):

  include could not find load file:

 

    AAXSupport

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:33 (include):

  include could not find load file:

 

    VstGuiSupport

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:34 (include):

  include could not find load file:

 

    UniversalBinary

 

 

CMake Error at cmake/vst_cmake/CMakeLists.txt:35 (include):

  include could not find load file:

 

    AddVST3Options

 

 

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

  Unknown CMake command "smtg_get_default_vst3_path".

 

 

-- Configuring incomplete, errors occurred!

See also "/Users/rpuhalovich/dev/ALL_SDK/myprojects/VolPlug/mac_build/CMakeFiles/CMakeOutput.log".

Avatar
rpuhalovich
Member
Members
December 8, 2020 - 7:05 am
Member Since: December 8, 2020
Forum Posts: 3
sp_UserOfflineSmall Offline

So a quick update. I think I found the issue - just going off of the error messages I went into the Cmake.txt file at C:\dev\_ASPiK\ALL_SDK\myprojects\VolumePlugin\cmake\vst_cmake and on lines 24 - 35 I added the prefix "SMTG_" to the arguments in the include statements (to match the modules that Cmake was complaining about). I also renamed the "vst3_doc" folder to "doc". That seems to have fixed the issue, and I've been able to build the .sln file. I don't imagine the Cmake file was intended to be generated that way. Something to look into? :/

Thanks, 

- Ryan

Avatar
W Pirkle
Admin
December 8, 2020 - 4:54 pm
Member Since: January 28, 2017
Forum Posts: 555
sp_UserOfflineSmall Offline

You got this issue because SDK3.7.X was not yet supported in ASPiK.

While your fix did grab the correct CMake modules, a change in VSTSDK3.7.0 (and 3.7.1) may cause problems for you. The Steinberg engineers changed the mechanism for receiving host information (BPM, time signature, absolute buffer time, etc...) and your plugin may not receive the host information it needs for syncing to BPM and other advanced operations.

I have just uploaded ASPiK v1.6.6 that adds proper support for VST SDK 3.7.1 so please update your ASPiK SDK to get the latest version.

To update an existing VST3 project to allow for the proper host information, copy the /project_source/source/vst_source/vst3plugin.h and vst3plugin.cpp files over your existing project files. 

New projects will be created with the newly updated files. 

I have also released RackAFX 7.0.2.0 which includes the new ASPiK v1.6.6 updates.

Will Pirkle

Avatar
rpuhalovich
Member
Members
December 8, 2020 - 11:31 pm
Member Since: December 8, 2020
Forum Posts: 3
sp_UserOfflineSmall Offline

Fantastic! I've got it working now. Thank you so much. 🙂

- Ryan

Avatar
reynaldo_fm
New Member
Members
January 3, 2021 - 9:25 pm
Member Since: January 3, 2021
Forum Posts: 1
sp_UserOfflineSmall Offline

Hi Will,

Happy new year, and thanks for the awesome framework, book and website. I'm having a similar issue, even with ASPIK 1.6.6 and VST 3.7.1. I am implementing the IIRFilters examples from the site. At first I had the exact same problem from rpuhalovich.

What I did, was to replace the xxx_cmake lists and xxx_source files from a working project I did with ASPIK Creator. This fixed all the cmake errors, but the XCode project generated threw a lot of errors the build failed.

I'm attaching a screenshot with the issues.

Thanks a lot 🙂

https://i.ibb.co/Zhp8hD0/Captura-de-pantalla-2021-01-03-a-la-s-23-15-09.pngImage Enlarger

Avatar
W Pirkle
Admin
January 19, 2021 - 1:02 pm
Member Since: January 28, 2017
Forum Posts: 555
sp_UserOfflineSmall Offline

OK standby: I am currently revising all of the original book sample code to work properly with VSTSDK 3.7.X and vstgui 4.9

There were multiple significant changes made that are causing issues with the original book projects. I am updating them now and will likely also be releasing another RackAFX (not sure if you are using it).

Will 

Avatar
W Pirkle
Admin
January 23, 2021 - 11:21 am
Member Since: January 28, 2017
Forum Posts: 555
sp_UserOfflineSmall Offline

I have just updated all 15 of the FX book projects to work properly with the latest version of ASPiK and RackAFX. All files are now updated, including very important changes to CMake files due to changes in the VST3 SDK when they moved to 3.7.X.

Please download the latest version of the IIRFilters project and you will be good to go.

Will 

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 50

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 680

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 744

Posts: 2846

Newest Members:

dan_1, phlub, josh, bmarx, Tom Helvey, Ludovic, Mihir Shah, Mina, robbie, Matteo Desantis

Moderators: W Pirkle: 555

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 555, VariableCook: 3