I got this in the output window when building the app I'm working on:
Quote:Building core ...
Error creating archive. This is usually caused by a virus checker locking the archive file (core.a)
note: The core.a file will now be invalid. Please click 'Build>Clean Solution' to reolve the issue.
Please report this issue to
http://www.visualmicro.com/forums. Let us know which virus checker and board you are using.
Per request, I am using Trend Micro Maximum Security. The board I was building was an "ESP32 Wrover Module". I don't think however it's anything to do with the virus checker, and the suggested action does nothing useful. The story is as follows:
I successfully built for the Wrover module many times over the last several months without trouble. I wanted to try the same app on an M5STAMP Pico. I installed the Arduino support for the M5STAMP using the Arduino IDE, basically the M5Stack boards definitions and some examples. I compiled and successfully ran both the LED and the WiFiScan examples for the M5STAMP in the Arduino IDE. I loaded the WiFiScan example into VS/VM and got lots of errors compiling the WiFi library. I turned on "includes via Gcc", and it mostly compiled, but choked at a reference to the IPv6Address type in the WiFi library: no error previously in the Arduino IDE. It seems the M5STAMP is using its own WiFi library, but it should still compile OK in VS/VM if it does so in the Arduino IDE, right?
This is the interesting bit. Back to my app. I re-select the ESP32 Wrover Module after cleaning the solution, and now all I get is this:
Quote:Building variant ...
Error compiling variant
Build failed for project 'Aspects_SH'
Further, when I go back to the Arduino IDE, WiFiScan now also chokes on IPv6Address. Finally, after removing the M5Stack board definitions, my app builds for the Wrover module. I am able to build for the M5STAMP ok using the ESP32 Pico Kit board setting, but several questions remain. Why does the M5STACK board definition affect the other board definitions in VM but not IDE? Why does VM not originally compile the WiFiScan sketch, when the IDE does? I realize that there is probably something amiss in the M5Stack stuff, but it also seems VM is doing something weird also.
Is there a simple explanation of what is happening here?
Regards,
Jed