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 Cannot use non-standard libraries, nor modify "Additional Include Directories" (Read 5030 times)
VaderOz
Newbies
*
Offline


Posts: 4
Joined: Jul 14th, 2014
Cannot use non-standard libraries, nor modify "Additional Include Directories"
Jul 14th, 2014 at 5:52am
Print Post  
Hi, 
The following is with Visual Studio 2013 Ultimate.

I just installed the latest Visual Micro.  I have a non-standard Library that I am trying to use.

I cannot use it because it is not under my Sketchbook path, so I want to add it to this project.
« Last Edit: Jul 14th, 2014 at 12:55pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
VaderOz
Newbies
*
Offline


Posts: 4
Joined: Jul 14th, 2014
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #1 - Jul 14th, 2014 at 5:54am
Print Post  
Oh - it's worthwhile adding that if I manually edit the .sln file and add the path, it makes no difference.  I still cannot compile.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #2 - Jul 14th, 2014 at 1:00pm
Print Post  
Hi,

The way Arduino works is that you can put libraries under sketchbook/libraries folder. The library folder must have the same name as a .h file within the library folder.

There are 3 revisions of Arduino library structure published by Arduino.cc, Visual Micro supports all 3.

Currently Visual Micro performs an Arduino compatible compile and ensures that sketch remains compatible with the Arduino Ide. This means that we must be able to work without project or solution files so the compile must be able to work without modification to paths.

Because of the Arduino rules Visual Micro reflects the correct settings to the VS project to ensure intellisense works. This means that Visual Micro manages the pre-processor, build properties and library paths. This is why you can not alter them manually and anyway with the way the Arduino build process works it would not make sense to alter the project paths manually.

In future versions of Visual Micro we do intend to open up this area but it might also involve working in cpp only and not .ino. The combination of all .ino files for the build process is one of the reasons a temp build folder is required and a main reason for issue with paths.

I hope this makes sense.
  
Back to top
IP Logged
 
VaderOz
Newbies
*
Offline


Posts: 4
Joined: Jul 14th, 2014
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #3 - Jul 14th, 2014 at 1:25pm
Print Post  
Sorry Tim, no, your reply doesn't make sense. I'll look at moving the library for now so it's under my Sketchbook path and see if that helps.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #4 - Jul 14th, 2014 at 1:31pm
Print Post  
Hi,

Sorry.

Maybe it is easier to say this...

Please visit arduino.cc to understand the Arduino structure supported for libraries. 

Visual Micro follows the Arduino rules.

User libraries are fully supported under the Arduino rules (not the Visual Studio rules which are not compatible with Arduino).

Thanks
« Last Edit: Jul 14th, 2014 at 1:33pm by Tim@Visual Micro »  
Back to top
IP Logged
 
VaderOz
Newbies
*
Offline


Posts: 4
Joined: Jul 14th, 2014
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #5 - Jul 14th, 2014 at 1:34pm
Print Post  
Ok, now I understand. Thanks Tim.

(and yes, that was my Email you replied to earlier)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot use non-standard libraries, nor modify "Additional Include Directories"
Reply #6 - Jul 14th, 2014 at 1:34pm
Print Post  
Oh great that's a relief that you are getting emails!

Thanks again
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint