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 PROBLEMS!
Avatar
Eddie
Member
Members
February 6, 2018 - 4:25 am
Member Since: July 11, 2017
Forum Posts: 18
sp_UserOfflineSmall Offline

Hi Will

I have been attempting to build in cmake in 6.9. Having a few issues:

 

Project builds but gets to the post build script and errors(********** out user name etc) :

msb3073 ERROR VCEND EXITED WITH CODE 1073740791 (think this is a buffer overrun from googling)

setlocal
cd C:\Users\*myusername*.*pcname*\Documents\VST_SDK\VST3_SDK\Myprojects\************\win_build\bin
if %errorlevel% neq 0 goto :cmEnd
C:
if %errorlevel% neq 0 goto :cmEnd
C:\Users\*myusername*.*pcname*\Documents\VST_SDK\VST3_SDK\Myprojects\************\win_build\bin\Release\validator.exe C:/Users/*myusername*.*pcname*/Documents/VST_SDK/VST3_SDK/Myprojects/************/win_build/VST3/Release/************.vst3
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd

 

if i disable this script running then it builds ok but when I use as vst3 renamed to dll it opens looking ok ish one of buttons looks wrong. However it shows as 0% cpu and midi input does nothing.  All the sliders and tabs and things move ok. VST3 is not even reckognized in a VST 3 CLIENT.

Using VST 3 Latest 3.6.8 (with vst 2 files in correct files in place) and Rackafx latest version. vs 2017. I built the project separately all work ok, then build all build then get error.

Builds ok in vst_sdk 3.6.6 Rackafx 6.8. and works fine

 

I tried a much simpler delay plug in and that worked ok and did all the validator bits ok.  

Avatar
W Pirkle
Admin
February 6, 2018 - 12:07 pm
Member Since: January 29, 2017
Forum Posts: 573
sp_UserOfflineSmall Offline

 I built the project separately all work ok, then build all build then get error.

Are you referring to the Separate exports versus the Universal Export, where you attempt to build all APIs at once?

- Will

Avatar
Eddie
Member
Members
February 8, 2018 - 5:47 am
Member Since: July 11, 2017
Forum Posts: 18
sp_UserOfflineSmall Offline

This is separate export just VST.

 

Not sure if im doing it correctly. I build all the separate projects in the SLN ie the base,sdk,vst gui etc to make sure they compile ok. They do. Then finally the ALL_BUILD 

Then get 9 succeeded 1 fail with below error:

 

9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "setlocal
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: cd E:\VST_SDK\VST3_SDK\Myprojects\MonochordANFM\win_build\bin
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: E:
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: E:\VST_SDK\VST3_SDK\Myprojects\MonochordANFM\win_build\bin\Release\validator.exe E:/VST_SDK/VST3_SDK/Myprojects/MonochordANFM/win_build/VST3/Release/MonochordANFM.vst3
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
9>D:\Program Files\vs2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code -1073740791.

The validator doesn't then run .

Build builds ok in 3.6.6

Avatar
W Pirkle
Admin
February 8, 2018 - 12:22 pm
Member Since: January 29, 2017
Forum Posts: 573
sp_UserOfflineSmall Offline

This is definitely the code that launches the validator from VS.

One sanity check question first: the SDK3.6.8 comes with a set of sample projects which all get compiled into one giant VS (or XCode) project. You have to manually create a sub-folder called "build" in the VST3_SDK folder, then run CMake from that folder. This results in a VS project named "vstsdk.sln" in the build folder. 

Does this VS project compile properly? It also runs the validator to check each of the plugins it builds (around 8 or 10 of them in total) - if this project works correctly, but your RAFX exported project does not, then that is something I would like to know. I used the Steinberg CMake files to generate the CMake files for RackAFX's exported VST3 projects. In fact they are nearly identical, so I would expect the same results. 

For my own RackAFX exported VST Project:

I just did a test using Win8.1 and VS2017 and compiled both debug and release versions without an issue. I notice that your Myprojects folder is on a different drive than your compiler. I was not able to replicate that part but I don't see why it would be an issue. 

Did you user the CMake command line here?

cmake -G"Visual Studio 15 2017 Win64" ../

Could you please use the contact form at the bottom of the main webpage, zip your project, then send me a dropbox or google drive link so I can test it? You can leave the project in its current state as well. 

You may want to try moving the SDK to your D:\ drive first to see if that makes a difference. 

If you don't want me to see your code, your can remove the processing stuff, or create a new fresh RAFX project and export it as VST. 

- Will

Avatar
Eddie
Member
Members
February 14, 2018 - 3:08 pm
Member Since: July 11, 2017
Forum Posts: 18
sp_UserOfflineSmall Offline

Sorry for not replying before. I can give that a go later and see. I did get some smaller projects to compile ok with Cmake just not the main project im working on.  The Validator ran ok on the smaller projects.

Avatar
W Pirkle
Admin
February 15, 2018 - 8:04 am
Member Since: January 29, 2017
Forum Posts: 573
sp_UserOfflineSmall Offline

UPDATE: another user has figured out his problem with this and it involves a new Microsoft software paradigm:

http://www.willpirkle.com/foru.....ion/#p2018

This was also mentioned in a previous post (referenced in the above link) but we didn't make the connection between it and the error you describe.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

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

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 757

Posts: 2894

Newest Members:

Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin

Moderators: W Pirkle: 573

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