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 How to add user libraries? (Read 6051 times)
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
How to add user libraries?
Nov 28th, 2013 at 10:10am
Print Post  
Hello everyone,

I have read some forum posts on the subject, but did not find the answer I was looking.
Problem! The menu item  "User" ("Add/Import  Sketch Library ") disabled. I can not add your own library. How to activate a menu item "User"? Undecided
Thank you!
« Last Edit: Nov 28th, 2013 at 1:05pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add user libraries?
Reply #1 - Nov 28th, 2013 at 1:08pm
Print Post  
Hi,

User libraries will appear if they can be found.

User libraries should be located under a folder called libraries below the sketchbook folder. 

By default the sketchbook folder is "c:\my documents\arduino"

The sketchbook folder location can be overridden using the options where you specify the Arduino IDE location.

Do you have a libraries folder below your sketchbook folder?
  
Back to top
IP Logged
 
SomeMoreOfLess
Newbies
*
Offline


Posts: 2
Joined: Dec 8th, 2013
Re: How to add user libraries?
Reply #2 - Dec 9th, 2013 at 3:52pm
Print Post  
I just installed visual micro with VS 2013pro and had some problems getting libraries to work too.

In the end I found the option "Parent Libraries" that was set to False.
(Menu: Tools -> Options -> Visual Micro. Under "Mcu General" Set "Parent Libraries" to True)

Now Arduino user libraries work when placed inside a folder called "libraries" inside the optional sketchbook location I've set.
(Custom location can be set in the same Options window. Application Ide Locations.)

Maybe this information can be added to this page?

With the default arduino IDE the libraries folder doesn't relate the to the location where you save your projects. I always had them in documents/arduino/libraries.
« Last Edit: Dec 9th, 2013 at 3:58pm by SomeMoreOfLess »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add user libraries?
Reply #3 - Dec 10th, 2013 at 2:06pm
Print Post  
Thanks for the info. It sounds like arduino have changed this because the optional libs location has previously always been a sub folder of the "Sketch Book" location (where all the sketches are stored)

We will re-visit and fix if required for the next version.

Thanks very much for raising this.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add user libraries?
Reply #4 - Dec 17th, 2013 at 9:28pm
Print Post  
Hi, 

Please state which version of the Arduino Ide you are using? 

I can't find any examples where the custom libraries and hardware are located under a fixed path such as documents\arduino when the sketchbook location has been changed. 

Did you change the sketchbook location in Visual Micro or in the Arduino Ide? Maybe this is the confusion... 

If you enter a sketchbook folder in Visual Micro then the Arduino ide will not know about it. 

However, if you clear the sketchbook folder from Visual Micro then use the File>Preferences>Sketchbook property in the Arduino Ide then both Arduino and Visual Micro will share the same sketchbook folder.

This combination has been chosen to give the most flexibility for users. If you alter the sketchbook folder in the Arduino Ide then click Tools>Visual Micro>reload toolchain or restart the Ide.

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