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
Hot Topic (More than 8 Replies) vMicro with Visual Studio 2022 fails to build, can't find a file (Read 3365 times)
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
vMicro with Visual Studio 2022 fails to build, can't find a file
Oct 1st, 2023 at 3:32pm
Print Post  
Just updated Visual Studio 2022 with latest updates.
Just bought and installed vMicro into Visual Studio.
Just updated my Arduino IDE.

Started my first Build in a while for a ESP32 Sparkfun board
(2 years ago, this all worked )
The Build failed with:   Build Folder: file:   C: Users calve AppData Local Temp VMBuilds TestESP32LCD SparkFun_esp32thing_plus Release
(I removed the slashes  .)
The system cannot find the file specified.

I have scoured everything and can't find the cause; probably something in the installs.
Any ideas, please.
« Last Edit: Oct 1st, 2023 at 3:39pm by OldWizard »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #1 - Oct 1st, 2023 at 6:06pm
Print Post  
Please provide the information requested in the yellow box near the top of the page
  
Back to top
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #2 - Oct 1st, 2023 at 6:46pm
Print Post  
Here is the Compiler Properties output from Compile attempt.
Thanks for looking at it.
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #3 - Oct 1st, 2023 at 7:21pm
Print Post  
It looks like the sparkfun package relies on the esp32 package. Use board manager to install the esp32 package from espressif
  
Back to top
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #4 - Oct 1st, 2023 at 8:25pm
Print Post  
That seems to have helped but now I get the following error:

esp32-hal-adc.h:27: In file included from
Error compiling core
Build failed for project 'TestESP32LCD'
esp32-hal-adc.c:15: from
 
esp32-hal.h: 31:10: fatal error: sdkconfig.h: No such file or directory
   #include "sdkconfig.h"
   ^~~~~~~~~~~~~
   compilation terminated
  
Back to top
 
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #5 - Oct 1st, 2023 at 8:50pm
Print Post  
Sorry, that was not complete.  This is much better:

Compiling 'TestESP32LCD' for 'SparkFun ESP32 Thing Plus (esp32_esp32thing_plus)'
Build Folder: g_plus/Release"
Error running platform build action hooks.prebuild

   Traceback (most recent call last)
   File "esptool.py", line 34, in <module>
   File "esptool\__init__.py", line 1032, in _main
   File "esptool\__init__.py", line 861, in main
   File "esptool\cmds.py", line 934, in elf2image
   File "esptool\bin_image.py", line 1080, in __init__
 
FileNotFoundError*: [Errno 2] No such file or directory: .0.11\\tools\\sdk\\esp32\\bin\\bootloader_dio_80m.elf
   [996] Failed to execute script esptool due to unhandled exception!
Error running platform build action hooks.prebuild

 
esp32-hal-adc.h:27: In file included from
Error compiling core
Build failed for project 'TestESP32LCD'
esp32-hal-adc.c:15: from
 
esp32-hal.h: 31:10: fatal error: sdkconfig.h: No such file or directory
   #include "sdkconfig.h"
   ^~~~~~~~~~~~~
   compilation terminated
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #6 - Oct 1st, 2023 at 9:05pm
Print Post  
I suspect you might need to review the arduino ide usage guide for the board you are using.

sdkconfig.h sounds like a file you need to create in the project?

Are you using one of their examples to test things out?
  
Back to top
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #7 - Oct 7th, 2023 at 2:55pm
Print Post  
Hello Tim,
Thank you for all the time you have spent helping me.  Unfortunately, I have not succeeded in getting VMicro to work properly in Visual Studio due to library issues.

1) I can successfully Compile and Execute a sketch with an LCD library using the Arduino IDE.  So far so good?
2) Now, when I take the same code and Create a new project in VMicro, VMicro cannot find "LiquidCrystal_I2C.h"
I have tried everything I can think of, moving libs etc etc.
3) How can I make VMicro use the same libraries as did the Arduino IDE.

Really help here, thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #8 - Oct 7th, 2023 at 6:57pm
Print Post  
Arduino and Visual Micro discover user installed libraries from the [sketchbook path]\libraries folder. The default sketch book path is normally myDocuments\Arduino.

In your previous output I can see you have sketchbook set to g:/Development/Arduino. If you changed the sketchbook in Visual Micro then the arduino ide will still point to the default location.

If this applies then, if you are using both visual micro and the arduino ide it is better to change the sketch book location in the arduino ide via File>Preferences. Then clear the Visual Micro sketch book that you set in "Platform Explorer > IDE Locations".

If that is not the issue please post you latest build output.
« Last Edit: Oct 7th, 2023 at 6:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #9 - Oct 7th, 2023 at 9:32pm
Print Post  
Hello Tim,

I have been concentrating on a LiquidCrystal_I2C library.

I did find a library issue between Arduino IDE and VMicro.  I got that fixed and now the Build shows it pointing to the correct libraries.
But it still fails!
So, I tried 3 other libraries:
1) TM1637-1.2.0
2) SparkFun_Qwiic_Relay_Arduino_Library
3) SparkFun_ADS1015_Arduino_Library
And, these all successfully compiled so my libraries are now functional.
Something really odd is happening with the LCD library.
I will reinstall it and try again.
Thanks for your help.
  
Back to top
 
IP Logged
 
OldWizard
Newbies
*
Offline


Posts: 7
Location: Mississauga, Canada
Joined: Jan 22nd, 2022
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #10 - Oct 7th, 2023 at 10:50pm
Print Post  
Turns out I was wrong. Sometimes they work and sometimes not.
I have run out of gas on Visual Studio; Arduino IDE works every time.
I'll try again in a week or so.
Cheers
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro with Visual Studio 2022 fails to build, can't find a file
Reply #11 - Oct 7th, 2023 at 11:57pm
Print Post  
Your output also shows that you have switched off deep search library discovery in visual micro. It's on by default, Arduino IDE doesn't allow you to switch it off.

Switch it back on using "vMicro>Compiler>Deep Search for Libraries ..."
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint