did you try to delete some folder files as config.make?
I mean before run PG…
I remember similar errors sometimes on Windows.
then I deleted all files except src, bin (if required data) and addons.make
What Visual Studio are you using?
the more “stable” version is to use VS 2017.
I would try to remove the other versions like 2019, 2022…
(Then you can update when you are more familiar with Windows/used addons behavior.)
It has the extension to add addons,
but also sometimes you will get some errors because the compilers versions.
Yes, this info is recently updated…
it’s a little mess to merge many VS versions.
When opening the project for first time, you can update the PG (2017) generated project to 2019, and it usually works.
Also maybe you can use the “MS selector thing” to set the VS 2017 as default and avoid uninstalling the others 2019/2022, but sometimes seems tricky.
Yes I have noticed that some projects say something about v141 and want to update to v142. I usually ok that and the example projects have build just fine. The original ofxOpenVR examples build just fine with VS2019. It’s just the fork with that specific branch.
It has been a long time, but I have seen the error you get with the example-simple when I was using openVR. I am pretty sure you can fix it by casting the variable: LPCWSTR(const char variable) called in the function throwing the error.
Were you able to add the ofxOpenVR.props sucessfully for example-simple ?
Just to make sure, when you make a project with the PG you dont need to add any of the addons, the props file will do all the work (if you get it working).
Lastly openVR is a git submodule, I am guessing you did this, but you need to init the submodule to get the required repo in the libs folder.
After creating the project with the PG,
you can open it with VS 2017,
but then right-click to openframeworksLibs / properties
(maybe to the OF app project too…)
and you have to set the platform to v141 (VS 2017) like this: