Sysprogs forums › Forums › VisualGDB › Relative paths
- This topic has 6 replies, 2 voices, and was last updated 8 years, 1 month ago by
hvbill.
-
AuthorPosts
-
October 16, 2017 at 15:43 #12671
hvbill
ParticipantHi,
Is it possible to have VisualGDB use relative paths for e.g. IntelliSense Directories?
We will be a bunch of developers working with the same project and the source code location will vary.
October 16, 2017 at 18:18 #12674support
KeymasterHi,
Yes, normally you can just use the regular “subdir” or “..\dir\subdir” syntax.
Also for many cases (like SDK directories), VisualGDB handles this automatically and uses generalized paths like $(BSP_ROOT) instead. Feel free to let us know more about your setup so that we could advise how to set it up in the easiest way.
October 17, 2017 at 06:49 #12678hvbill
ParticipantWe’re working in Windows, targeting an ARM-platform. And when I try to replace any of the paths to D:\ (see the attached image) with relative paths, they get replaced with absolute ones the next time a setting is changed that makes VisualGDB test the selected toolchain.
[Edit: uploaded new image]
-
This reply was modified 8 years, 1 month ago by
hvbill.
Attachments:
You must be logged in to view attached files.October 17, 2017 at 18:48 #12690support
KeymasterHi,
Those paths should be internally stored as relative paths. You can double-check it via VS project properties (not VisualGDB Project Properties) -> NMake -> Additional Include Directories.
VisualGDB applies a few internal transformation to the paths when storing them to allow portability across different machines, so the displayed paths are shown as expanded full paths to avoid confusion.
October 18, 2017 at 09:51 #12701hvbill
ParticipantI don’t find the Additional Include Directories mentioned above, but there is a line called Include Search Path with similar content (see attached image), and it also use absolute paths.
But in VisualGDP Project Properties -> Makefile settings -> Include directories, I finally found my relative paths. These include paths are stored in debug.mak/gcc_Debug.h with relative paths but as soon as I change something in VisualGDP Project Properties, .vcxproj is updated with absolute paths.
I don’t see how we can avoid to share the .vcxproj file via source control so is there a way to have relative paths there as well?
Attachments:
You must be logged in to view attached files.October 18, 2017 at 21:21 #12710support
KeymasterHi,
Sorry for the confusion, Include Search Path is the correct option.
We have rechecked the behavior for the manually added directories and managed to reproduce and fix the issue. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.3.13.1878.msi
October 19, 2017 at 14:25 #12718hvbill
ParticipantIt works perfectly!
Tack så mycket!
-
This reply was modified 8 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.