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

No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
CMake Error
Avatar
DataLife
Member
Members
May 23, 2019 - 3:21 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Hey Will, the new book is awesome (bought both Kindle and physical).

I'm getting errors when using cmake for the volume fader example project: https://pastebin.com/udDbiUz1

I saw someone in the Youtube comments with the same issue so I'll copy your response to them here for others to see:

Is your "myprojects" folder in the correct place in the VST3 SDK heirarchy?
I've created the folder ALL_SDK/VST_SDK/VST3_SDK/myprojects/vstgui4 with the containing files, as I did with the other formats. We don't have to do that for VST2 right? (In general, can we make VST2 with your book?)

Do you have the proper VST3 SDK 3.6.12?
I have the latest VST3 SDK 3.16.13 (just downloaded it for the first time). This was the only option available, as far as I can tell. Maybe there's .12 on a Github repo somewhere, but I doubt that's the issue.

Here is the CMakeOutput.log: https://pastebin.com/NJ2BW9yb

Thanks Will!

Avatar
W Pirkle
Admin
May 23, 2019 - 4:47 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

OK, the SDK is correct 3.6.13

There was an old file called factory.cpp that snuck into the ASPiK versions of the book projects, which has been updated. 

Perhaps that is your problem? 

Does CMake fail, or does the Compile fail? If so I would need the error logs from those two entities. 

- Will

Avatar
W Pirkle
Admin
May 23, 2019 - 4:54 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

As for VST2, Steinberg has officially obsoleted it, back in September.

So, you can not legally make VST2s any more unless you already had a prior licensing agreement with them. In that case you will need the other VST2 SDK files (if you already have a licensing agreement with them, then you have these files) and then you would need to add the VST3 -> VST2 wrapper code that they provide. 

When I emailed in the book manuscript last August, this was not the case and ASPiK would also make VST2s. When they officially gave their "shot across the bow" warning to developers (this included a pseudo-threat about "reverse engineering"), I removed the VST2 wrapper from the VST3 source code; there was a one-line stub in vst3plugin.cpp file, as well as the vst2wrapper.cpp file that contained the wrapper. 

- Will

Avatar
DataLife
Member
Members
May 23, 2019 - 7:17 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

W Pirkle said
OK, the SDK is correct 3.6.13

There was an old file called factory.cpp that snuck into the ASPiK versions of the book projects, which has been updated. 

Perhaps that is your problem? 

Does CMake fail, or does the Compile fail? If so I would need the error logs from those two entities. 

- Will  

The error occurs when I use "cmake -GXcode ..?

I redownloaded the new ASPiK, deleted and re-created the VolumePluginI project, and tried again and got the same result.

Odd thing is, I see all the files it's requesting in /ALL_SDK/VST_SDK/VST3_SDK/cmake/modules. And it's looking in list(APPEND CMAKE_MODULE_PATH "${SDK_ROOT}/cmake/modules"). So I don't understand why it isn't working.

The resulting process gives me these files in the mac_build folder:

Image Enlarger

I don't have an xcode project.

Other than that, I don't know what kind of information you'd need. I'm a quick learn with this kind of thing but new to C++.

 

W Pirkle said
As for VST2, Steinberg has officially obsoleted it, back in September.

So, you can not legally make VST2s any more unless you already had a prior licensing agreement with them. In that case you will need the other VST2 SDK files (if you already have a licensing agreement with them, then you have these files) and then you would need to add the VST3 -> VST2 wrapper code that they provide. 

When I emailed in the book manuscript last August, this was not the case and ASPiK would also make VST2s. When they officially gave their "shot across the bow" warning to developers (this included a pseudo-threat about "reverse engineering"), I removed the VST2 wrapper from the VST3 source code; there was a one-line stub in vst3plugin.cpp file, as well as the vst2wrapper.cpp file that contained the wrapper. 

- Will  

That would explain why Ableton is finally getting on the VST3 train. Good to know - thanks!

Avatar
W Pirkle
Admin
May 24, 2019 - 8:33 am
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

OK, I think I have found the issue and I need to make a new ASPiK SDK pack. The ASPiKreator is adding a secondary sub-folder that should not be there (PluginTemplate) and then that throws the CMake paths off by one. Not sure when that crept in, but I can fix it quickly. 

I will have an update as soon as possible. I will let you know when that is ready.

