Hello I am a total beginner and I am trying to generate the cmake command for GXcode and I am getting the following error…
CMake Error at CMakeLists.txt:104 (smtg_setup_universal_binary):
Unknown CMake command “smtg_setup_universal_binary”.
I am not sure where to find this file. I have tried creating a solution build folder in all of the files containing the CMakeLists.txt but not resolve this error. Is this file necessary for compiling on mac? it seems like this file is intended for other operating systems.
I created the folder I wanted to unzip the VST package to. In terminal, cd…/Steinberg/VST_SDK/VST3_SDK/public.sdk
copy and paste command PATH=“/Applications/CMake.app/Contents/bin”:“$PATH”
mkdir Build
cmake -GXcode
Outputs:
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
– 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
CMake Error at CMakeLists.txt:46 (smtg_setup_universal_binary):
Hi Yonbee,
you are starting cmake in the wrong directory. You should run cmake in Steinberg/VST_SDK/VST3_SDK/ folder. Not in the public.sdk sub folder.
This is the error I get when I use that directory.
cd VST_SDK/VST3_SDK/
mkdir Build
PATH=“/Applications/CMake.app/Contents/bin”:“$PATH”
cmake -GXcode
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
CMake Error at CMakeLists.txt:19 (include):
include could not find requested file:
SMTG_VST3_SDK
– 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
CMake Error at CMakeLists.txt:26 (smtg_setup_platform_toolset):
Unknown CMake command “smtg_setup_platform_toolset”.
I did exactly what you said but I get the same thing
CMake Error at CMakeLists.txt:19 (include):
include could not find requested file:
SMTG_VST3_SDK
– 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
CMake Error at CMakeLists.txt:26 (smtg_setup_platform_toolset):
Unknown CMake command “smtg_setup_platform_toolset”.
OK, there’s something missing and you may have to start from the beginning: Please do exactly what is written here: GitHub - steinbergmedia/vst3sdk: VST 3 Plug-In SDK
I don’t know what step you have missed.
The github .zip file vst3sdk-master does not seem to contain this file either. The steps listed at github
are the same steps we have been discussing.
What is this file SMTG_VST3_SDK and what download should it come with?
(edit)
I’m now guessing this has something to do with my version of xcode which is 12.1 and the required version listed is 12.2. I need to upgrade my OS to big sur before I can download xcode 12.2 so I will go and do that and report back later.
This OS / Xcode upgrade did not solve anything… However, I did locate the file SMTG_VST3_SDK.cmake and put it in the correct module folder. It was just outside the cmake folder in VST3_SDK main directory. I don’t know why it was there. This was after I re-downloaded VST_SDK from Steinberg’s main website too. Thank you for your help @Arne_Scheffler !!
I came here because I got the same error. My problem was that after cloning the vst3 sdk I went into the cloned folder and then started the mkdir and such commands from there.
This is wrong!
git clone --recursive https://github.com/steinbergmedia/vst3sdk.git
cd vst3sdk # <-- WRONG! don't do this
mkdir build
cd build
# etc
Stay in the folder from where you ran the clone command and everything works as expected.