This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting build errors while moving source code to a new folder

I have downloaded the latest version of nRF SDK (version 17).  I am using Segger 4.50

The examples provided with the SDK use absolute paths, and will break if you relocate them to a different folder.    I went in to Projects > Options > Preprocessor and changed all the absolute paths to the new locations.

When I try to build the project I get multiple errors, all saying unable to locate the file.  Is there a straight forward way to move an existing example to a new folder, where I can modify it?

Parents
  • Hi,

    I'm afraid there's no easy or straight forward way to move an existing example to a new folder, since, as you said, it uses absolute paths. It should work if you change all user include directory paths to work with your new location, but that's not necessarily trivial. I would instead recommend that you copy the example you want to change and add that example folder to the same folder as where the original example is located, so you're certain that the paths are correct.

    Best regards,

    Marte

Reply
  • Hi,

    I'm afraid there's no easy or straight forward way to move an existing example to a new folder, since, as you said, it uses absolute paths. It should work if you change all user include directory paths to work with your new location, but that's not necessarily trivial. I would instead recommend that you copy the example you want to change and add that example folder to the same folder as where the original example is located, so you're certain that the paths are correct.

    Best regards,

    Marte

Children
No Data
Related