Libraries issue

I'm using some libraries to make a DHT temperature that uses a Nodemcu esp8266 to display information to blynk but i keep getting library issues.

Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 57600"

C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-ar: unable to rename 'libraries\ESP8266WiFi\ESP8266WiFi.a'; reason: File exists

Multiple libraries were found for "SPI.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SPI
Multiple libraries were found for "ESP8266WiFi.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\ESP8266WiFi
Multiple libraries were found for "BlynkSimpleEsp8266.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\Blynk
Multiple libraries were found for "SimpleTimer.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\SimpleTimer-master
Multiple libraries were found for "DHT.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\DHT-sensor-library-master
Multiple libraries were found for "Adafruit_Sensor.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\arduino_557997
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Sounds like you need to delete C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-ar: unable to rename 'libraries\ESP8266WiFi\ESP8266WiFi.a

and then try again.

i think i got it but it gives me this

Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Multiple libraries were found for "BlynkSimpleEsp8266.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\Blynk
Multiple libraries were found for "SimpleTimer.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\SimpleTimer-master
Multiple libraries were found for "DHT.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\DHT-sensor-library-master
Multiple libraries were found for "Adafruit_Sensor.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\arduino_557997
Multiple libraries were found for "SPI.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SPI
Multiple libraries were found for "ESP8266WiFi.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\ESP8266WiFi
exec: "C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-ar": file does not exist
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The image is what i deleted.



You misunderstood. You definitely don't want to delete C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\binxtensa-lx106-elf-ar. That's an essential part of the toolchain. Please restore that file from the recycle bin.

@blh64 was suggesting that you delete the file libraries\ESP8266WiFi\ESP8266WiFi.a. That's not the full path to the file. I would need the verbose compilation output to give you the fill path.

However, my suspicion is this problem could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.

So give that a try and see what happens, then we can go from there if it doesn't fix the problem.

I am not home right now, but I’ll test it once I’m home.

I turn off my firewall, but i still get some error messages. Do i need to do something more?

Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-ar: unable to rename 'libraries\ESP8266WiFi\ESP8266WiFi.a'; reason: File exists

Multiple libraries were found for "SPI.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SPI
Multiple libraries were found for "ESP8266WiFi.h"
Used: C:\Users\wanga\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\ESP8266WiFi
Multiple libraries were found for "BlynkSimpleEsp8266.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\Blynk
Multiple libraries were found for "SimpleTimer.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\SimpleTimer-master
Multiple libraries were found for "DHT.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\DHT-sensor-library-master
Multiple libraries were found for "Adafruit_Sensor.h"
Used: C:\Users\wanga\OneDrive\Documents\Arduino\libraries\arduino_557997
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I said to turn off your antivirus. I didn't say to turn off your firewall. Although these are both applications for security, they are very different. The firewall could not cause the error you are getting.

:slight_smile: thank you so much it worked after i turned off real-time scanning and firewall. :slight_smile:

You're welcome. I'm glad to hear it's working now. That real time scanning thing is frequently the cause of problems with the Arduino IDE.

Enjoy!
Per

pert:
You're welcome. I'm glad to hear it's working now. That real time scanning thing is frequently the cause of problems with the Arduino IDE.

Enjoy!
Per

This didn't work for me, I hope the " Multiple libraries were found" error will be fised soon in the Arduino IDE

@avandalen please start a new topic and post your code and full error messages as well as details of your system

avandalen:
This didn't work for me

It wouldn't have any chance of. That advice was targeted at fixing TurtleGuy's real error:

unable to rename 'libraries\ESP8266WiFi\ESP8266WiFi.a'; reason: File exists

That has nothing to do with the "Multiple libraries found" messages that just happened to also be part of the output.

avandalen:
I hope the " Multiple libraries were found" error will be fised soon in the Arduino IDE

Yes, it's really annoying. Luckily, I think it has already been fixed:

I just verified it's fixed in the latest hourly build of the Arduino IDE.