Arduino C++ Tools - ESP8266mDNS library [message #1767946] |
Wed, 12 July 2017 10:10 |
lynne nux Messages: 1 Registered: June 2017 |
Junior Member |
|
|
Using Eclipse Neon.3, Linux Mint 18, Arduino C++ Tools 9.2.1.201704050430
Most projects work with few problems. Great work Doug, thank you.
In essence, when I started a new project (no code at all beyond starter template) and included just the ESP8266mDNS and ESP8266WiFi libs the build errored:
/home/rob/.arduinocdt/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS/ESP8266mDNS.cpp: In member function 'void MDNSResponder::enableArduino(uint16_t, bool)':
<command-line>:0:15: error: 'ESP8266_WEMOS_D1MINI' was not declared in this scope
ESP8266mDNS.cpp:841:44: note: in expansion of macro 'ARDUINO_BOARD'
addServiceTxt("arduino", "tcp", "board", ARDUINO_BOARD);
I fixed it manually: the build line included:
... xtensa-lx106-elf-g++ ... -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" ...
I changed it to:
... xtensa-lx106-elf-g++ ... -DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\" ... (note extra backslashes in front of quotes)
I'm guessing platform.txt needs an extra 2 backslashes before quotes in the appropriate places? I haven't changed it as it has worked fine until ESP8266mDNS and I know nothing of Arduino infrastructure.
NOTE: the ESP8266mDNS library was a nuisance - it didn't download with a library.properties file and didn't show up in the library list until I fudged one.
Other, non-important, observations:
Arduino Downloads Manager : Seems to give lots of "Unhandled event loop exception" from cdt. Mainly works OK though I think.
Flashing failed until I made myself a member of dialout group.
Normal CDT stuff like Indexing, refactoring etc. work brilliantly. Very big thanks again Doug. (Great for an Arduino newbie like me.)
Ability to exclude files from build is not implemented it seems?
I assume the only way of getting rid of the admittedly very friendly Arduino toolbar is a separate install of Eclipse?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04585 seconds