# Cmake configuration error for beginner

**URL:** <https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459>\
**Category:** VST 3 SDK\
**Tags:** mac\
**Created:** [May 28, 2021, 1:45am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459 "2021-05-28T01:45:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 28, 2021, 1:45am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/1 "2021-05-28T01:45:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [May 28, 2021, 8:19am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/2 "2021-05-28T08:19:54Z")

</div>

What exactly did you done before getting this error? Can you write down the steps you did?

---

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 28, 2021, 4:15pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/3 "2021-05-28T16:15:19Z")

</div>

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):

Unknown CMake command “smtg\_setup\_universal\_binary”.

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [May 31, 2021, 9:15am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/6 "2021-05-31T09:15:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 31, 2021, 2:26pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/8 "2021-05-31T14:26:58Z")

</div>

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”.

– Configuring incomplete, errors occurred!

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [May 31, 2021, 2:39pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/9 "2021-05-31T14:39:53Z")

</div>

Ah OK I forgot you are new to this. Please do the following in terminal from the VST3\_SDK folder:

```
mkdir build
cd build
PATH="/Applications/CMake.app/Contents/bin":"$PATH"
cmake -GXcode ../

```

---

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 31, 2021, 3:15pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/10 "2021-05-31T15:15:18Z")

</div>

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”.

– Configuring incomplete, errors occurred!

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [May 31, 2021, 3:18pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/11 "2021-05-31T15:18:22Z")

</div>

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](https://github.com/steinbergmedia/vst3sdk#500)  
I don’t know what step you have missed.

---

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 31, 2021, 4:38pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/12 "2021-05-31T16:38:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Yonbee](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yonbee](https://forums.steinberg.net/u/Yonbee)\
**Post date:** [May 31, 2021, 8:11pm UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/13 "2021-05-31T20:11:34Z")

</div>

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 !!

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [June 1, 2021, 6:58am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/14 "2021-06-01T06:58:41Z")

</div>

This is the first step you need to do:

```
git clone --recursive https://github.com/steinbergmedia/vst3sdk.git

```

Don’t download the zip archive.

---

<div class="post-metadata">

**Author:** ![m501](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/m501/32/181862_2.png) [@m501](https://forums.steinberg.net/u/m501)\
**Post date:** [October 22, 2021, 12:51am UTC](https://forums.steinberg.net/t/cmake-configuration-error-for-beginner/721459/15 "2021-10-22T00:51:03Z")

</div>

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!**

```auto
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.
