Open Prelo96 opened 1 year ago
Made some progress... in platform.io changed the sintax to obtain the exact version of the depandancies i still have some problem..
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (2.1.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
framework-arduinoespressif32 @ 3.10004.210126 (1.0.4)
tool-esptoolpy @ 1.30000.201119 (3.0.0)
toolchain-xtensa32 @ 2.50200.80 (5.2.0) LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 33 compatible libraries Scanning dependencies... Dependency Graph |-- TFT_eSPI @ 2.5.21 |-- RotaryEncoder @ 1.5.3 |-- SafeString @ 4.1.25 |-- AceButton @ 1.9.2 |-- FluidNC_WebSocket @ 1.0.0 |-- ArduinoOTA @ 1.0 |-- EEPROM @ 1.0.3 |-- WiFi @ 1.0 |-- Wire @ 1.0.1 Building in release mode Archiving .pio\build\esp32dev\lib194\libTFT_eSPI.a Archiving .pio\build\esp32dev\libefd\libRotaryEncoder.a Compiling .pio\build\esp32dev\lib0e6\SafeString\BufferedOutput.cpp.o Compiling .pio\build\esp32dev\lib0e6\SafeString\SafeStringStream.cpp.o Compiling .pio\build\esp32dev\lib0e6\SafeString\SerialComs.cpp.o Compiling .pio\build\esp32dev\lib0e6\SafeString\loopTimer.cpp.o Compiling .pio\build\esp32dev\lib0e6\SafeString\millisDelay.cpp.o Compiling .pio\build\esp32dev\lib9e8\AceButton\ace_button\AceButton.cpp.o Compiling .pio\build\esp32dev\lib9e8\AceButton\ace_button\ButtonConfig.cpp.o Compiling .pio\build\esp32dev\lib9e8\AceButton\ace_button\EncodedButtonConfig.cpp.o .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp: In member function 'void BufferedOutput::connect(Stream&, uint32_t)': .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:164:28: error: 'class Stream' has no member named 'availableForWrite' int avail = streamPtr->availableForWrite(); ^ .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp: In member function 'int BufferedOutput::internalStreamAvailableForWrite()': .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:304:24: error: 'class Stream' has no member named 'availableForWrite' avail = streamPtr->availableForWrite(); ^ *** [.pio\build\esp32dev\lib0e6\SafeString\BufferedOutput.cpp.o] Error 1 =========================================================== [FAILED] Took 4.89 seconds ===========================================================
Il processo del terminale "C:\Users\prelo.platformio\penv\Scripts\platformio.exe 'run'" è stato terminato. Codice di uscita: 1.
Terminale verrà riutilizzato dalle attività, premere un tasto qualsiasi per chiuderlo.
Yea, those are the changes you need to do for the build to succeed. Also, every time platform.io http://platform.io/ dependencies are updated - changes get wiped out. So they need to be redone. But this are rare cases since dependencies are defined by a specific version.
On Aug 17, 2024, at 10:43 AM, noname1020 @.***> wrote:
Ok made few changes and managed to compiled success and uploaded. 1.after replaced the file User_Setup.h uncomment #define TFT_BL 32 and #define TFT_BACKLIGHT_ON HIGH 2.Comment out scr/Pendant.h // #include
Have not yet try this on my fluidnc,will report back if it's working. — Reply to this email directly, view it on GitHub https://github.com/AC8L/FluidNC-Pendant/issues/1#issuecomment-2294879045, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTIRITBUXLPZNBNDBDAUVTZR5OPVAVCNFSM6AAAAABMVM5TESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUHA3TSMBUGU. You are receiving this because you are subscribed to this thread.
Hi, i tried to build and load your program but i have some problem. git cloned the repository waited for all the depandanciens config.h changed file in .pio changed but no fortune at all: log of the build
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino) -------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (2.1.0) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:framework-arduinoespressif32 @ 3.10004.210126 (1.0.4)
tool-esptoolpy @ 1.30000.201119 (3.0.0)
toolchain-xtensa32 @ 2.50200.80 (5.2.0) LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 33 compatible libraries Scanning dependencies... Dependency Graph |-- TFT_eSPI @ 2.5.30 |-- RotaryEncoder @ 1.5.3 |-- SafeString @ 4.1.27 |-- AceButton @ 1.9.2 |-- FluidNC_WebSocket @ 1.0.0 |-- ArduinoOTA @ 1.0 |-- EEPROM @ 1.0.3 |-- WiFi @ 1.0 |-- Wire @ 1.0.1 Building in release mode Compiling .pio\build\esp32dev\src\main.cpp.o Generating partitions .pio\build\esp32dev\partitions.bin Compiling .pio\build\esp32dev\lib22b\SPI\SPI.cpp.o In file included from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\tools\sdk\include\newlib/stdio.h:47:0, from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:27, from src\Pendant.h:3, from src\main.cpp:6: C:\Users\prelo.platformio\packages\framework-arduinoespressif32\tools\sdk\include\newlib/sys/reent.h:463:10: error: #if with no expression Compiling .pio\build\esp32dev\libea3\FS\FS.cpp.o Compiling .pio\build\esp32dev\libea3\FS\vfs_api.cpp.o Compiling .pio\build\esp32dev\libea7\SPIFFS\SPIFFS.cpp.o Compiling .pio\build\esp32dev\lib194\TFT_eSPI\TFT_eSPI.cpp.o In file included from .pio\libdeps\esp32dev\FluidNC_WebSocket\src/FluidNC_WebSocket.h:7:0, from src\Pendant.h:9, from src\main.cpp:6: .pio\libdeps\esp32dev\SafeString\src/SafeString.h:138:0: warning: "F" redefined
define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^ In file included from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:146:0, from src\Pendant.h:3, from src\main.cpp:6: C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.h:40:0: note: this is the location of the previous definition
define F(string_literal) (FPSTR(PSTR(string_literal)))
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:18:0: warning: "TFT_CS" redefined
define TFT_CS 5
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:169:0: note: this is the location of the previous definition
define TFT_CS PIN_D8 // Chip select control pin D8
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:19:0: warning: "TFT_DC" redefined
define TFT_DC 16
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:170:0: note: this is the location of the previous definition
define TFT_DC PIN_D3 // Data Command control pin
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:20:0: warning: "TFT_RST" redefined
define TFT_RST 23
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:171:0: note: this is the location of the previous definition
define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:37:0: warning: "SPI_FREQUENCY" redefined
define SPI_FREQUENCY 40000000
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:357:0: note: this is the location of the previous definition
define SPI_FREQUENCY 27000000
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:40:0: warning: "SPI_READ_FREQUENCY" redefined
define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:68, from src\Pendant.h:18, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:363:0: note: this is the location of the previous definition
define SPI_READ_FREQUENCY 20000000
^ Compiling .pio\build\esp32dev\libefd\RotaryEncoder\RotaryEncoder.cpp.o Archiving .pio\build\esp32dev\lib22b\libSPI.a In file included from src\Pendant.h:18:0, from src\main.cpp:6: .pio\libdeps\esp32dev\TFT_eSPI/TFT_eSPI.h:970:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp]
warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
Compiling .pio\build\esp32dev\lib0e6\SafeString\BufferedInput.cpp.o Compiling .pio\build\esp32dev\lib0e6\SafeString\BufferedOutput.cpp.o In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:18:0: warning: "TFT_CS" redefined
define TFT_CS 5
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:169:0: note: this is the location of the previous definition
define TFT_CS PIN_D8 // Chip select control pin D8
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:19:0: warning: "TFT_DC" redefined
define TFT_DC 16
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:170:0: note: this is the location of the previous definition
define TFT_DC PIN_D3 // Data Command control pin
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:20:0: warning: "TFT_RST" redefined
define TFT_RST 23
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:171:0: note: this is the location of the previous definition
define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:37:0: warning: "SPI_FREQUENCY" redefined
define SPI_FREQUENCY 40000000
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:357:0: note: this is the location of the previous definition
define SPI_FREQUENCY 27000000
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:61:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h:40:0: warning: "SPI_READ_FREQUENCY" redefined
define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI/User_Setup_Select.h:30:0, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:68, from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16: .pio\libdeps\esp32dev\TFT_eSPI/User_Setup.h:363:0: note: this is the location of the previous definition
define SPI_READ_FREQUENCY 20000000
^ In file included from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:16:0: .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:970:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp]
warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
In file included from .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.h:38:0, from .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:2: .pio\libdeps\esp32dev\SafeString\src\SafeString.h:138:0: warning: "F" redefined
define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^ In file included from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:146:0, from .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:1: C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.h:40:0: note: this is the location of the previous definition
define F(string_literal) (FPSTR(PSTR(string_literal)))
^ In file included from .pio\libdeps\esp32dev\SafeString\src\BufferedInput.h:39:0, from .pio\libdeps\esp32dev\SafeString\src\BufferedInput.cpp:2: .pio\libdeps\esp32dev\SafeString\src\SafeString.h:138:0: warning: "F" redefined
define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^ In file included from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:146:0, from .pio\libdeps\esp32dev\SafeString\src\BufferedInput.cpp:1: C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.h:40:0: note: this is the location of the previous definition
define F(string_literal) (FPSTR(PSTR(string_literal)))
^ Compiling .pio\build\esp32dev\lib0e6\SafeString\PinFlasher.cpp.o Archiving .pio\build\esp32dev\libea7\libSPIFFS.a Archiving .pio\build\esp32dev\libea3\libFS.a .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp: In member function 'void BufferedOutput::connect(Stream&, uint32_t)': .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:165:28: error: 'class Stream' has no member named 'availableForWrite' int avail = streamPtr->availableForWrite(); ^ Compiling .pio\build\esp32dev\lib0e6\SafeString\SafeString.cpp.o .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp: In member function 'int BufferedOutput::internalStreamAvailableForWrite()': .pio\libdeps\esp32dev\SafeString\src\BufferedOutput.cpp:303:24: error: 'class Stream' has no member named 'availableForWrite' avail = streamPtr->availableForWrite(); ^ [.pio\build\esp32dev\lib0e6\SafeString\BufferedOutput.cpp.o] Error 1 In file included from src\Pendant.h:168:0, from src\main.cpp:6: src\ButtonHandlers.h: In function 'void red_button_handleEvents(uint8_t)': src\ButtonHandlers.h:62:16: warning: enumeration value 'Unknwn' not handled in switch [-Wswitch] switch (myCNC.mState()) ^ src\ButtonHandlers.h:62:16: warning: enumeration value 'Idle' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Jog' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Home' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Check' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Cycle' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Door' not handled in switch [-Wswitch] src\ButtonHandlers.h:62:16: warning: enumeration value 'Sleep' not handled in switch [-Wswitch] [.pio\build\esp32dev\src\main.cpp.o] Error 1 In file included from .pio\libdeps\esp32dev\SafeString\src\SafeString.cpp:103:0: .pio\libdeps\esp32dev\SafeString\src\SafeString.h:138:0: warning: "F" redefined
define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^ In file included from C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:146:0, from .pio\libdeps\esp32dev\SafeString\src\SafeString.cpp:102: C:\Users\prelo.platformio\packages\framework-arduinoespressif32\cores\esp32/WString.h:40:0: note: this is the location of the previous definition
define F(string_literal) (FPSTR(PSTR(string_literal)))
^ ================================================================ [FAILED] Took 9.03 seconds ================================================================
Il processo del terminale "C:\Users\prelo.platformio\penv\Scripts\platformio.exe 'run'" è stato terminato. Codice di uscita: 1.
Terminale verrà riutilizzato dalle attività, premere un tasto qualsiasi per chiuderlo.
i hope this info could help ask me anything else if you need