+ Reply to Thread
Results 1 to 5 of 5

Thread: Dave - Linked Folder

  1. #1
    Sebastian83
    Guest

    Dave - Linked Folder

    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
    Last edited by Sebastian83; Aug 6th, 2015 at 06:04 AM.

  2. #2
    Sebastian83
    Guest
    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.
    Last edited by Sebastian83; Aug 7th, 2015 at 02:00 AM.

  3. #3
    Sebastian83
    Guest
    Has nobody any idea how to achive this?

  4. #4
    New Member New Member rum will become famous soon enough
    Join Date
    Jul 2014
    Posts
    130
    Points
    205.15625
    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
    ?????? ?????? C2.JPG‎   C1.JPG‎  

  5. #5
    Beginner Beginner ErnieT is on a distinguished road
    Join Date
    Feb 2018
    Location
    Germany
    Posts
    31
    Points
    330
    ... 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.

    Code:
    		<link>
    			<name>common</name>
    			<type>2</type>
    			<locationURI>$%7BPARENT-1-PROJECT_LOC%7D/common</locationURI>
    		</link>

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.