ThomasToka / MarlinFirmware

This is [MARLIN-E3S1PROFORK-BYTT]. A Fork of Marlin 2.1.x-bugfix with the Creality Ender 3 S1 Pro source code included. Personal tweaks, fixes and enhancements included. This firmware is for the Ender 3 S1 Pro (touchscreen) and Ender 3 S1 Plus (touchscreen).
227 stars 8 forks source link

Trying to compile Marlin fork #61

Closed bmurphy1976 closed 8 months ago

bmurphy1976 commented 8 months ago

I''m trying to compile the MARLIN-E3S1PROFORK-BYTT-RELEASE-CODE-v025 branch. I want to enable SKEW_CORRECTION_GCODE functionality.

When I try to build, I get the following output. Wstring.h and arduino.h are missing and I'm having trouble figuring out what I am doing wrong. I'm on Ubuntu 23.04 but trying to use the platformio and Marlin Build VS Code plugins per the official Marlin docs.

~/w/marlin$ platformio run -e STM32F401RC_creality_e3s1pro_ubl ; echo "done" >|"/tmp/ipc"
Processing STM32F401RC_creality_e3s1pro_ubl (board: genericSTM32F401RC; platform: ststm32@~12.1; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Copying variant MARLIN_CREALITY_STM32F401RC to framework directory...
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F401RC.html
PLATFORM: ST STM32 (12.1.1) > STM32F401RC (64k RAM. 256k Flash)
HARDWARE: STM32F401RC 84MHz, 64KB RAM, 256KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 @ 4.10900.200819 (1.9.0) 
 - framework-cmsis @ 2.50501.200527 (5.5.1) 
 - toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- IWatchdog @ 1.0.0
|-- SPI @ 1.0
|-- EEPROM @ 2.0.1
|-- SoftwareSerial @ 1.0
|-- Wire @ 1.0
|-- Servo @ 1.1.2
Building in release mode
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/inc/Warnings.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/lcd_rts.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/lcd_rts_laser.cpp.o
Marlin/src/lcd/rts/e3s1pro/lcd_rts.cpp:20:10: fatal error: Wstring.h: No such file or directory

*****************************************************************
* Looking for Wstring.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Wstring.h"
* Web  > https://registry.platformio.org/search?q=header:Wstring.h
*
*****************************************************************

   20 | #include <Wstring.h>
      |          ^~~~~~~~~~~
compilation terminated.
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/preview.cpp.o
Marlin/src/lcd/rts/e3s1pro/lcd_rts_laser.cpp:1:10: fatal error: Wstring.h: No such file or directory

*****************************************************************
* Looking for Wstring.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Wstring.h"
* Web  > https://registry.platformio.org/search?q=header:Wstring.h
*
*****************************************************************

    1 | #include <Wstring.h>
      |          ^~~~~~~~~~~
compilation terminated.
Marlin/src/lcd/rts/e3s1pro/preview.cpp:3:10: fatal error: arduino.h: No such file or directory

*****************************************************************
* Looking for arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:arduino.h"
* Web  > https://registry.platformio.org/search?q=header:arduino.h
*
*****************************************************************

    3 | #include <arduino.h>
      |          ^~~~~~~~~~~
compilation terminated.
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/motion.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/planner.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/printcounter.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/probe.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/servo.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/settings.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/stepper.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/stepper/indirection.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/temperature.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/module/tool_change.cpp.o
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/sd/Sd2Card.cpp.o
*** [.pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/lcd_rts.cpp.o] Error 1
*** [.pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/lcd_rts_laser.cpp.o] Error 1
*** [.pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/lcd/rts/e3s1pro/preview.cpp.o] Error 1
Compiling .pio/build/STM32F401RC_creality_e3s1pro_ubl/src/src/sd/SdBaseFile.cpp.o
======================================================================================================== [FAILED] Took 4.62 seconds ========================================================================================================

Environment                       Status    Duration
--------------------------------  --------  ------------
STM32F401RC_creality_e3s1pro_ubl  FAILED    00:00:04.617
=================================================================================================== 1 failed, 0 succeeded in 00:00:04.617 ===================================================================================================
ThomasToka commented 8 months ago

Hello, sorry. This is so basic.. I cant support you with this. Its specific to your build environment ;)

Just look what it wants and which files are maybe capital or not in your environment.

Besides that: I do not support compile support. You can naturally do whatever you want as its open source but you need to deal with it yourself.

Remember: The flash space is nearly fully used. Maybe you even wont be able to enable this function even if you fix your environment.