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 Libraries not loading (Read 2788 times)
TheEngineersBeard
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2020
Libraries not loading
Aug 18th, 2020 at 12:29pm
Print Post  
Hello,

I am having a problem where compilation is failing in Atmel studio as it is failing to find the libraries. The libraries do appear in the "Add Library" menu, so I don't understand why it can't find them when compiling.

Everything compiles fine in the Arduino IDE.

I've attached the verbose output from atmel studio and arduino IDE.

Suggestions on how to fix this? I'd really much rather be working in Atmel studio.
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries not loading
Reply #1 - Aug 18th, 2020 at 12:37pm
Print Post  
Hi,

It looks like you have switched off the "vMicro>Compiler>Deep search for libraries". The code you are using #includes the libraries from .cpp source and therefore requires deep search.

Alternatively you can #include a .h from each library that you need into the .ino code. That will then allow them to be discovered without the need for deep search.

The Arduino IDE does not give facility to switch off Deep Search.
  
Back to top
WWW  
IP Logged
 
TheEngineersBeard
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2020
Re: Libraries not loading
Reply #2 - Aug 18th, 2020 at 12:54pm
Print Post  
I definitely have deep search enabled (see image).

Plus the libraries in the .ino are also not loading...
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries not loading
Reply #3 - Aug 18th, 2020 at 1:19pm
Print Post  
Sorry yes you are right. We need to test why deep search is not running for you in AS7.

One thing to try in the meantime is that there is an updated version due to be released to the microchip gallery. 

However, the release is available as the LATEST here https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Please try.

Thanks
« Last Edit: Aug 18th, 2020 at 1:20pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
TheEngineersBeard
Newbies
*
Offline


Posts: 3
Joined: Aug 18th, 2020
Re: Libraries not loading
Reply #4 - Aug 18th, 2020 at 1:46pm
Print Post  
Upgrading to the latest version has fixed the problem.

Thank you!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries not loading
Reply #5 - Aug 18th, 2020 at 2:20pm
Print Post  
Good, thanks for update.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint