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 do i set library path (Read 2190 times)
JamesFarmer
Junior Member
**
Offline


Posts: 71
Joined: Mar 1st, 2020
How do i set library path
Jan 18th, 2022 at 1:04am
Print Post  
How can i set were each library is pulled from.

How can I set in Visual stuidio Default location for Libraries

If i type #include "blabla.h"  without typing the whole path it will pull from the arduino libraries folder. 

But what if i have another folder that I also want to pull Libraries from.  With the esp32 arduino idf the libaries are in another location some seem to pull but some will default to the arduoino folder first.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How do i set library path
Reply #1 - Jan 18th, 2022 at 3:41am
Print Post  
The defaults follow the Arduino rules.

Please post the information requested in the yellow box above

Thanks
  
Back to top
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 71
Joined: Mar 1st, 2020
Re: How do i set library path
Reply #2 - Jan 18th, 2022 at 1:29pm
Print Post  
Sorry about not doing in last it was more general question 

So, in the attached build you will see it using this 
Using library WiFi version 2.0.0 in folder "file:///C:/Users/Home/Documents/Arduino/libraries/WiFi"

But in my code i put this
#include ries\WiFi\src\WiFi.h"
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: How do i set library path
Reply #3 - Jan 18th, 2022 at 1:55pm
Print Post  
Thanks for the update and information.

The library in the libraries folder is overriding the one you want to use from the core.

If you do not need to keep the one installed in the libraries folder (assuming its an older version of the same library), it can be deleted or moved to another location, and the core library will be automatically used in that case.
  
Back to top
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 71
Joined: Mar 1st, 2020
Re: How do i set library path
Reply #4 - Jan 18th, 2022 at 2:52pm
Print Post  
Can i add the libraries manually like as reference?  I have been unable to do that but would be nice.  Or even as connected project like the cloning in the library manager but manually add.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint