Fixed paths for source files in project folder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fixed paths for source files in project folder

647 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nsmith17044 on Thu Dec 18 05:51:01 MST 2014
I recently tried to move a LPCExpresso project to another PC, both running V7.5.0 and found that the source files that I manually added to my project source folder seem to be referencing a fixed path as if still on the first machine.  Files that were wiz'd with LPCOpen are fine and can be opened / compiled / linked.  However I assume I've added the files to the source folder in an incorrect way although it was the only way I could find that worked.

I was right clicking on my source folder in the project -> NEW -> FILE, picking ADVANCE, selecting link to file system and adding the file from there.  This appears to use a fixed path and not a project relative path.

So how do I add existing C and H files to a project folder and get it to use relative paths?  I've tried using the IMPORT option but I can't get it to give me the option to do an import without some message like the file already exists in the target or something like that. 

Is there any way to correct these paths for files already in the project that are not being 'found'?

Nathan
0 Kudos
Reply
1 Reply

633 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nsmith17044 on Thu Dec 18 06:37:09 MST 2014
Update:

I think I managed to figure out the issue on my own.  LPCOpen seems to disable the 'FINISH' button in the import tool ({project}->IMPORT->GENERAL->FILE SYSETM) if it sees the file already in the target source folder when it is also the import source path.  I realized if I move all of the files from the source folder in the file system to a temporary folder and then import from that location, the finish button was then enabled and it performed the import as expected.

After doing a clean, it was able to find the locations of the files again for the build.

Nathan
0 Kudos
Reply