Dave - Linked Folder

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi all,

hopefully someone can help me with a DAVE related problem:

I have to use source and header files which are not directly located in the project directory itself but somewhere else. This is because the code is shared with some other microcontrollers which implement exactly the same algorithm. At the end of the development we want to use an automatic build process.
As revision control we use SVN.

Now the question: In DAVE Eclipse IDE I have the possibility to use a so-called Linked Folder where I can specify the directory in my filesystem. The problem is that this is an absolute path: C:home/sebastian/.......
If someone of my colleagues checks out the repository then of course the above path is not correct any more. I need DAVE to use relative paths in order to meet my target.

Thank you for helping!
Kind regards
Sebastian
0 Likes
4 Replies
Not applicable
OK, I made some success. First I thought the Variable PROJECT_LOC would be the solution. But I didn't expect that eclipse does not get on with ../..
I did the following:

Link to folder in the file system:
PROJECT_LOC/../../otherSourcePath

But the movement to the directory up with .. seems not to work.

Kind Regards
Sebastian

Sorry for creating this post in the wrong forum. I placed it here but actually it belongs to the DAVE forum. Sorry for that.
0 Likes
Not applicable
Has nobody any idea how to achive this?
0 Likes
User8819
Level 4
Level 4
Hi,

You may try to set environment variable (different on each PC) and then use it in project paths. See attached pictures on how to achieve this. I hope it solves your problem.

rum
0 Likes
User14604
Level 4
Level 4
First solution authored
... Dave from the grave ...

It is possible, using DAVE 4.4.2:

- Select the main project which links to the external folder.
- Project
- Settings
- C/C++ General
- Paths and Symbols
- Source Location
- Link Folder
- input a name in Folder name under which the link is supposed to appear in
- open Advanced
- check Link to folder in file system
- Browse
- select folder
- edit the folder to be relative to project folder (e.g. "../common")

That's it. The .project file contain a new item when closing workspace or saving the project.



common
2
$%7BPARENT-1-PROJECT_LOC%7D/common

0 Likes