- Will

Avatar
W Pirkle
Admin
May 24, 2019 - 11:03 am
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

I have a few questions for you, and would like to see if your results are the same (this has to do with the VST3 SDK and not ASPiK).

Have you run CMake on the sample code in the VST SDK to produce the XCode project that contains all of the sample projects?

If so, did you compile without errors?

If so, which XCode are you using?

 

- Will

Avatar
DataLife
Member
Members
May 24, 2019 - 12:11 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

W Pirkle said
Have you run CMake on the sample code in the VST SDK to produce the XCode project that contains all of the sample projects?

If so, did you compile without errors?

If so, which XCode are you using?

 

- Will  

I'm using the latest Xcode - just installed it on this machine.

I tried it on ALL_SDK/VST_SDK/my_plugins/helloworld_with_VSTGUI

It looks better but not perfect, here was the output:

https://pastebin.com/zf6X0DM7

Avatar
W Pirkle
Admin
May 24, 2019 - 12:48 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

OK - here's the deal (so far). The issue with the ASPiKreator had to do with an extra folder layer (PluginTemplate) and an outdated CMakeLists.txt file. Both of these were easy and simple to find and fix (and for RackAFX7's Export ASPiK function, there is no issue at all). 

However, when I tried to compile the plugin I got a weird error involving rand( ) which is an ancient function. I reported it to the VST3 Forum here:

https://sdk.steinberg.net/viewtopic.php?f=4&p=2157#p2157

You can see that after "fixing" the validator, it works and the plugins build.

But my students used this same SDK to make Mac VST projects in my plugin class last semester without problems. Since they had already tested it (and trust me, they can break/crash anything) I thought we were OK to go. My gut feeling is that this is an XCode issue which is why I asked you the above questions. 

If you are on anything greater than or equal to XCode 8.3.3, could you please do this experiment:

1. in the VST3_SDK folder create a folder called "build"

2. open terminal and navigate to that folder

3. run cmake -GXcode ../

This will build the entire set of sample projects into one XCode file. It will be in the build folder and will be named "vstsdk.xcodeproj"

Launch that project in XCode and build (Command - B)

Do you get errors in the busconsistency.cpp file regarding the rand( ) function, or does it all work fine?

The ASPiK projects are going to be fine, but I need to know if there really is a compiler version issue here - in typical Steinberg form, they still list XCode7 and VS 2015 (which definitely does not work).

I can get you a new ASPiKreator and will have a revised SDK to deal with the old cmake file being incorrect. But, if you get hung up on the same rand( ) function as me, then you'll never get the plugins to compile anyway. 

Thanks

Avatar
W Pirkle
Admin
May 24, 2019 - 1:36 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

Just wanted to let you know that I have everything prepped and ready to go for a new ASPiK SDK. The ASPiKreator for MacOS has been updated to fix the folder error and the cmake files have been updated. I went through all the sample projects and created Universal and VST-only projects with the ASPiKreator, and all the cmakes worked and the XCode projects were all created. 

Right now I am waiting to hear from Steinberg Forum about the XCode versions allowed. When I run into a problem and I can replicate it with their own sample projects, I post to the forum - sometimes it takes days to get an answer. 

When I remove the validator target from the VST3 XCode project, and replace the validator EXE with the one from 3.6.12 then the plugins compile just fine and pass validation as expected. I am going to try a new XCode once my backup is complete. 

If needed I can give you that executable so you can build...

- Will

Avatar
DataLife
Member
Members
May 24, 2019 - 1:41 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Happy to help where I can.

Ran cmake on the build folder, here's the output: https://pastebin.com/aUqARMyJ

Building in XCode (Version 10.2.1) seemed to go okay: 

http://i66.tinypic.com/funokk.jpgImage Enlarger

Avatar
W Pirkle
Admin
May 24, 2019 - 1:56 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

Great - thanks for all your help.

This is an XCode version issue with the VST3 SDK.

Before uploading the SDK, could you do one more test for me? I have prepared a VolumePluginA project with the ASPiKreator. It is setup as a VST-only, non-Universal project.

You can download it here:

http://willpirkle.com/Download.....luginA.zip

You can plop that into your myprojects folder and then run CMake from the mac_build folder.

Then, you should be able to get a clean compile. If that works, LMK and I'll upload a new SDK.

