I wanted to do some beta testing this evening, testing some new SDK functions, but I screwed up overwriting files from the 4.6.21 SDK.
I think I removed some of the old SDK files, and don’t know how to fix it.
Is there somewhere a post/article how to (re)install the SDK and how to put a new SDK version on top of it?
I removed the entire ‘build’ directories, and it seems there were source files from the SDK inside (I cannot believe that they were used, but it seem they were needed somehow).
I only get the error:
------ Rebuild All started: Project: global_rackspace_cpp2, Configuration: windows-native ------
Thank you … I use JUCE, and it seems that part you mentioned is for JUCE in the cmake/dependencies.cmake file, or at least, it should be there. I added it and now it works (except I have to now use the latest SDK).
As a member of the beta group, you need to always be using the latest SDK published – as newer GP betas are released, older SDKs are not guaranteed to work
However, this SDK has an interface directory with files that are not split by header/source so I cannot just copy them (I tried), and also they do not contain namespaces. So where can I find the latest (good) beta SDK ?
Oh I see – yeah, unfortunately I’m just posting my changes ---- a few people worked on creating a modified version that uses namespaces — I’m not yet using that version as it doesn’t fit into my build process and I haven’t had time to update that process yet
Usually either @simon or @rank13 updates the GP SDK repository at some point after the newest SDK is out.
Figuring out what GIT_TAG to use is a different challenge, but the current one I am using for 4.6.21 is GIT_TAG f6b1ad94a3af83afd269a327e93ddc6cf94cb1b1
Thanks for that number, however I notice that the SDK which was in the message pointing to the announcement of the new beta version does not have name changes, and without those, my application does not work. I think almost no extension will work, but maybe I did something wrong. It seems @dhj needs to update it, or maybe I don’t understand it wrongly (probably the last). Guess I need some help here
Like the GP_SDK.zip file has 3 directories, in the interfaces there is a C and CPP directory, with a mix of .h and .cpp files. Where should I copy those files to? In my build/native-windows/_deps folder, there are some GP SDK source files with the same names (sort of), at least with also a c and cpp directory, but those are separated by header and .cpp files. Should I copy these somewhere else? And how should I make them (with visual studio 2022) ?
In the readme.txt that comes with the SDK with the following info, I must say I’m using VS 2022 (I doubt that should be a problem), but the last command is not recognized. But I guess the problem is where I copy the files to.
For Windows - please use “Developer Command Prompts for VS 2019”
The above should set all required environment variables, but in some cases you may need to run this batch file
to create an environment for building the SDK stuff using CMAKE
I’m not particularly competent with Git, Visual Studio, or even C++ but I can usually copy other people’s stuff and figure out how to get it to work. I think I originally copied @rank13’s CMakeLists.txt from gp-rank13/gp-selector-beta (github.com) and the dependencies.cmake from the cmake directory there.
I don’t use Juce, so I made some simplifications (or maybe copied the CMakeLists.txt from somewhere else), but the thing with those is to update the GIT_TAG line as I mentioned above so it reflects the latest GP SDK version on GitHub.
Because the folder structure of the GP_SDK.zip that David posts with the beta releases is different than the one on GitHub you can’t go back and forth very easily. Maybe we can convince David to start using the GitHub structure of the SDK when he makes beta updates. I’m pretty far outside my depth on that, so I think that needs to be a discussion between @dhj and @simon.
Thanks for your info. I now see that the structure of the github version is equal to what I have in my build directory and the extension now builds and runs :-).