Go Down

Topic: Sloeber and ESP8266 (Read 420 times) previous topic - next topic

Eardgyl

I have installed the latest sloeber v4.3.1.
Target OS is Linux Mint 18.04
Selected library is ESP8266WiFi
Selected board is NodeMCU 1.0 (ESP-12E Module)

All lines of code are removed, except the include.

Test project is:

#include "Arduino.h"
#include <ESP8266WiFi.h>

void setup() {
}

void loop() {
}

On build, i get error:

Building file: /home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp
Starting C++ compile
"/home/eardgyl/Programme/sloeber//arduinoPlugin/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/eardgyl/Programme/sloeber//arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/tools/sdk/include" "-I/home/eardgyl/Programme/sloeber//arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/tools/sdk/lwip2/include" "-I/home/eardgyl/Programme/sloeber//arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/tools/sdk/libc/xtensa-lx106-elf/include" "-I/home/eardgyl/Documents/sloeber-workspace/Sample/Release/core" -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=1 -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_CORE -DARDUINO=10802 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 -I"/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266" -I"/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/variants/nodemcu" -I"/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src" -I"/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/DNSServer/src" -I"/home/eardgyl/Arduino/libraries/WiFiManager-master" -I"/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WebServer/src" -MMD -MP -MF"libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp.d" -MT"libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp" -o "libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp.o"
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp: In member function 'int ESP8266WiFiGenericClass::hostByName(const char*, IPAddress&, uint32_t)':
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:544:34: error: call of overloaded 'IPAddress(ip_addr_t*)' is ambiguous
aResult = IPAddress(&addr);
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:544:34: note: candidates are:
In file included from /home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:79:9: note: IPAddress::IPAddress(int)
IPAddress(int address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:79:9: note: no known conversion for argument 1 from 'ip_addr_t* {aka ip_addr*}' to 'int'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:78:9: note: IPAddress::IPAddress(u32_t)
IPAddress(u32_t address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:78:9: note: no known conversion for argument 1 from 'ip_addr_t* {aka ip_addr*}' to 'u32_t {aka long unsigned int}'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:77:9: note: IPAddress::IPAddress(uint32_t)
IPAddress(uint32_t address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:77:9: note: no known conversion for argument 1 from 'ip_addr_t* {aka ip_addr*}' to 'uint32_t {aka unsigned int}'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:75:9: note: IPAddress::IPAddress(const IPAddress&)
IPAddress(const IPAddress& from);
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:75:9: note: no known conversion for argument 1 from 'ip_addr_t* {aka ip_addr*}' to 'const IPAddress&'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp: In function 'void wifi_dns_found_callback(const char*, const ip_addr_t*, void*)':
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:577:73: error: call of overloaded 'IPAddress(const ip_addr_t*&)' is ambiguous
(reinterpret_cast<IPAddress>(callback_arg)) = IPAddress(ipaddr);
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:577:73: note: candidates are:
In file included from /home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFi.h:31:0,
from /home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp:27:
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:79:9: note: IPAddress::IPAddress(int)
IPAddress(int address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:79:9: note: no known conversion for argument 1 from 'const ip_addr_t* {aka const ip_addr*}' to 'int'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:78:9: note: IPAddress::IPAddress(u32_t)
IPAddress(u32_t address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:78:9: note: no known conversion for argument 1 from 'const ip_addr_t* {aka const ip_addr*}' to 'u32_t {aka long unsigned int}'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:77:9: note: IPAddress::IPAddress(uint32_t)
IPAddress(uint32_t address) { ctor32(address); }
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:77:9: note: no known conversion for argument 1 from 'const ip_addr_t* {aka const ip_addr*}' to 'uint32_t {aka unsigned int}'
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:75:9: note: IPAddress::IPAddress(const IPAddress&)
IPAddress(const IPAddress& from);
^
/home/eardgyl/Programme/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/IPAddress.h:75:9: note: no known conversion for argument 1 from 'const ip_addr_t* {aka const ip_addr*}' to 'const IPAddress&'
libraries/ESP8266WiFi/src/subdir.mk:91: recipe for target 'libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp.o' failed
make: *** [libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp.o] Error 1

What the hell is going wrong here?

Juraj

try not beta, but 2.4.2
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Eardgyl


Go Up