NOTE: the CMake issues you had only involve the ASPiK SDK. The new FX book ASPiK plugin projects from the website pages don't have an issue with CMake. 

- Will

Avatar
DataLife
Member
Members
May 24, 2019 - 2:23 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Seems like it worked! https://pastebin.com/y7eRLRKE

Avatar
W Pirkle
Admin
May 24, 2019 - 2:26 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

Did the XCode project build without the "rand( )" error I got?

If so, then that one is solved. 

- Will

Avatar
DataLife
Member
Members
May 24, 2019 - 2:34 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Building results in "Cancelled".

I'd give you more info but I'm not quite sure where to find it. I don't see anything in the Issue Navigator or the Console.

Avatar
W Pirkle
Admin
May 24, 2019 - 2:36 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

Try a clean build (Product -> Clean) then build. I sometimes get the "cancelled" message if I hit *Command - B* then accidentally hit it again, or hit some other key. Not sure why...

Avatar
W Pirkle
Admin
May 24, 2019 - 2:41 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

OK, well it looks like I have to either update the OS or buy a new MacBook Pro - neither are good options. My version 8.3.3 is the last for my OS. 

I went ahead and updated the SDK and uploaded it to the ASPiK site (now 1.5.5). Once I pull the trigger on updating the OS, I don't know how long that is going to take...

- Will

Avatar
DataLife
Member
Members
May 24, 2019 - 2:48 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Same thing, even after cleaning. Then repeated this a few times and finally this error stayed after building: 

 

http://i68.tinypic.com/28aq0xw.pngImage Enlarger

Avatar
DataLife
Member
Members
May 24, 2019 - 2:57 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

I'm happy to keep testing stuff for as long as it's useful.

Avatar
W Pirkle
Admin
May 24, 2019 - 3:02 pm
Member Since: January 29, 2017
Forum Posts: 323
sp_UserOfflineSmall Offline

That isn't a "true" error - it is a "warning" so it alone should not stop the compile (and I noticed that this very issue that the warning throws has already been reported on the VST3 GitHub page as well).

If you got it with the plugin project, then you should have also gotten it with the sample code. 

The truth is that I use mostly the built-in CMake routines from Steinberg - my CMake files don't hack or circumvent anything. Unless there is something that has turned peculiar within the ASPiK files (which all worked fine in 3.6.12) then I think something else is up. I'm going to need to install a new OS in order to continue from this point because I can't get past the rand( ) issue -- that one is bizarre because rand( ) gets used elsewhere in both ASPiK and VST code without issues and I can't track down any dependencies that would cause it. The Steinberg engineers are already done with work right now, so we can't expect an answer from them on the versioning thing. In the meantime, I'm going to deal with the XCode update.  

One of my plugin students from last semester emailed that he is using XCode 10.1 and he had no problems compiling ASPiK plugins just a few weeks ago as VST-Mac. 

_ Will

Avatar
DataLife
Member
Members
May 24, 2019 - 5:39 pm
Member Since: May 23, 2019
Forum Posts: 18
sp_UserOfflineSmall Offline

Sounds good.

I just tried this with XCode 10.1 and had the same issue. I'm happy to use any version of Xcode because I'm not currently using it for anything else. I'm going to try 8.3.3 now assuming it'll run on Mojave.

Downloaded the new ASPiK SDK, seemed to go okay except for two things:

1. terminal says

-- Build files have been written to: /Users/nathanrightnour/Desktop/ALL_SDK/myprojects/VolumePluginI/mac_build

But there's no xcode project in there.

2. get the error

CMake Error at project_source/cmake/aax_cmake/CMakeLists.txt:158 (add_library):
Cannot find source file:

/Users/nathanrightnour/Desktop/ALL_SDK/AAX_SDK/Libs/Debug/libAAXLibrary_libcpp.a

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

CMake Error at project_source/cmake/aax_cmake/CMakeLists.txt:158 (add_library):
No SOURCES given to target: VolumePluginI_AAX

This doesn't affect me immediately.

Lastly, I'd love to get my hands on the validator from the previous SDK, if you could link to that.

Edit: reminder to update the version.txt in ASPiK 1.5.5 Wink

No permission to create posts
Forum Timezone: America/New_York

Most Users Ever Online: 55

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 41

clau_ste: 39

Gwen: 32

TheSmile: 30

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