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
plugin object folder
Avatar
jim
Member
Members
May 14, 2020 - 4:51 am
Member Since: January 1, 2020
Forum Posts: 14
sp_UserOfflineSmall Offline

Hi Will, 

I am trying to build the latest DemoCustomViews using VS 2017 and ASPiK 1.6.5

I'm encountering an issue because the empty PluginObjects folder is not being created within the project_source sub folder.

As a result I'm not sure how to include fxobjects.h and fxobjects.cpp into the project.

When I create a new project using ASPiKreator the PluginObjects folder is created fine.

When I take the code from the DemoCustomViews.h and .cpp files + it's GUI resources into the ASPiKreated project then the debug will build and run successfully however when going to release mode it produces a sea of red errors.

Help with either issue would be great. 

Thanks

Avatar
W Pirkle
Admin
May 14, 2020 - 1:43 pm
Member Since: January 29, 2017
Forum Posts: 462
sp_UserOfflineSmall Offline

Well, not sure of the red error sea - a printout would help. But there are some issues to understand:

1) you use DemoCustomViews project directly; you don't need to create a new project and then copy the files into it. You just need to edit the CMakeLists.txt file as per the readme.txt file in the WithFFT or WithoutFFT subfolders (guessing you already knew that, just being complete)

2) None of the Demo projects use the fxobjects files, so none of them have a PluginObjects folder (this is actually because of GitHub's dealing with empty folders and the fact that these demos are supposed to be the simplest, most stripped down projects available for the least confusion for plugin newbies)

3) the fxobjects.h and .cpp files are not technically part of ASPiK, which is just the framework. They are actually part of the 2nd Ed FX book and part of my teaching software called RackAFX. They are free to use and there is no license. However, due to input from many engineers, I decided to keep them separated from ASPiK because they have their own design pattern and I don't want anyone thinking that pattern is part of ASPiK or must be used in ASPiK -- this is a common, but incorrect assumption among my students.

You do not get them automatically installed with ASPiKreator, but the PluginObjects folder is created for you if you want to populate it with these files, or any other 3rd party object files.

The link for you to download the fxobjects.zip package is at the top of the ASPiK documentation for the various FX objects and classes. 

http://aspikplugins.com/sdkdoc.....jects.html

and is here:

https://www.willpirkle.com/Downloads/fxobjects.zip 

There are 3 files inside, just dump them into your PluginObjects folder and then add them to your Visual Studio or Xcode project in the usual fashion.

That should get you up and running.

Will 

Avatar
jim
Member
Members
May 15, 2020 - 4:22 am
Member Since: January 1, 2020
Forum Posts: 14
sp_UserOfflineSmall Offline

Hi Will thanks for explaining that, it's all definitely good to know. But I am still unsure how to proceed with my objective here.

Can you explain how to add an object to the DemoCustomViews project? Is there an alternative folder for resources or can one be created?

Currently even for new objects made in the project via Class Wizard I cannot successfully add them to plugincore.h.  On the #include statement I'm receiving the error "Cannot open source file" no matter what I try.

Cheers

Avatar
W Pirkle
Admin
May 15, 2020 - 6:08 pm
Member Since: January 29, 2017
Forum Posts: 462
sp_UserOfflineSmall Offline

Hi Jim

There is nothing in ASPiK that dictates where your objects reside but I do add the PluginObjects to the include file path list in both Visual Studio and Xcode, so if you manually add this folder, VS and Xcode should automatically find it and when you #include, you won't need extra folders or a full path.

I think you are having a folder issue. If you place your C++ objects in the PluginKernel folder, then you can add it to VS (Right-click and Add -> Existing Item, then find the files). If you want to make your own  custom folder, you can do that too but will need to either add a path to the VS properties, or #include the full path.

LMK if you still have problems. 

Will 

Avatar
jim
Member
Members
May 16, 2020 - 4:24 am
Member Since: January 1, 2020
Forum Posts: 14
sp_UserOfflineSmall Offline

Excellent, that was exactly the issue I was having.

It was instantly working linked from the PluignKernel folder.

Many thanks for the extra info + the new update. 

Jim

Avatar
W Pirkle
Admin
May 20, 2020 - 2:47 pm
Member Since: January 29, 2017
Forum Posts: 462
sp_UserOfflineSmall Offline

Please note that I just released a new and updated fxobjects.zip package today (5/20/2020). See the post here for more information:

https://www.willpirkle.com/forum/recent-uploads-activity/fxobjects-zip-5-20-20-new-version/#p2658

Will 

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

JimmyM: 33

Gwen: 32

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 632

Moderators: 1

Admins: 4

Forum Stats:

Groups: 13

Forums: 40

Topics: 667

Posts: 2597

Newest Members:

VariableCook, Henry, Adekoya Adams, WillAMR, weedshop, Gennaro Schiano, HOA, sanketVxT, sem1307, djd_oz

Moderators: W Pirkle: 462

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 462