VST project not building error MS3073 | 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
VST project not building error MS3073
Avatar
Member
Members
January 13, 2022 - 8:57 am
Member Since: July 17, 2021
Forum Posts: 6
sp_UserOfflineSmall Offline

Windows 10 Pro build 21H1

Visual Studio Community version Version 16.11.5

Getting this issue when trying to build my vst ASPIK project:

 

1>Info: ===Check Unit Str
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/vst3_doc/artwork/VST_Logo_Steinberg.ico C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/cmake/modules/../templates/desktop.ini.in C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: cd C:\Users\je050\Documents\ASPIK\ALL_SDK\myprojects\JEcho\win_build\bin
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: C:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: echo [SMTG] Validator started...
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: C:\Users\je050\Documents\ASPIK\ALL_SDK\myprojects\JEcho\win_build\bin\Debug\validator.exe C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/Contents/x86_64-win/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: echo [SMTG] Validator finished.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/vst3_doc/artwork/VST_Logo_Steinberg.ico C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/cmake/modules/../templates/desktop.ini.in C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :VCEnd" exited with code -1073741819.
1>Done building project "JEcho_VST.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========

 

I have built other plugins with no issue. The main difference here is the use of the Circular Buffer object so I think this may be part of the problem. In other projects I have used the AudioFilter object with no issues. I have reproduced this issue on both my desktop and laptop. I have read this forum post and tried all other runtime settings available.

http://www.willpirkle.com/forum/cmake-aax-au-vst-exporting/exporting-windows-projects-windows-runtime/

 

When using other runtime settings, I get lots of linker issues.

 

Thanks for any help. Smile

Avatar
Member
Members
January 13, 2022 - 11:08 am
Member Since: July 17, 2021
Forum Posts: 6
sp_UserOfflineSmall Offline

Update:

I removed the circular buffers from my project and built successfully.

I also tried using the Audio Delay object instead to see if that builds. The build failed with the same error code MS3073.

 

Seems to be something going on the with the circular buffer object in windows. Any one else noticed this? 

 

Cheers Confused

Avatar
Admin
January 13, 2022 - 11:33 am
Member Since: January 29, 2017
Forum Posts: 693
sp_UserOfflineSmall Offline

Make sure you are initializing the circular buffer with a starting size, so that the buffer exists. The VST validator will call the process function during the validation routines. 

There's nothing with the circular buffer that has changed since the initial release in May 2019. 

Will

Avatar
Admin
January 13, 2022 - 11:46 am
Member Since: January 1, 2020
Forum Posts: 107
sp_UserOfflineSmall Offline

Hi Jordan,

The setlocal error is the root problem of that error log. It is thrown either when the Validator fails to run through or when the .vst3 file cannot be written due to lack of admin rights.

In this case I think that there is an error in your code that is not being caught/recognized by the IDE. When the Validator goes to actually run the code prior to finalizing the build, it fails to execute and the Validator exits with the setlocal error above and no other helpful info. Makes a real pain to troubleshoot. You'll have to keep commenting things out to narrow down the culprit. 

Since you're dealing with the delay object I highly suspect that you are attempting to access an array out of bounds somewhere within the object or in your implementation. If you write something like;

float x[2] = {0}; 

float y = x[2];   /// result = setlocal msg

Visual Studio won't see the error and complain & it will compile the code but then it doesn't pass the Validator stage to actually be built. There is a way to turn off the Validator so you can build the plug and see the plug crash happen in real life. But use that option only as a last result debug method as anything that is crashing the Validator will most certainly crash most DAWs as well.

Posts by Will on the topic and here

(b ᵔ▽ᵔ)b

Avatar
Anglia
Member
Members
January 13, 2022 - 12:24 pm
Member Since: June 2, 2014
Forum Posts: 46
sp_UserOfflineSmall Offline

You can of course build the plugin with the Validator disabled, then load the plugin into your DAW. Start Visual Studio and attach it to your DAW (Debug/Attach to Process...), then when your plugin crashes, Visual Studio will break at the point where the Exception is thrown. Can be really helpful at times.

You'll need a Debug build to do this, of course, but this is the default.

Avatar
Member
Members
January 13, 2022 - 2:57 pm
Member Since: July 17, 2021
Forum Posts: 6
sp_UserOfflineSmall Offline

Thank you all for your replies. It turns out my issue was calling the circularbuffer.flushbuffer method before the createcircularbuffer method. In the case of the Audio Delay object I had forgot to implement the reset function at the time of testing. This now builds too. We live and we learn eh.... Laugh

Forum Timezone: America/New_York

Most Users Ever Online: 152

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