projectGenerator
projectGenerator copied to clipboard
If OF to stored on a different drive than your project root, visual studio project file is invalid
My setup is this:
- OF directory is stored on my d: drive
- App code is stored on my c: drive (dropbox folder for reasons)
If I used the project generator, the sln and vcxproj files refer to the of directory as a bunch of ../..
with no mention of the drive letter once it gets to the root. This means the solution file and the vcxproj file need to have a search and replace done on it that replaces all of the ../
's with the drive letter (in my case d:
.
If I can figure it out, I'll send a PR that checks for going across drive boundaries, and then just using the absolute path from the drive.
thanks for the detailed report.
If it's helpful I would guess that the error is somewhere in here:
https://github.com/openframeworks/projectGenerator/blob/5233313662c9672db6670423ede30627a1092c1a/ofxProjectGenerator/src/utils/Utils.cpp#L398-L443
which is computing the relative path to the OF root -- it looks like maybe we haven't considered separate drives?
Thanks for the pointer on where to look. I'll try to get a PR out tonight or tomorrow. Should be a relative straightforward fix looking at the code you linked