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
Hot Topic (More than 8 Replies) How to import a new library (Read 8496 times)
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
How to import a new library
Mar 11th, 2015 at 6:35pm
Print Post  
I'm using VS 2012 with Visual Micro. I don't see how to install a new library. Under Project I see Add/Import Sketch Library, with submenus for User and Core. There I can select an existing library. But I don't see how to add one. The options in http://www.visualmicro.com/post/2011/10/27/How-to-add-an-Arduino-library-using-V... don't exist for me.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #1 - Mar 11th, 2015 at 10:08pm
Print Post  
sorry that is a confusing image in the documentation/.

the image simply shows the add library menu but unfortunately the add ino/cpp menu above is selected

do you have a library you want to add?
or
do you want to create a new library?
or
do you want to add a new .ino or .cpp to your sketch?

thanks
  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: How to import a new library
Reply #2 - Mar 11th, 2015 at 10:10pm
Print Post  
I want to import (add) an existing library
« Last Edit: Mar 11th, 2015 at 10:11pm by Bleary Eye »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #3 - Mar 12th, 2015 at 8:16pm
Print Post  
Hi

Okay please select the sketch project in the solution explorer then look at the "Project" menu. 

Can you then see "Add/Import Sketch Library" menu item?

If so then can you see the User/Core sub menus?

Thanks
  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: How to import a new library
Reply #4 - Mar 16th, 2015 at 5:16pm
Print Post  
I do see the submenus but no way to import. See attached screenshot.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #5 - Mar 16th, 2015 at 5:26pm
Print Post  
What happens when you click one of the library names?
  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: How to import a new library
Reply #6 - Mar 16th, 2015 at 6:36pm
Print Post  
When I click, for instance, os_wrap, it inserts "#include <os_wrap.h>" at the top of the file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #7 - Mar 16th, 2015 at 6:58pm
Print Post  
That's all there is to importing libraries. What do you feel is missing?
  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: How to import a new library
Reply #8 - Mar 18th, 2015 at 7:20pm
Print Post  
Apparently the word I should have used was "install" rather than "import". How do I install a new Arduino library that I've downloaded?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #9 - Mar 18th, 2015 at 7:31pm
Print Post  
Oh I see.

You can just unzip into mydocuments/arduino/libraries

If the libraries folder does not exist then create it.

Example: 

If the library is called MyLibrary1 then the folder structure should be

mydocuments/arduino/libraries/MyLibrary1

You can click "tools>visual micro>reload tool chains" for the lib to be recognized or restart the ide


  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: How to import a new library
Reply #10 - Mar 20th, 2015 at 12:59pm
Print Post  
OK, thanks. Would be nice to have that as an option in the plugin; the Arduino IDE has that.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to import a new library
Reply #11 - Mar 20th, 2015 at 2:40pm
Print Post  
Yes I agree  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint