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
Issues Building with CMake
Avatar
Tomaso
New Member
Members
January 28, 2019 - 3:01 pm
Member Since: January 28, 2019
Forum Posts: 1
sp_UserOfflineSmall Offline

Hi!

 

I'm running Windows 10, RackAFX 3.9.2.0 and installed the VST3 SDK today (so I assume I'm on the latest version).

I've run into some issues trying to build my project with CMake. When I run "cmake -G"Visual Studio 15 2017 Win64" ../", I get the following dump:

 

-- ------> Starting VST Project Build:
-- VST SDK Location: C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK
--
-- SMTG_MYPLUGINS_SRC_PATH is not set. If you want to add your own plug-ins folder, specify it!
--
-- -> ENABLE WINDOWS BUNDLE: SDK 3.6.10+ REQUIRED!
--
-- -> Adding VST ported project in source folder: C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/project_source
-- VST Target Name: patience
--
CMake Error at C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/cmake/modules/AddSMTGLibrary.cmake:54 (if):
if given arguments:

"STREQUAL" ""

Unknown arguments specified
Call Stack (most recent call first):
C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/cmake/modules/AddVST3Library.cmake:75 (smtg_create_link_to_plugin)
project_source/cmake/vst_cmake/CMakeLists.txt:123 (smtg_add_vst3plugin)

-- Configuring incomplete, errors occurred!
See also "C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/myprojects/patience/win_build/CMakeFiles/CMakeOutput.log".

 

It would appear that SMTG_VST3_TARGET_PATH is not set somehow, so STREQUAL receives nothing as a left argument.

Note: The CMakeOutput.log file only shows successful builds of temporary files for me.

 

I tried removing that error check in the CMake file, but without proper configuration the build fails due to missing files:

 

C:\Users\tm659\Desktop\vstsdk3612_03_12_2018_build_67\VST_SDK\VST3_SDK\myprojects\patience\win_build>cmake -G"Visual Studio 15 2017 Win64" ../
-- ------> Starting VST Project Build:
-- VST SDK Location: C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK
--
-- SMTG_MYPLUGINS_SRC_PATH is not set. If you want to add your own plug-ins folder, specify it!
--
-- -> ENABLE WINDOWS BUNDLE: SDK 3.6.10+ REQUIRED!
--
-- -> Adding VST ported project in source folder: C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/project_source
-- VST Target Name: patience
--
-- Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
-- VSTGUI will use the embedded Expat package!
-- Configuring done
CMake Error at C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/public.sdk/CMakeLists.txt:96 (add_library):
Cannot find source file:

/base/conststringtable.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx

CMake Error at C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/public.sdk/CMakeLists.txt:96 (add_library):
No SOURCES given to target: sdk

-- Build files have been written to: C:/Users/tm659/Desktop/vstsdk3612_03_12_2018_build_67/VST_SDK/VST3_SDK/myprojects/patience/win_build

 

Could anyone please help me out with this?

Avatar
JBasten
Member
Members
January 31, 2019 - 10:24 am
Member Since: July 21, 2017
Forum Posts: 3
sp_UserOfflineSmall Offline

Getting the same issue, building a blank project and trying to export to VST

Avatar
W Pirkle
Admin
February 7, 2019 - 11:04 am
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

You need to use SDK 3.6.10 with the latest version of RackAFX - this is documented on the Download page, but it is not really highlighted. 

I have moved to RackAFX7 development which uses the latest VST SDK. 

I have archived the 3.6.10 SDK for those that need it here:

http://willpirkle.com/stuff/vs.....ild_37.zip

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 55

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 41

clau_ste: 39

Gwen: 32

JimmyM: 30

TheSmile: 30

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 558

Moderators: 1

Admins: 4

Forum Stats:

Groups: 12

Forums: 36

Topics: 567

Posts: 2276

Newest Members:

Ray C., Jon R., Pat, Jan, Ben_1, shane, teknojunque, David Richter, Nick45, EEkros

Moderators: W Pirkle: 323

Administrators: Tom: 69, JD Young: 80, Will Pirkle: 0, W Pirkle: 323