Go to Post And then, at the end of the match, the drive teams who are being lifted all say at once (in a GOVERNATOR voice)- "GET TO ZE CHOPPER!!!" - Graham Donaldson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2007, 13:26
RickErmer RickErmer is offline
Registered User
FRC #0073
 
Join Date: Feb 2007
Location: Rochester, Ny
Posts: 3
RickErmer is an unknown quantity at this point
How to copy a project in MPLAB IDE

I want to copy an existing project / workspace that has our working code to a new project so I can write some test code but still be able to keep the working code intact. I tried just copying the folder the workspace was in and renaming the folder, but it still thought the source files were in the original folder.

If I use the new project wizard, it doesn't come with the proper options as a default and I seem to have missed something because now the code doesn't compile.

Thanks,
Rick
  #2   Spotlight this post!  
Unread 09-03-2007, 13:36
Snappel328's Avatar
Snappel328 Snappel328 is offline
Programmer
AKA: Chris Reins
FRC #1746 (Forsyth Alliance)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Forsyth County
Posts: 33
Snappel328 will become famous soon enough
Re: How to copy a project in MPLAB IDE

Just save the workspace to a different folder and then open that workspace save file for testing and use the original workspace save file as a copy of your working code.


Sorry if that's hard to understand. I've never been good at explaining details without a visual.
__________________
2006 Peachtree Regional Rookie All-Stars
2006 Championship Imagery Award Winners
2007 Peachtree Regional Imagery Award Winners
  #3   Spotlight this post!  
Unread 09-03-2007, 13:57
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Re: How to copy a project in MPLAB IDE

I have always been able to just copy every file in the folder, and then paste them into another empty folder that is already named. Never had any problems with that, but MPLAB does have its ways.
  #4   Spotlight this post!  
Unread 09-03-2007, 14:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How to copy a project in MPLAB IDE

After you use the Project Wizard to create a new project the main setting that's missing is the Include Path.
Project -> Build Options... -> Project
click on Browse by the "Include Path" field and it will usually have the "h" directory already highlighted and you can just click "OK." If it isn't then navigate to C:\mcc18\h\ and use that.

Under the MPLAB C18 tab click "Use alternate Settings" and add
-nw=2066
at the end of the string that's already there.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 09-03-2007, 15:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to copy a project in MPLAB IDE

Quote:
Originally Posted by RickErmer View Post
...I tried just copying the folder the workspace was in and renaming the folder, but it still thought the source files were in the original folder.
Any files that were open in the original workspace will be reopened when you open the new copy of the project. Just close them all. When you open a file from the list in the new project, it should open the correct one.

You'll also have to do a "clean build" of the project the first time so it doesn't remember the object files from the previous folder. If you don't do that, you're likely to get an error about some symbol being non-overlay and defined multiple times.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLAB IDE rholokleolke Programming 13 08-12-2006 18:32
MPLAB IDE Problem amateurrobotguy Programming 10 26-02-2005 09:29
MPLAB IDE 6.60 Error mchan1111 Programming 8 08-11-2004 20:17
MPLAB IDE Project Specs Raven_Writer Programming 18 19-01-2004 15:53
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


All times are GMT -5. The time now is 19:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi