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 Include local libraries that are not installed (Read 1381 times)
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Include local libraries that are not installed
Sep 21st, 2022 at 7:46am
Print Post  
Hi,
I am using VS 2022. I am trying to include libraries that are located under my Libraries folder in the project folder. They are not installed under the Arduino IDE library locations but just copied to my project.
I used the "include in project" function in the solution explorer but it would seem that they are not added to the paths as the headers are not found by intellisense or the compiler.

Is there a specific way to do this?
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2177
Joined: Feb 13th, 2019
Re: Include local libraries that are not installed
Reply #1 - Sep 21st, 2022 at 9:07am
Print Post  
It should be as simple as checking the vMicro > Add Libraries > Clone For Project When Including Libraries, and then selecting the library from the drop down list, as shown on this page:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Add-Libraries.html

Can you provide a screenshot of the Solution Explorer with the project expanded, as well as the build output with the settings shown at the top of this page.
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Include local libraries that are not installed
Reply #2 - Sep 21st, 2022 at 9:32am
Print Post  
The libraries are not installed on the Arduino IDE platform or paths. They are highly modified libraries that has to be added to my project directly and not through the library manager.
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Include local libraries that are not installed
Reply #3 - Sep 21st, 2022 at 9:36am
Print Post  
This is how it is structured at the moment
  

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


Posts: 2177
Joined: Feb 13th, 2019
Re: Include local libraries that are not installed
Reply #4 - Sep 21st, 2022 at 9:41am
Print Post  
If you do not want to install them into the Sketchbook\Libraries folder so Arduino can access them, you will need to make them Shared Projects and add these to your solution:

Video Guide: https://www.youtube.com/watch?v=7ObDIvHuMvc
Documentation Link: https://www.visualmicro.com/post/2017/01/16/Arduino-Cross-Platform-Library-Devel...



  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Include local libraries that are not installed
Reply #5 - Sep 21st, 2022 at 10:06am
Print Post  
Ok that makes sense. I have never done that before so as the saying goes "you are never to old to learn".
I will go check out the links and will let you know. Thanks for the help
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint