[Arduino物联网开发实战2]数据反馈-Arduino中文社区 - Powered by Discuz! Archiver

宇之枫海云 发表于 2019-1-24 16:01

嗯,是的,2个库都下了,还是不行!:dizzy:

宇之枫海云 发表于 2019-1-24 16:10

Arduino:1.8.5 (Windows 7), 开发板:"WeMos D1 R1, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

找到无效库在 C:\Users\rain\Documents\Arduino\libraries\LiquidCrystal_I2C: C:\Users\rain\Documents\Arduino\libraries\LiquidCrystal_I2C
Archiving built core (caching) in: C:\Users\rain\AppData\Local\Temp\arduino_cache_950569\core\core_esp8266_esp8266_d1_xtal_80,vt_flash,exception_enabled,eesz_4M,ip_lm2f,dbg_Disabled,lvl_None____,wipe_none,baud_921600_ab0977f063207184ee2c2e7514633234.a
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::DHT(unsigned char, unsigned char, unsigned char)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:12: multiple definition of `DHT::DHT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::DHT(unsigned char, unsigned char, unsigned char)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:12: multiple definition of `DHT::DHT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::begin()':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:24: multiple definition of `DHT::begin()'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:24: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::convertCtoF(float)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:64: multiple definition of `DHT::convertCtoF(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:64: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::convertFtoC(float)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:69: multiple definition of `DHT::convertFtoC(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:69: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::computeHeatIndex(float, float, bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:92: multiple definition of `DHT::computeHeatIndex(float, float, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:92: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::expectPulse(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:237: multiple definition of `DHT::expectPulse(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:237: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::read(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:123: multiple definition of `DHT::read(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:123: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::readTemperature(bool, bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:35: multiple definition of `DHT::readTemperature(bool, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:35: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT_sensor_library\DHT.cpp.o: in function `DHT::readHumidity(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library/DHT.cpp:72: multiple definition of `DHT::readHumidity(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:C:\Users\rain\Documents\Arduino\libraries\Blinker\src\modules\dht/DHT.cpp:72: first defined here

collect2.exe: error: ld returned 1 exit status

"Ticker.h" 对应多个库
已使用: C:\Users\rain\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\Ticker
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\Ticker
"EEPROM.h" 对应多个库
已使用: C:\Users\rain\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\EEPROM
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\EEPROM
"DHT.h" 对应多个库
已使用: C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library
未使用:C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\DHT-sensor-library-master
"Hash.h" 对应多个库
已使用: C:\Users\rain\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\Hash
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\Hash
"Blinker.h" 对应多个库
已使用: C:\Users\rain\Documents\Arduino\libraries\Blinker
未使用:C:\Users\rain\Documents\Arduino\libraries\blinker-library-master
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\blinker_library_master
未使用:E:\arduino\ESPduino\arduino-1.8.5\arduino-1.8.5\libraries\blinker-library-master
exit status 1
为开发板 WeMos D1 R1 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

奈何col 发表于 2019-1-24 17:26

宇之枫海云 发表于 2019-1-24 16:10
Arduino:1.8.5 (Windows 7), 开发板:"WeMos D1 R1, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Me ...

你的blinker库不是最新的

宇之枫海云 发表于 2019-1-24 18:16

fatal error: Adafruit_Sensor.h: No such file or directory

#include <Adafruit_Sensor.h>

                              ^

compilation terminated.

exit status 1
为开发板 WeMos D1 R1 编译时出错。
=======================================================
这个应该是最致命的错误,怎么破?老铁!!!

宇之枫海云 发表于 2019-1-24 18:31

现在是最新的了,还是不行!

奈何col 发表于 2019-1-24 23:17

宇之枫海云 发表于 2019-1-24 18:31
现在是最新的了,还是不行!

不清楚你现在用的是不是最新,但之前的肯定不是最新,如果还有问题,请帖出报错

宇之枫海云 发表于 2019-1-25 09:49

Arduino:1.8.5 (Windows 7), 开发板:"WeMos D1 R1, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:

C:\Users\rain\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

#include <Adafruit_Sensor.h>

                           ^

compilation terminated.

exit status 1
为开发板 WeMos D1 R1 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
=====================================================
还是一样啊!郁闷了

宇之枫海云 发表于 2019-1-25 10:05

昨天没更新库之前,自带DHT的测试还能通过,现在自带的也通过不了了!

奈何col 发表于 2019-1-25 11:17

宇之枫海云 发表于 2019-1-25 10:05
昨天没更新库之前,自带DHT的测试还能通过,现在自带的也通过不了了!

fatal error: Adafruit_Sensor.h: No such file or directory
说明你没有用帖子里的库,用帖子里附件的库

宇之枫海云 发表于 2019-1-25 11:50

嗯,是的帖子里的可以了,但是现在报新的故障了!!!
============================================================
Arduino:1.8.5 (Windows 7), 开发板:"WeMos D1 R1, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::DHT(unsigned char, unsigned char, unsigned char)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:13: multiple definition of `DHT::DHT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::DHT(unsigned char, unsigned char, unsigned char)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:13: multiple definition of `DHT::DHT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::begin()':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:25: multiple definition of `DHT::begin()'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:24: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::convertCtoF(float)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:68: multiple definition of `DHT::convertCtoF(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:64: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::convertFtoC(float)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:73: multiple definition of `DHT::convertFtoC(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:69: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::computeHeatIndex(float, float, bool)':

"Blinker.h" 对应多个库
已使用: E:\arduino-1.8.5\libraries\Blinker
未使用:C:\Users\rain\Documents\Arduino\libraries\blinker-library-master
"DHT.h" 对应多个库
已使用: C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:103: multiple definition of `DHT::computeHeatIndex(float, float, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:92: first defined here

未使用:E:\arduino-1.8.5\libraries\DHT_sensor_library
"Hash.h" 对应多个库
已使用: C:\Users\rain\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\Hash
未使用:E:\arduino-1.8.5\libraries\Hash
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::expectPulse(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:255: multiple definition of `DHT::expectPulse(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:237: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::read(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:134: multiple definition of `DHT::read(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:123: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::readTemperature(bool, bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:36: multiple definition of `DHT::readTemperature(bool, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:35: first defined here

c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::readHumidity(bool)':

C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:76: multiple definition of `DHT::readHumidity(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:72: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 WeMos D1 R1 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
页: 1 [2] 3 4 5 6 7 8 9 10 11
查看完整版本: [Arduino物联网开发实战2]数据反馈