I pretty new with ESPEasy. I already use it with the "normal" build. It was very cool working in association with Jeedom for my domotic setup.
Now I want to try to build my own version. For that I have define the default environment on platformio with my board type
Code: Select all
default_envs = normal_ESP32_4M316k
But now, I have an other issue, and I'm not able to solve it, even after some search on the web...
It seems that it's coming from Compiletime Define. You can see the log below :
Code: Select all
In file included from C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/Arduino.h:146:0,
from src/src/Helpers/CompiletimeDefines.h:4,
from src/src/Helpers/CompiletimeDefines.cpp:1:
<command-line>:0:31: error: too many decimal points in number
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:39:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:40:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/src/Helpers/CompiletimeDefines.cpp:54:12: note: in expansion of macro 'F'
return F(SET_BUILD_PLATFORM);
^
src/src/Helpers/CompiletimeDefines.cpp:54:14: note: in expansion of macro 'SET_BUILD_PLATFORM'
return F(SET_BUILD_PLATFORM);
^
src/src/Helpers/CompiletimeDefines.cpp:62:32: warning: character constant too long for its type
return F(SET_BUILD_GIT_HEAD);
^
In file included from C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/Arduino.h:146:0,
from src/src/Helpers/CompiletimeDefines.h:4,
from src/src/Helpers/CompiletimeDefines.cpp:1:
src/src/Helpers/CompiletimeDefines.cpp: In function 'String get_binary_filename()':
<command-line>:0:27: error: 'ESP_Easy_mega_20210514_normal_ESP32_4M316k' was not declared in this scope
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:39:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:40:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/src/Helpers/CompiletimeDefines.cpp:28:12: note: in expansion of macro 'F'
return F(SET_BUILD_BINARY_FILENAME);
^
src/src/Helpers/CompiletimeDefines.cpp:28:14: note: in expansion of macro 'SET_BUILD_BINARY_FILENAME'
return F(SET_BUILD_BINARY_FILENAME);
^
src/src/Helpers/CompiletimeDefines.cpp: In function 'String get_build_platform()':
<command-line>:0:20: error: 'Windows' was not declared in this scope
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:39:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:40:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/src/Helpers/CompiletimeDefines.cpp:54:12: note: in expansion of macro 'F'
return F(SET_BUILD_PLATFORM);
^
src/src/Helpers/CompiletimeDefines.cpp:54:14: note: in expansion of macro 'SET_BUILD_PLATFORM'
return F(SET_BUILD_PLATFORM);
^
<command-line>:0:42: error: 'SP0' was not declared in this scope
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:39:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
C:/users/pierre-yves/.platformio/packages/framework-arduinoespressif32@3.10004.210126/cores/esp32/WString.h:40:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/src/Helpers/CompiletimeDefines.cpp:54:12: note: in expansion of macro 'F'
return F(SET_BUILD_PLATFORM);
^
src/src/Helpers/CompiletimeDefines.cpp:54:14: note: in expansion of macro 'SET_BUILD_PLATFORM'
return F(SET_BUILD_PLATFORM);
^
*** [.pio\build\normal_ESP32_4M316k\src\src\Helpers\CompiletimeDefines.cpp.o] Error 1
Code: Select all
-------------------------------
Compile time defines
File System: SPIFFS
PROGNAME: ESP_Easy_mega_20210514_normal_ESP32_4M316k
BUILD_PLATFORM: Windows-10-10.0.19041-SP0
GIT_HEAD: 'mega_7aced75'
-------------------------------
So if someone have an idea to help me