Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Having .cpp/.h files outside the project directory (Read 5083 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Having .cpp/.h files outside the project directory
Jun 2nd, 2015 at 8:44pm
Print Post  
Hi,

my question may look similar to the 'Can not put .cpp and .h files into a subdirectory' post.

Where I now work, we are two person developing. Thing is some of the source files are used by us two, being kind of libraries. Arduino's IDE works with libraries, but these libraries are local to each installation, so we would need to have each our own copy.

(Please take an Aspirin, this will tough  Huh) Is there some way we could have external libraries that we could both incorporates in our project ? They would not be right in the project's folder, but in a shared location.

I understand that it may be far from Arduino. At this time we use AtmelStudio 6.2 and Arduino 1.0.6.

Thanks

Gilles Plante
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Having .cpp/.h files outside the project directory
Reply #1 - Jun 2nd, 2015 at 8:57pm
Print Post  
Why not set your sketch book folder to a shared location and map the drive if that's easier L:\Arduino\SharedSketchBook then libraries would be in L:\Arduino\SharedSketchBook\Libraries, or share the \arduinoide folder.

For personal libraries put them in ArduinoIde\Libraries but keep a copy of them or always use the portable .zip for install just in case the Arduino ide installer deletes them.

?
« Last Edit: Jun 2nd, 2015 at 9:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Having .cpp/.h files outside the project directory
Reply #2 - Jun 2nd, 2015 at 9:05pm
Print Post  
Tim,

not bad suggestions you have.

To make it a little more complicated, we have a repository on a NAS drive for the projects, but work locally and use TurtoiseHg as the versioning system. We commit locally and a few times a week we merge on the repository.

Having a shared location for the IDE is not a bad idea... things is the NAS is painfully slow, but may be having the IDE there would not be so bad.

Thanks for your suggestions

Gilles Plante
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Having .cpp/.h files outside the project directory
Reply #3 - Jun 2nd, 2015 at 9:15pm
Print Post  
Interested to hear how it goes. You can have local tool chains by deleting the hardware\arduino\avr folder and using boards manager to install an avr core. In that case the avr stuff will be located in users\name\appdata\roaming\arduino15

If you set the ide location using winreg "hkcu\software\visual micro\locations\arduino 16x.." you don't even need the arduino.exe. Thus only libraries will be read from the shared drive. 

Vm does not use the arduino.exe other than in the ide locations dialog to validate the path. You can probably just have a folder with arduino\libraries, arduino\libs\version.txt, arduino\hardware\platform.keys.rewrite.txt and Visual Micro will think its an ArduinoIde install. Not tested it but seems logical.
« Last Edit: Jun 2nd, 2015 at 9:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Having .cpp/.h files outside the project directory
Reply #4 - Jun 2nd, 2015 at 9:24pm
Print Post  
Tim,

you may have missed a point (so easy with IDE's naming): we use 1.0.6, not 1.6.x. We stayed away of 1.6.x because it changed a lot from version to version.

Would there be any benefits for us in moving to 1.6.x ?

Thanks

Gilles Plante
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Having .cpp/.h files outside the project directory
Reply #5 - Jun 2nd, 2015 at 9:29pm
Print Post  
Hi Giles,

I see okay that makes sense.

No other than what I described and a few updates there is little or no benefit but I didn't say that  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint