Closed Brolensky closed 3 years ago
Even i comment the includes, sloeber.ino.cpp ask to put a new version with the includes... If i exclude sloeber.ino.cpp from built i have got error form setup and loop. when i re-include, even the #include "SD.h" is comment, the comment is underline with the error for library Refresh doesnt do anything
Here is the complete console output message (with out any visible reference to SD & WiFi) Compiling is wrong:
08:30:47 Incremental Build of configuration Release for project Toto4 "C:\Sloeber\arduinoPlugin\tools\make\make" -j8 all C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory pre-build echo prebuild;cmd /c if exist "C:\Sloeber\Workspace2\Toto4\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto4\partitions.csv" "C:\Sloeber\Workspace2\Toto4\Release\partitions.csv" prebuild;cmd /c if exist "C:\Sloeber\Workspace2\Toto4\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto4\partitions.csv" "C:\Sloeber\Workspace2\Toto4\Release\partitions.csv" cmd /c if exist "C:\Sloeber\Workspace2\Toto4\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto4\partitions.csv" "C:\Sloeber\Workspace2\Toto4\Release\partitions.csv" 1 fichier(s) copi‚(s). cmd /c if not exist "C:\Sloeber\Workspace2\Toto4\Release\partitions.csv" copy "C:/Users/cabrol/git/arduino-esp32\tools\partitionsdefault_ffat.csv" "C:\Sloeber\Workspace2\Toto4\Release\partitions.csv" ' ' C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory main-build 'Building file: ..\sloeber.ino.cpp' 'Building file: C:\Users\cabrol\git\arduino-esp32\cores\esp32\libb64\cdecode.c' 'Starting C++ compile' "C:/Users/cabrol/git/arduino-esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/config" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_trace" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_update" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/asio" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bootloader_support" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/coap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/console" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/driver" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/efuse" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-tls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_adc_cal" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_event" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_ota" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_ringbuf" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_websocket_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/espcoredump" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ethernet" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/expat" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fatfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freemodbus" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freertos" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/heap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/idf_test" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/jsmn" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/json" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/libsodium" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/log" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/lwip" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mbedtls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mdns" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/micro-ecc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mqtt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/newlib" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nghttp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nimble" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nvs_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/openssl" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protobuf-c" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protocomm" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/pthread" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/sdmmc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/smartconfig_ack" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/soc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spi_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spiffs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcp_transport" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcpip_adapter" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ulp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/unity" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/vfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wear_levelling" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wifi_provisioning" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wpa_supplicant" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/xtensa-debug-module" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32-camera" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wextra -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ARDUINO-ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 -I"C:\Users\cabrol\git\arduino-esp32\variants\esp32" -I"C:\Users\cabrol\git\arduino-esp32\cores\esp32" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -DIN_ECLIPSE=1 -x c++ "..\sloeber.ino.cpp" -o "sloeber.ino.cpp.o" 'Starting C compile' "C:/Users/cabrol/git/arduino-esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/config" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_trace" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_update" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/asio" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bootloader_support" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/coap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/console" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/driver" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/efuse" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-tls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_adc_cal" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_event" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_ota" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_ringbuf" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_websocket_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/espcoredump" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ethernet" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/expat" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fatfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freemodbus" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freertos" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/heap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/idf_test" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/jsmn" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/json" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/libsodium" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/log" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/lwip" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mbedtls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mdns" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/micro-ecc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mqtt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/newlib" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nghttp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nimble" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nvs_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/openssl" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protobuf-c" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protocomm" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/pthread" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/sdmmc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/smartconfig_ack" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/soc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spi_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spiffs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcp_transport" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcpip_adapter" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ulp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/unity" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/vfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wear_levelling" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wifi_provisioning" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wpa_supplicant" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/xtensa-debug-module" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32-camera" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fb_gfx" -std=gnu99 -Os -g3 -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wpointer-arith -Wall -Werror=all -Wextra -Wno-maybe-uninitialized -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ARDUINO-ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 -I"C:\Users\cabrol\git\arduino-esp32\cores\esp32" -I"C:\Users\cabrol\git\arduino-esp32\variants\esp32" -MMD -MP -MF"core\core\libb64\cdecode.c.d" -MT"core\core\libb64\cdecode.c.o" -DIN_ECLIPSE=1 "C:\Users\cabrol\git\arduino-esp32\cores\esp32\libb64\cdecode.c" -o "core\core\libb64\cdecode.c.o" 'Building file: C:\Users\cabrol\git\arduino-esp32\cores\esp32\libb64\cencode.c' 'Building file: C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp' 'Starting C compile'
Here is the out console message for a working project Toto5, the same then Toto4 before including anything the whitespace problem seems to have not importance, compiling is OK
08:58:50 Incremental Build of configuration Release for project Toto5 "C:\Sloeber\arduinoPlugin\tools\make\make" all C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory pre-build cmd /c if exist "C:\Sloeber\Workspace2\Toto5\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto5\partitions.csv" "C:\Sloeber\Workspace2\Toto5\Release\partitions.csv" cmd /c if not exist "C:\Sloeber\Workspace2\Toto5\Release\partitions.csv" copy "C:/Users/cabrol/git/arduino-esp32\tools\partitionsdefault_ffat.csv" "C:\Sloeber\Workspace2\Toto5\Release\partitions.csv" ' ' C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory main-build 'Building file: ..\sloeber.ino.cpp' 'Starting C++ compile' "C:/Users/cabrol/git/arduino-esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/config" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_trace" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_update" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/asio" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bootloader_support" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/coap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/console" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/driver" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/efuse" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-tls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_adc_cal" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_event" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_ota" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_ringbuf" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_websocket_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/espcoredump" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ethernet" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/expat" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fatfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freemodbus" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freertos" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/heap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/idf_test" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/jsmn" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/json" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/libsodium" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/log" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/lwip" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mbedtls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mdns" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/micro-ecc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mqtt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/newlib" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nghttp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nimble" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nvs_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/openssl" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protobuf-c" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protocomm" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/pthread" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/sdmmc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/smartconfig_ack" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/soc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spi_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spiffs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcp_transport" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcpip_adapter" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ulp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/unity" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/vfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wear_levelling" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wifi_provisioning" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wpa_supplicant" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/xtensa-debug-module" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32-camera" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wextra -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ARDUINO-ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 -I"C:\Users\cabrol\git\arduino-esp32\cores\esp32" -I"C:\Users\cabrol\git\arduino-esp32\variants\esp32" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "..\sloeber.ino.cpp" -o "sloeber.ino.cpp.o"
you are probably hitting #1184 and #1295 (containing workaround)
and turn off parallel build when trouble shooting.
fHi thanks Jantje, I am going to test yours solutions... and says what is correct to fix that.
In #1184 your asking for checking project->properties->C/C++ build->environment. and find something like A.RUNTIME.TOOLS.XTENSA-AVR-ELF-GCC-PATH (for AVR)
I instal ESP32 as your vidéo tutotrial so i dont put esp32S2
my string is:
=>A.RUNTIME.TOOLSXTENSA-ESP32-ELF-GCC.PATH
=>${A.RUNTINE.PLATFORM.PATH}/tools/extensa-esp32-elf
=>USER: CONFIG
So i think it is ok for that, iam going to read the next step in #1184
I have looking all #1184, i am using 4.3.3 It is difficult for me to understand what i have really to do, but i am going to try...
I have uncheck expand environment variable and stop parrallels build. Have i to delete or modify a file?
I have uncheck expand environment variable and stop parrallels build. Have i to delete or modify a file?
No but removing the Release folder is making sure 100%
Using a github repository as private hardware is difficult.
Note that my workaround statement was only for #1295 there is no workaround for #1184
I put partitions in the general folder I remove release folder, clean projet and build... It is not OK
what do you think of using a project reference to the gitub project C:...esp32 is this a good think? for the test it was not reffered. Note yesterday my big project run with all libraries for a run ! i dont know whats happened , i just not i says in my mind it will never work... and when i open the eyes ..oh fantastic, good working now, Then i could realise the injection in the board and see the picture moving instead the black screen ......and it will been broken next step 150 errors!
I have to make my big project: I want to mesure color of the soil for all centimeter in the deaph . So i have to take picture, get pixels, and communicate with WiFi to an ESP8266 and MEGA board to get position with telemeter... My ESP is a TTGO without pinouts.
For the first time (pixels) i do in Sloeber and i run it on IDE, but including all libraries i hope working with Sloeber, and impossible to run on IDE, libraries are differents...
How could i work like the ESP8266 environement? For this i ll get the link and put it in preference. Is it the good way? I need WiFi, HTTPSSecure for HTTPRedirect to go on Google Script.
I put the project on a ESP32 1.0.4: i have got 225 bads includes!!! I going to rebuild a new Toto project
I have better results refering copy of github repertory than using the ESP32 1.0.4 Do you confirm it right having 2 errors vs 234! Or have i got an other mystake?
On problem with ESP32 Reference project is the integration of memory, how could i make a string path to have tools in the environnement?
New test with Github Esp32 (not 1.0.4) 1) Erase Release 2) Comment Include (on cpp & .ino) 3) Clean 4) unresolve libraireies says SD is not ok? if i do good theres no libraries on the ino & cpp (clean, refresh, not paste...) for 1 build without expension variables i have got fantoms errors of SD that doesnt exist... (and the release is erased)
i am going checking the files on disk drive...
So i have analysed the process (and close and save the files)
adding SD.h,
Builds N°: 1) not ok beacause SD.begin is not solved, but no problems with SD.h it is founded! 2) SD.begin() is OK, SD.h is OK in ino files!!! But not ok in .cpp SD.h not found!!!
And it is possible to see SD.h ok on a file and not ok on the other... If i look in the SD.h FS.h is bad, but if i write FS.h in the ino it is OK!
I think this is the problem! And maybe the solution
If in .ino or sloeber.ino.cpp:
i am working with a modified esp32 github with a reference to a copy of himself (project esp33)
But it is not succesfull!i!i!i!i!i!i!i!i!i!i!i!i!D<[]]]] i i i i i i i i i i i i i i iarrrrr
so if i clean, build, clean each time no error (in the first time clean dont give up the error) so if think:
is it possible to make an automatic process? Or is it mystake again?
i just verify erasing release doesnt change anything in my case, maybe it is an other problem?
last observation:
if i change the ino file
For changing "" to <> it is possible by creating a script based on pair and not pair compile or comment uncomment before ech compile.
Last observation, simple: if the project refered to github, when de include change for exemple erase (") to remplace with an other (") the underline diseaper in Sloeber.ino.cpp (but the latteral point associated need a clean to escape)
I include 3 libraries, the problem is always the 1 library of the sloeber.ino.cpp
All time the bad include is correctly fix but in this extract
1:48:14 Incremental Build of configuration Release for project Toto6 "C:\Sloeber\arduinoPlugin\tools\make\make" all C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory pre-build echo preBuild preBuild cmd /c if exist "C:\Sloeber\Workspace2\Toto6\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto6\partitions.csv" "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" 1 fichier(s) copi‚(s). cmd /c if not exist "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" copy "C:/Users/cabrol/git/arduino-esp32\tools\partitionsdefault_ffat.csv" "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" ' ' C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory main-build 'Building file: ..\sloeber.ino.cpp' 'Starting C++ compile' "C:/Users/cabrol/git/arduino-esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/config" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_trace" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_update" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/asio" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bootloader_support" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/coap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/console" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/driver" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/efuse" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-tls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_adc_cal" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_event" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_ota" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_ringbuf" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_websocket_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/espcoredump" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ethernet" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/expat" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fatfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freemodbus" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freertos" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/heap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/idf_test" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/jsmn" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/json" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/libsodium" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/log" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/lwip" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mbedtls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mdns" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/micro-ecc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mqtt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/newlib" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nghttp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nimble" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nvs_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/openssl" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protobuf-c" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protocomm" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/pthread" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/sdmmc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/smartconfig_ack" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/soc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spi_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spiffs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcp_transport" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcpip_adapter" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ulp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/unity" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/vfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wear_levelling" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wifi_provisioning" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wpa_supplicant" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/xtensa-debug-module" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32-camera" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wextra -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ARDUINO-ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 -I"C:\Users\cabrol\git\arduino-esp32\cores\esp32" -I"C:\Users\cabrol\git\arduino-esp32\variants\esp32" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "..\sloeber.ino.cpp" -o "sloeber.ino.cpp.o"
:0:21: warning: ISO C++11 requires whitespace after the macro name ..\sloeber.ino.cpp:8:16: fatal error: SD.h: No such file or directory compilation terminated. make[1]: [subdir.mk:20: sloeber.ino.cpp.o] Error 1 make: [makefile:65: all] Error 2 "C:/Sloeber/arduinoPlugin/tools/make/make all" terminated with exit code 2. Build might be incomplete.
21:48:15 Build Failed. 3 errors, 1 warnings. (took 747ms)
we cant see
Why Path is the only in red?
Why Path is the only in red?
because it is/overwrites a system variable
I think you are also hitting #1210
Hello @jantje, Thanks for your analysis, i have already do your recomandation #1210 and download the path make... so i dont think the truncated is present.
The problem of truncating commands is in the windows component cmd.exe.
The difference between the 2 make.zip's is that one contains make.exe and sh.exe the other only make.exe.
If there is a sh.exe in the folder next to make.exe; make.exe will use sh.exe and not cmd.exe (at least with the supplied make.exe)
As sh.exe does not have the truncation problem I hoped to switch to sh.exe.
However
sh.exe behaves very similarly to cmd.exe
but there are differences.
These differences between make.exe and sh.exe cause problems for certain boards.
So the zip with make.exe and sh.exe can be used as a workaround but not as general solution.
my make path contains: echo make mkdir rm sh
What do you think about whitespaces? Is it possible the system made an error with whitspace (but i think it is resolved and not a matter), but maybe the boolean error will be true and next step error is initialized with true so it is crashing without error?
What about mixing \ & / in the file code C:\Users\cabrol\git\arduino-esp32\libraries\SD\src/SD.h
Problematic or no? So i decide to use absolute path
using asolute for SD
In file included from ..\sloeber.ino.cpp:9:0: C:\Users\cabrol\git\arduino-esp32\libraries\SD\src\SD.h:17:16: fatal error: FS.h: No such file or directory
using absolute for FS then SD
C:\Users\cabrol\git\arduino-esp32\libraries\SD\src\SD.h:17:16: fatal error: FS.h: No such file or directory
CONCLUSION It is exactly the same error! So FS is resolved if directly include in first time, but not found when it is trying include with SD inclusion?
Using Absolute path for
C:\Users\cabrol\git\arduino-esp32\libraries\FS\src\FS.h:24:112: fatal error: C:\Users\cabrol\git\arduino-esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0: No such file or directory
A wrong path gives same result using #include "C:\Users\cabrol\git\arduino-esp32\tools\includes\memory"
C:\Users\cabrol\git\arduino-esp32\libraries\FS\src\FS.h:24:112: fatal error: C:\Users\cabrol\git\arduino-esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0: No such file or directory
CONLUSION
Exactly same error with 2 different string: strange isnt it?
Comparaison betwen memory path (windows) and message: C:\Users\cabrol\git\arduino-esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0 C:\Users\cabrol\git\arduino-esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0
the path is good (the same a windows file properties) but IDE uses a systematic path and doesnt resolve this (in spite it will be solved by direct FS inclusion, in this case job with #include SD.h & modified FS)
What about an other library? Using WiFi crash...surprising?
But in WiFi there are more inclusions! This is the list:
ifndef WiFi_h
define WiFi_h
include
include "Print.h"
include "IPAddress.h"
include "IPv6Address.h"
include "WiFiType.h"
include "WiFiSTA.h"
include "WiFiAP.h"
include "WiFiScan.h"
include "WiFiGeneric.h"
include "WiFiClient.h"
include "WiFiServer.h"
include "WiFiUdp.h"
The message is
C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiClient.h:42:10: error: 'shared_ptr' in namespace 'std' does not name a template type
So sysytem have done 9 inclusion fefore crash! What are the include in WiFiClient? This is the list
ifndef _WIFICLIENTH
define _WIFICLIENTH
include "Arduino.h"
include "Client.h"
include <memory
>
<memory
include
include "Print.h"
include "IPAddress.h"
include "IPv6Address.h"
include "WiFiType.h"
include "WiFiSTA.h"
include "WiFiAP.h"
include "WiFiScan.h"
include "WiFiGeneric.h"
include "WiFiClient.h"
include "WiFiServer.h"
include "WiFiUdp.h"
gives ..\sloeber.ino.cpp:13:22: fatal error: WiFiType.h: No such file or directory
ifndef ESP32WIFITYPEH
define ESP32WIFITYPEH
define WIFI_SCAN_RUNNING (-1)
define WIFI_SCAN_FAILED (-2)
define WiFiMode_t wifi_mode_t
define WIFI_OFF WIFI_MODE_NULL
define WIFI_STA WIFI_MODE_STA
define WIFI_AP WIFI_MODE_AP
define WIFI_AP_STA WIFI_MODE_APSTA
define WiFiEvent_t system_event_id_t
define WiFiEventInfo_t system_event_info_t
define WiFiEventId_t wifi_event_id_t
typedef enum { WL_NO_SHIELD = 255, // for compatibility with WiFi Shield library WL_IDLE_STATUS = 0, WL_NO_SSID_AVAIL = 1, WL_SCAN_COMPLETED = 2, WL_CONNECTED = 3, WL_CONNECT_FAILED = 4, WL_CONNECTION_LOST = 5, WL_DISCONNECTED = 6 } wl_status_t;
endif / ESP32WIFITYPEH /
If i made a multiple jobs without stopping on errors it seems it is good after second job in .ino files but error on Wifitypes in sloeber.ino.cpp for resolve, i have to put absolute path
include
//#include "C:\Users\cabrol\git\arduino-esp32\libraries\FS\src\FS.h" //#include "C:\Users\cabrol\git\arduino-esp32\libraries\SD\src\SD.h"//C:\Users\cabrol\git\arduino-esp32\libraries\SD\src\// //#include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFiScan\src\WiFiScan.h" //#include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFi.h"
include
include "Print.h"
include "IPAddress.h"
include "IPv6Address.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiType.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiSTA.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiAP.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiScan.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiGeneric.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiClient.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiServer.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiUdp.h"
include "C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFi.h"
//The setup function is called once at startup of the sketch void setup() { Serial.begin(9600); }
// The loop function is called in an endless loop void loop() { WiFi.begin(); //SD.begin(); Serial.println("Hey"); }
for finaly have
C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\WiFiClient.h:42:10: error: 'shared_ptr' in namespace 'std' does not name a template type
CONCLUSION For WiFi inclusion no path problem but type problem!
After runing 8 time without stops, and warning only on declarations problems:
String EspClass::getSketchMD5() { static String result; if (result.length()) { return result; } uint32_t lengthLeft = getSketchSize();
const esp_partition_t *running = esp_ota_get_running_partition(); if (!running) { log_e("Partition could not be found"); return String(); } const size_t bufSize = SPI_FLASH_SEC_SIZE; std::unique_ptr<uint8_t[]> buf(new uint8_t[bufSize]); uint32_t offset = 0; if(!buf.get()) { log_e("Not enough memory to allocate buffer"); return String(); } MD5Builder md5; md5.begin(); while( lengthLeft > 0) { size_t readBytes = (lengthLeft < bufSize) ? lengthLeft : bufSize; if (!ESP.flashRead(running->address + offset, reinterpret_cast<uint32_t*>(buf.get()), (readBytes + 3) & ~3)) { log_e("Could not read buffer from flash"); return String(); } md5.add(buf.get(), readBytes); lengthLeft -= readBytes; offset += readBytes; } md5.calculate(); result = md5.toString(); return result;
}
the error is here buf(new uint8_t[bufSize]); buf is non declared in the scope
And i dont know what doing with this complex declaration
CONCLUSION
For an other library esp_camera same problem with unique_ptr ...
1:15:09 Incremental Build of configuration Release for project Toto6 "C:\Sloeber\arduinoPlugin\tools\make\make" -k -j8 all C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory pre-build echo preBuild preBuild cmd /c if exist "C:\Sloeber\Workspace2\Toto6\partitions.csv" copy /y "C:\Sloeber\Workspace2\Toto6\partitions.csv" "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" 1 fichier(s) copi‚(s). cmd /c if not exist "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" copy "C:/Users/cabrol/git/arduino-esp32\tools\partitionsdefault_ffat.csv" "C:\Sloeber\Workspace2\Toto6\Release\partitions.csv" ' ' C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory main-build 'Building file: C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp' 'Starting C++ compile' "C:/Users/cabrol/git/arduino-esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/config" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_trace" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/app_update" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/asio" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bootloader_support" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/bt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/coap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/console" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/driver" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/efuse" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-tls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_adc_cal" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_event" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_http_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_ota" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_https_server" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_ringbuf" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp_websocket_client" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/espcoredump" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ethernet" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/expat" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fatfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freemodbus" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/freertos" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/heap" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/idf_test" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/jsmn" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/json" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/libsodium" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/log" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/lwip" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mbedtls" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mdns" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/micro-ecc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/mqtt" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/newlib" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nghttp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nimble" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/nvs_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/openssl" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protobuf-c" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/protocomm" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/pthread" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/sdmmc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/smartconfig_ack" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/soc" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spi_flash" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/spiffs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcp_transport" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/tcpip_adapter" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/ulp" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/unity" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/vfs" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wear_levelling" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wifi_provisioning" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/wpa_supplicant" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/xtensa-debug-module" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp32-camera" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/esp-face" "-IC:/Users/cabrol/git/arduino-esp32/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wextra -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ARDUINO-ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 -I"C:\Users\cabrol\git\arduino-esp32\cores\esp32" -I"C:\Users\cabrol\git\arduino-esp32\variants\esp32" -MMD -MP -MF"core\core\Esp.cpp.d" -MT"core\core\Esp.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp" -o "core\core\Esp.cpp.o"
:0:21: warning: ISO C++11 requires whitespace after the macro name C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp: In member function 'String EspClass::getSketchMD5()': C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp:180:5: error: 'unique_ptr' is not a member of 'std' std::unique_ptr buf(new uint8_t[bufSize]); ^ C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp:180:28: error: expected primary-expression before '[' token std::unique_ptr buf(new uint8_t[bufSize]); ^ C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp:180:29: error: expected primary-expression before ']' token std::unique_ptr buf(new uint8_t[bufSize]); ^ C:\Users\cabrol\git\arduino-esp32\cores\esp32\Esp.cpp:180:56: error: 'buf' was not declared in this scope std::unique_ptr buf(new uint8_t[bufSize]); ^ make[1]: *** [core\core\subdir.mk:123: core\core\Esp.cpp.o] Error 1 make[1]: Target 'main-build' not remade because of errors. make: *** [makefile:65: all] Error 2 "C:/Sloeber/arduinoPlugin/tools/make/make -k -j8 all" terminated with exit code 2. Build might be incomplete. 11:15:11 Build Failed. 6 errors, 1 warnings. (took 1s.413ms)
tried this example: https://randomnerdtutorials.com/esp32-data-logging-temperature-to-microsd-card/
used sloeber 4.4 and 4.3 with victory :)
Please attach your compressed project to test compilation
#include "Arduino.h"
/*********
Rui Santos
Complete project details at https://randomnerdtutorials.com
*********/
// Libraries for SD card
#include "FS.h"
#include "SD.h"
#include <SPI.h>
//DS18B20 libraries
#include <OneWire.h>
#include <DallasTemperature.h>
// Libraries to get time from NTP Server
#include <WiFi.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Define deep sleep options
uint64_t uS_TO_S_FACTOR = 1000000; // Conversion factor for micro seconds to seconds
// Sleep for 10 minutes = 600 seconds
uint64_t TIME_TO_SLEEP = 600;
// Replace with your network credentials
const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";
// Define CS pin for the SD card module
#define SD_CS 5
// Save reading number on RTC memory
RTC_DATA_ATTR int readingID = 0;
String dataMessage;
// Data wire is connected to ESP32 GPIO 21
#define ONE_WIRE_BUS 21
// Setup a oneWire instance to communicate with a OneWire device
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature sensor
DallasTemperature sensors(&oneWire);
// Temperature Sensor variables
float temperature;
// Define NTP Client to get time
WiFiUDP ntpUDP;
NTPClient timeClient(ntpUDP);
// Variables to save date and time
String formattedDate;
String dayStamp;
String timeStamp;
void getReadings();
void getTimeStamp();
void logSDCard();
void writeFile(fs::FS &fs, const char * path, const char * message) ;
void appendFile(fs::FS &fs, const char * path, const char * message);
void setup() {
// Start serial communication for debugging purposes
Serial.begin(115200);
// Connect to Wi-Fi network with SSID and password
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected.");
// Initialize a NTPClient to get time
timeClient.begin();
// Set offset time in seconds to adjust for your timezone, for example:
// GMT +1 = 3600
// GMT +8 = 28800
// GMT -1 = -3600
// GMT 0 = 0
timeClient.setTimeOffset(3600);
// Initialize SD card
SD.begin(SD_CS);
if(!SD.begin(SD_CS)) {
Serial.println("Card Mount Failed");
return;
}
uint8_t cardType = SD.cardType();
if(cardType == CARD_NONE) {
Serial.println("No SD card attached");
return;
}
Serial.println("Initializing SD card...");
if (!SD.begin(SD_CS)) {
Serial.println("ERROR - SD card initialization failed!");
return; // init failed
}
// If the data.txt file doesn't exist
// Create a file on the SD card and write the data labels
File file = SD.open("/data.txt");
if(!file) {
Serial.println("File doens't exist");
Serial.println("Creating file...");
writeFile(SD, "/data.txt", "Reading ID, Date, Hour, Temperature \r\n");
}
else {
Serial.println("File already exists");
}
file.close();
// Enable Timer wake_up
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
// Start the DallasTemperature library
sensors.begin();
getReadings();
getTimeStamp();
logSDCard();
// Increment readingID on every new reading
readingID++;
// Start deep sleep
Serial.println("DONE! Going to sleep now.");
esp_deep_sleep_start();
}
void loop() {
// The ESP32 will be in deep sleep
// it never reaches the loop()
}
// Function to get temperature
void getReadings(){
sensors.requestTemperatures();
temperature = sensors.getTempCByIndex(0); // Temperature in Celsius
//temperature = sensors.getTempFByIndex(0); // Temperature in Fahrenheit
Serial.print("Temperature: ");
Serial.println(temperature);
}
// Function to get date and time from NTPClient
void getTimeStamp() {
while(!timeClient.update()) {
timeClient.forceUpdate();
}
// The formattedDate comes with the following format:
// 2018-05-28T16:00:13Z
// We need to extract date and time
formattedDate = timeClient.getFormattedTime();
Serial.println(formattedDate);
// Extract date
int splitT = formattedDate.indexOf("T");
dayStamp = formattedDate.substring(0, splitT);
Serial.println(dayStamp);
// Extract time
timeStamp = formattedDate.substring(splitT+1, formattedDate.length()-1);
Serial.println(timeStamp);
}
// Write the sensor readings on the SD card
void logSDCard() {
dataMessage = String(readingID) + "," + String(dayStamp) + "," + String(timeStamp) + "," +
String(temperature) + "\r\n";
Serial.print("Save data: ");
Serial.println(dataMessage);
appendFile(SD, "/data.txt", dataMessage.c_str());
}
// Write to the SD card (DON'T MODIFY THIS FUNCTION)
void writeFile(fs::FS &fs, const char * path, const char * message) {
Serial.printf("Writing file: %s\n", path);
File file = fs.open(path, FILE_WRITE);
if(!file) {
Serial.println("Failed to open file for writing");
return;
}
if(file.print(message)) {
Serial.println("File written");
} else {
Serial.println("Write failed");
}
file.close();
}
// Append data to the SD card (DON'T MODIFY THIS FUNCTION)
void appendFile(fs::FS &fs, const char * path, const char * message) {
Serial.printf("Appending to file: %s\n", path);
File file = fs.open(path, FILE_APPEND);
if(!file) {
Serial.println("Failed to open file for appending");
return;
}
if(file.print(message)) {
Serial.println("Message appended");
} else {
Serial.println("Append failed");
}
file.close();
}
Hello @uzi18, I'am just try to make #include SD.h and SD.begin(); I am not shure complex project is OK (difficult working with Sloeber and IDE) Maybe have a look on this, it is my base project and it is never working on sloeber https://www.instructables.com/Arduino-Selfie-Camera/ Thanks
As I stated in https://github.com/Sloeber/arduino-eclipse-plugin/issues/1296#issuecomment-778622359 you are probably hitting #1184 because you are using the esp32 github repository. There is nothing you can do about that in your code. You may upgrade to the latest nightly Sloeber but that will probably cause other issues. There is no need to bombard us with data as due to #1184 it won't work.
@me-no-dev what is the status of the version causing #1184 ? is it already released. Will you help test it with V4.4 beta? https://github.com/Sloeber/arduino-eclipse-plugin/discussions/1290 https://github.com/Sloeber/arduino-eclipse-plugin/releases/tag/V4_4_0-beta
As I stated in #1296 (comment) you are probably hitting #1184 because you are using the esp32 github repository. There is nothing you can do about that in your code. You may upgrade to the latest nightly Sloeber but that will probably cause other issues. There is no need to bombard us with data as due to #1184 it won't work.
@me-no-dev what is the status of the version causing #1184 ? is it already released. Will you help test it with V4.4 beta?
1290
https://github.com/Sloeber/arduino-eclipse-plugin/releases/tag/V4_4_0-beta
Sorrry, OK i am going on 4,4,0 thanks
Sorrry, OK i am going on 4,4,0 thanks
Note that 4.4 is early beta and project migration from 4.3 is still problematic.
@jantje thanks : I'll going to try . I have download jdk 11.0. I have got a directory; where do i have to put it?
Sorry i found instructions this time
OK, Sloeber is running! Projects are as few hours ago. Some difficulties with java 11 (3 versions same time 8,11,15!) So i am downloading ESP32S2...
This code also works ok:
#include "Arduino.h"
#include "SD.h"
void setup(){
SD.begin();
}
void loop(){
Serial.println("Hey");
}
You can use only 11 for Sloeber 4.3 and 4.4
But if you can zip your project and paste here it will be more easy to find what is wrong.
Ok @uzi18
This code also works ok:
include "Arduino.h"
include "SD.h"
void setup(){ SD.begin();
}
void loop(){ Serial.println("Hey"); }
Could you test #include Wifi.h Wifi.begin();? It doesn't work for me... Maybe i have got an other problem? I 'am going to check 4,4 informations. I'am using java 11 for Sloeber 4,4 Windows 10 and make modified (for long strings) and try with Github ESP32S2
A complex ESP8266 compile fine.
Yes it works:
#include "Arduino.h"
#include "SD.h"
#include "WiFi.h"
void setup(){
SD.begin();
WiFi.begin();
}
void loop(){
Serial.println("Hey");
}
Finished building target: esp32_test
20:41:50 Build Finished. 0 errors, 0 warnings. (took 5s.407ms)
@uzi18 , Ok fine! Are you using ESP32S2? if yes whats are your compile parameters? For me a complex MEGA2560 compile too
please use "project->export" and choose general->archive file, paste here
OK, thanks,
please use "project->export" and choose general->archive file, paste here
but i haven't got any complex ESP32 project yet: i complexifie and now it is unsuable on arduino IDE and Sloeber? (I transposate my ESP8266 to an ESP32, it is worki,g stade) But if you like i put it, with the ESP8266 with receive values from the MEGA, he likes $ and #$ My problem is that i couldnt make with ESP1.0.4 too, i'am making an other import ESP 1.0.4 and investigate Compacto_ESP32_CAM.zip
This is my problem (for information). i'll going to resolve!
nstalling Arduino Board Platforms OK OK OK OK Failed to install esp32 Failed to extract tar.bz2. "C:/Sloeber/arduinoPlugin/downloads/xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip". Truncated ZIP file OK
I see this in your wifi.cpp
#include "Arduino.h"
#include "Wifii.h"
#include "C:\Program Files (x86)\Arduino - Copie\libraries\WiFi\src\WiFi.h"
#include "C:\Program Files (x86)\Arduino - Copie\libraries\WiFi\src\WiFiClient.h" //C:\Users\cabrol\git\arduino-esp32\libraries\WiFi\src\//
#include "C:\Program Files (x86)\Arduino - Copie\libraries\WiFiClientSecure\src\WiFiClientSecure.h"
#include "C:\Program Files (x86)\Arduino - Copie\libraries\HTTPSRedirect\src\HTTPSRedirect.h"
I won't say this will not work but it for sure doesn't make the code easy to investigate
Failed to install esp32 Failed to extract tar.bz2. "C:/Sloeber/arduinoPlugin/downloads/xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip". Truncated ZIP file
The download of xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip failed. delete C:/Sloeber/arduinoPlugin/downloads/xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip and try again
Indeed it is a problem
Hello, I have got a problem with ESP32 with basic projet. (in first time i put with issu #1295, but i think now it is not the same) Here is my all in one view:![image](https://user-images.githubusercontent.com/78273612/107844110-0be3c100-6dd1-11eb-991e-61336c40c97f.png)
The problem is If i "clean project", "index freshen, rebuild" and put libraries and "build all" or "build project", it will be ok or no. When it is good it is only few time, after Sloeber.ino.h got the libraries include and the problems appears. Even i erease the includes it still non working!
I have have configure the enable parrallel built to 8. If have made the git ESP32 external project import and inclusion like in the vidéo 5 times and now step by step. (The only difference are the use versions, i reproduce the new project before get procedure and the project doesnt create at this step (invisible), i erase and made a new after get procedure) I am trying to adding a reference to
"${workspace_loc:/Toto4/core/variant}" "${workspace_loc:/Toto4/core/core}" "${C:\Users\cabrol\git\arduino-esp32\libraries}" the problem is with or without last line
So what is my mystake? Thank for your Help Cedric
These are other tests:
A) Effect of direct build Adding an #include "SD.h" in .ino and direct build kill the project
B) Multi step 1 ) Creating project with 8 parrallel built, OK. 2) Adding an #include "SD.h" in .ino underligne the #include "SD.h" 3) Searching unresolved inclusions says everithing is OK 4) Build project says OK, but SD.h is undertligned SD begin is wrong too & searching unresolved is OK???
C) Reality verification (Living or dead?) 1) Searching unresolved before a build says OK, but it is underligned and the void loop(){ SD.begin(), Serial.println("Hey"); } Print:... ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" Connect to serial port COM11 at 115200 ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
So it is really not include...
D) Stopping the artificial life: and if i dont search unresolved, before the last Build, inclusion error appear, and compiling is refused... and includes are unremovables...
After this message, i have put exemples of console outputs messages.
Originally posted by @Brolensky in https://github.com/Sloeber/arduino-eclipse-plugin/issues/1295#issuecomment-778575290