I create new plugin for ESP8266 ESP-12E platform
I give compile error and affected to all other ino
I don’t have any clue what’s wrong?
Anybody can help ?
PS F:\Users\donyo\Documents\GitHub\ESPEasy> pio run -v -e dev_ESP8266_4096
[05/30/18 19:06:05] Processing dev_ESP8266_4096 (framework: arduino; lib_deps: ; build_flags: -D BUILD_GIT=‘“”’ -Wl,-Tesp8266.flash.4m1m.ld -D PLUGIN_BUILD_DEV; lib_ignore: ESP32_ping, ESP32WebServer; platform: espressif8266@1.5.0; upload_speed: 460800; board: esp12e; board_flash_mode: dio; lib_ldf_mode: chain)
PLATFORM: Espressif 8266 > Espressif ESP8266 ESP-12E
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
xtensa-lx106-elf-g++ -o “F:\Users\donyo\Documents\GitHub\ESPEasy\src_P134_PPD42.ino.cpp” -x c++ -fpreprocessed -dD -E “c:\users\donyo\appdata\local\temp\tmpb8dicv”
Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF MODES: FINDER(chain) COMPATIBILITY(light)
Ignored library F:\Users\donyo\Documents\GitHub\ESPEasy\lib\ESP32_ping
Ignored library F:\Users\donyo\Documents\GitHub\ESPEasy.piolibdeps\ESP32WebServer_ID2007
Collected 44 compatible librariesMore details about “Library Compatibility Mode”: http://docs.platformio.org/page/library … ompat-mode
Scanning dependencies…
Dependency Graph
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPUpdateServer)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer)
| | |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- v1.4.2
(F:\Users\donyo\Documents\GitHub\ESPEasy\lib\SparkFun_APDS-9960_Sensor_Arduino_Library)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- <SD(esp8266)> v1.0.5 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SD)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SPI)
|-- v0.0.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\HT16K33)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- <LiquidCrystal_I2C> (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\LiquidCrystal_I2C)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v2.6 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\pubsubclient)
|-- <Servo(esp8266)> v1.0.2 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Servo)
|-- v1.2.0 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\IRremoteESP8266)
|-- v1.0.4 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_Motor_Shield_V2)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- <ESPEasy_ESP8266Ping> v1.0 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\ESPEasy_ESP8266Ping)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- v1.0.2 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_Sensor)
|-- v1.0.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_TCS34725)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v1.1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\DNSServer)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- <ESP8266_SSD1306> v3.2.7 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\esp8266-oled-ssd1306)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SPI)
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v1.0.2 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_TSL2591)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
| |-- v1.0.2 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_Sensor)
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ArduinoOTA)
| |-- (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS)
| | |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- v0.0.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\MechInputs)
|-- (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\NewPing)
|-- v1.0.6 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_NeoPixel)
|-- v5.6.4 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\ArduinoJson)
|-- v1.0.0 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\Adafruit_MPR121)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v0.0.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\SerialDevices)
| |-- v3.3.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\ESPEasySoftwareSerial)
|-- <AS_BH1750> (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\AS_BH1750)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\AM2320)
| |-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- v3.3.1 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\ESPEasySoftwareSerial)
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- v1.0 (C:\Users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SPI)
|-- v1.0.0 (F:\Users\donyo\Documents\GitHub\ESPEasy\lib\HLW8012_1.0.0_1281)
xtensa-lx106-elf-g++ -o .pioenvs\dev_ESP8266_4096\src_P134_PPD42.ino.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -falign-functions=4 -ffunction-sections -fdata-sections -DARDUINO=20300 -DLWIP_OPEN_SRC -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DPLATFORMIO=30502 -DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP12 -DBUILD_GIT="" -DPLUGIN_BUILD_DEV -U__STRICT_ANSI__ -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\tools\sdk\include -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\cores\esp8266 -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\variants\nodemcu -Isrc -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPUpdateServer\src -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Wire -Ilib\SparkFun_APDS-9960_Sensor_Arduino_Library\src -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SPI -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\SD\src -Ilib\HT16K33 -Ilib\LiquidCrystal_I2C -Ilib\pubsubclient\src -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\Servo\src -Ilib\IRremoteESP8266 -Ilib\Adafruit_Motor_Shield_V2 -Ilib\Adafruit_Motor_Shield_V2\utility
-Ilib\ESPEasy_ESP8266Ping\src -Ilib\Adafruit_Sensor -Ilib\Adafruit_TCS34725 -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\DNSServer\src -Ilib\esp8266-oled-ssd1306 -Ilib\Adafruit_TSL2591 -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS -IC:\users\donyo.platformio\packages\framework-arduinoespressif8266\libraries\ArduinoOTA -Ilib\MechInputs -Ilib\NewPing -Ilib\Adafruit_NeoPixel -Ilib\ArduinoJson -Ilib\Adafruit_MPR121 -Ilib\ESPEasySoftwareSerial -Ilib\SerialDevices -Ilib\AS_BH1750 -Ilib\AM2320 -Ilib\HLW8012_1.0.0_1281\src src_P134_PPD42.ino.cpp
xtensa-lx106-elf-ar rc .pioenvs\dev_ESP8266_4096\libb05\libSD.a .pioenvs\dev_ESP8266_4096\libb05\SD\File.cpp.o .pioenvs\dev_ESP8266_4096\libb05\SD\SD.cpp.o .pioenvs\dev_ESP8266_4096\libb05\SD\utility\Sd2Card.cpp.o .pioenvs\dev_ESP8266_4096\libb05\SD\utility\SdFile.cpp.o .pioenvs\dev_ESP8266_4096\libb05\SD\utility\SdVolume.cpp.o
…
…
…
*** [.pioenvs\dev_ESP8266_4096\src_P134_PPD42.ino.cpp.o] Error 1
======================================= [ERROR] Took 21.29 seconds =======================================
================================================ [SUMMARY] ================================================
Environment esp32dev [SKIP]
Environment normal_ESP8266_1024 [SKIP]
Environment normal_ESP8285_1024 [SKIP]
Environment normal_WROOM02_2048 [SKIP]
Environment normal_ESP8266_4096 [SKIP]
Environment test_ESP8266_1024 [SKIP]
Environment test_ESP8285_1024 [SKIP]
Environment test_WROOM02_2048 [SKIP]
Environment test_ESP8266_4096 [SKIP]
Environment test_ESP8266_4096_VCC [SKIP]
Environment dev_ESP8266_1024 [SKIP]
Environment dev_ESP8285_1024 [SKIP]
Environment dev_WROOM02_2048 [SKIP]
Environment dev_ESP8266_4096 [ERROR]
Environment dev_ESP8266PUYA_1024 [SKIP]
Environment dev_ESP8266PUYA_1024_VCC [SKIP]
Environment hard_SONOFF_POW [SKIP]
======================================= [ERROR] Took 21.31 seconds =======================================
So what changes to what file did you make exactly? What sketch are you compiling?
You might want to wrap your define in
#ifndef PLUGIN_BUILD_DEV
#define PLUGIN_BUILD_DEV
#endif
I don’t change any file from espeasy
I just create new plugin ino (_P134_PPD42.ino)
Once I add this new plugin into atom src then start to create error,
even I disable plugin
I share _P134_PPD42.ino below
http://www.mediafire.com/file/k44xjgxhvs7o6ii/_P134_PPD42.ino/file
FYI,
ESPEasy.ino is the main file and will convert to ESPEasy.ino.cpp
I never see any ino plugin will convert to cpp except my plugin _P134_PPD42.ino
Don’t have idea why it will convert??
I cannot see details of errors as well since it spits up tons of errors in build panel console until I cannot scroll up to the top
Most of the errors are not declared, but like I said, errors will disappear as soon I remove _P134_PPD42.ino from src
If you rename your _P134_PPD42.ino
to _P134_PPD42.cpp
it compiles fine again. There must be some error in the pre-processing of the ino file that screws up the build process with a hundred errors. No idea why, though.
Refer to Redirecting... for converting .ino files to .cpp.
thanks for the help
it’s working after manually converting
very strange though … why platformio doesn’t like this ino file ??
dony71
May 30, 2018, 10:42pm
8
Unfortunately source plugin must have *.ino extension, unless it won’t be included in the main program.
In this case, I have to figure out why _P134_PPD42.ino not compiled correctly.