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 Arduino Libraries Not Found (Read 1848 times)
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Arduino Libraries Not Found
Nov 5th, 2020 at 3:53pm
Print Post  
Attempting to migrate from Arduino IDE to VS 2019 + Visual Micro. Visual Micro extension installed and I think reasonably configured, but it won't compile app due to libraries not found. This app compiles clean under Arduino IDE 1.8.13. 

The app only directly #includes 3 library files. These in turn include a bunch more. VM appears to find the directly included libraries and then craps out on all the rest. 

Screen shots attached. I would include more, but apparently limited to 2, will try more in next msg.

Suggestions appreciated. 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Arduino Libraries Not Found
Reply #1 - Nov 5th, 2020 at 3:54pm
Print Post  
More related screen shots...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Arduino Libraries Not Found
Reply #2 - Nov 5th, 2020 at 4:02pm
Print Post  
Built project with "Show Build Properties" and "Verbose" compiler options set. Output file attached. 

Note that the "PubSubClient.h" library referenced at the end of the output text exists in ".../Arduino/libraries" and is found by the Arduino IDE.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Libraries Not Found
Reply #3 - Nov 5th, 2020 at 4:09pm
Print Post  
I see you have set a sketchbook folder in Visual Micro. 

That gives one potential difference with the Arduino IDE. If you don't set a sketchbook folder in Visual Micro then we use the same one the Arduino IDE uses.

Use installed libraries are located in Sketchbook/libraries therefore the sketchbook location is important.

To be sure, please open the Arduino ide, switch on file>preferences>verbose, build and then post the output as a .txt file.

Thanks
  
Back to top
WWW  
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Arduino Libraries Not Found
Reply #4 - Nov 5th, 2020 at 7:20pm
Print Post  
Thanks for the quick reply. Will do.
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: Arduino Libraries Not Found
Reply #5 - Nov 5th, 2020 at 7:47pm
Print Post  
I deleted the sketchbook reference and that did the trick!

Thanks much!


Output:

Compiling 'PumpMonTest' for 'NodeMCU 1.0 (ESP-12E Module)'
Creating BIN file PumpMonTest.ino.bin" using bootloaders/eboot/eboot.elf" and PumpMonTest.ino.elf"
   Executable segment sizes
IROM   *: 327796          - code in flash         (default or ICACHE_FLASH_ATTR)
IRAM   *: 29500   \ 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)
DATA   *: 1328  )         - initialized variables (global, static) in RAM\HEAP
RODATA *: 3876  ) \ 81920 - constants             (global, static) in RAM\HEAP
BSS    *: 41040 )         - zeroed variables      (global, static) in RAM\HEAP
Program size: 362,500 bytes (used 35% of a 1,044,464 byte maximum) (19.69 secs)
Minimum Memory Usage: 46244 bytes (56% of a 81920 byte maximum)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint