I would like to ask for assistance on installing the C++ SDK to projects using Visual Studio 2022. The issue is that the installer asks that VS2019 be installed, which is annoying…
The main use case is that I have a C# plugin. Some operations (not using Rhino) are done in native code using marshalling. I wrapped the functionality in a C++ library and I marshall the calls from/to C#.
But there are some operations that call/use Rhino objects that I would like to keep on the C++ side (currently they are brought back to the managed C# side…).
For this, I need my C++ library project to link to the Rhino C++ SDK - so that I can have one library to rule them all!
Can I use a prebuilt private library with this tool?
Yes. The portfile.cmake for a library is fundamentally a script that places the headers and binaries into the correct arrangement in the ${CURRENT_PACKAGES_DIR}, so to pull in prebuilt binaries you can write a portfile which directly downloads and arranges the files.
To see an example of this, look at ports\opengl\portfile.cmake which simply copies files out of the Windows SDK.
I find it great, and it really does solve the problem of finding and linking dependencies in windows when using Visual Studio. The packages are magically available to any C++ project in Visual Studio and you can simply add the include of the header file you need.
In my local machine I can see the header files in the C:\src\vcpkg\installed\x64-windows\include folder, the lib files in the C:\src\vcpkg\installed\x64-windows\lib and the .dll/.pdb in the C:\src\vcpkg\installed\x64-windows\bin folder.
It feels to me that it could make sense to add the Rhino SDK to the tool. Perhaps this could become a feature request?
How I can make The “rh738sdk_7.38.24338.17001.msi“ to install if I do have VisualStudio 2022? I do installed the “Visual Studio Build Tools 2019“ v16.11.49 but even so, when I do launch the “rh738sdk_7.38.24338.17001.msi“ installation I do get a “Please install Microsoft Visual Studio 2019 before installing the SDK.“
Has somebody managed to install the Rhino7 SDK lately?