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 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Re: vMicro 2024.102.1903 arduino.h: No such file or directory (Read 6825 times)
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #20 - Feb 1st, 2024 at 8:31pm
Print Post  
Yes, it is already added in the libraries and the code. The compiler can't find it when building however.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #21 - Feb 1st, 2024 at 8:47pm
Print Post  
It might be a one drive config issue but lets confirm your are using valid libraries before you look at that.

If I create an empty sketch that simply has the following code, then it should automatically detect the libraries listed below.

#include <ArduinoOTA.h>
void setup()
{
  
}

// Add the main program code into the continuous loop() function
void loop()
{

}


result (all found in the platform, not user installed) ....
Using library ArduinoOTA version 2.0.0 by Hristo Gochkov <hristo@espressif.com> 
Using library WiFi version 2.0.0 by Hristo Gochkov <hristo@espressif.com>
Using library Update version 2.0.0 by Hristo Gochkov <hristo@espressif.com> 
Using library ESPmDNS version 2.0.0 by Hristo Gochkov <hristo@espressif.com> 

Note:
Your compile is not finding those libs, it might be that you have some older libraries installed that is causing confusion or that ArduinoOTA needs to be included before other ones.

« Last Edit: Feb 1st, 2024 at 8:50pm by Tim@Visual Micro »  
Back to top
IP Logged
 
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #22 - Feb 1st, 2024 at 8:51pm
Print Post  
Here is the location of that library where it is trying to get it from. The compiler found all the libraries I have inside my sketchbook in OneDrive but not the Arduino default libraries that are local
« Last Edit: Feb 1st, 2024 at 8:52pm by robots4life »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #23 - Feb 1st, 2024 at 8:56pm
Print Post  
Build this in a new project and post the output thanks

#include <ArduinoOTA.h>
void setup()
{
   
}

// Add the main program code into the continuous loop() function
void loop()
{

}
  
Back to top
IP Logged
 
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #24 - Feb 1st, 2024 at 9:00pm
Print Post  
OTA build
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #25 - Feb 1st, 2024 at 9:40pm
Print Post  
Great that shows the correct libraries being found.

I think the order of your includes are causing the wrong libs to be discovered. The order is important in the way that libraries are auto resolved.

Does your same code work in the arduino ide? If so please use file>preferences to enable verbose compile and submit the output.

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


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #26 - Feb 2nd, 2024 at 1:44pm
Print Post  
It does build in Arduino.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #27 - Feb 2nd, 2024 at 3:47pm
Print Post  
Thanks. 

please add a local board.txt to the project. its just an empty txt file called board.txt. the is a menu item on the "vMicro>Add Code" menu that does it for you or you can add manually.

add the following line to the .txt and click save. then try build and post the output if it fails

Code
Select All
vm.preproc.lib-search.lib-in-sketch=all 



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


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #28 - Feb 2nd, 2024 at 3:51pm
Print Post  
It still won't build with the board.txt
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #29 - Feb 2nd, 2024 at 5:51pm
Print Post  
Thanks, sorry I gave you the wrong property.

Please change the board.txt to contain the following instead:-

Code
Select All
vm.preproc.lib-search.lib-in-lib=all 



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


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #30 - Feb 2nd, 2024 at 6:02pm
Print Post  
Seems to still fail
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #31 - Feb 2nd, 2024 at 6:22pm
Print Post  
Thanks, can you zip and email your project code with link to this post? It will be deleted after test.
  
Back to top
IP Logged
 
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #32 - Feb 2nd, 2024 at 6:28pm
Print Post  
I have sent the project zip.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #33 - Feb 2nd, 2024 at 7:33pm
Print Post  
I can't see it. If the project has a ".vs" folder below it you can delete it. its large and is vs intellisense db that we don't need. Maybe the size was the issue?
  
Back to top
IP Logged
 
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #34 - Feb 2nd, 2024 at 7:39pm
Print Post  
There is no .vs folder in the project. I will send it again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #35 - Feb 3rd, 2024 at 7:50pm
Print Post  
Thanks for sending

can you provide zip of links to these libs

//#include "TestCommon.h"
//#include "Epos4Can.h"
//#include "ButtonHandler.h"
//#include "DFRobot_GP8XXX.h"
//#include "SymStatusLight.h"
  
Back to top
IP Logged
 
robots4life
Junior Member
**
Offline


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #36 - Feb 5th, 2024 at 3:21pm
Print Post  
I have emailed a zip to those libraries
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #37 - Feb 20th, 2024 at 4:29pm
Print Post  
Thanks for the files.

Can you try the attached entry to your local board.txt file in the project?

If it compiles as expected, we will update this thread when the fix is released which removes the need for this.
« Last Edit: Feb 20th, 2024 at 4:31pm by Simon@Visual Micro »  

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


Posts: 21
Joined: Jan 29th, 2024
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #38 - Feb 20th, 2024 at 5:40pm
Print Post  
Should that be in the boards.txt in the C:/Program Files (x86)/Arduino or the boards.txt in the Users/AppData/Local/arduino15/packages/esp32...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro 2024.102.1903 arduino.h: No such file or directory
Reply #39 - Feb 20th, 2024 at 6:07pm
Print Post  
board.txt in the project folder. Use the vMicro>Add Code menu to add it or create it manually.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint