Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Issues compiling Marlin (no replies)

$
0
0
Hi!

I'm having trouble compiling Marlin for Teensy 4.1 board with TMC2209 drivers, BLTouch sensor and DGUS_LCD_UI_RELOADED LCD enabled. I've tried the bugfix version however other new errors pop up while compiling! In both compilations I use a clean installation of platformio (i.e. I've deleted the .platformio folder from my user folder and reinstalled in each compilation for both production and bugfix branches).

When compiling for Marlin 2.1.2.5 which is the version I want to use I get these errors:

In file included from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/../../feature/../lcd/../module/settings.h:31:0,
                 from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/../../feature/../lcd/marlinui.h:31,
                 from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/../../feature/tmc_util.h:25,
                 from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/trinamic.h:35,
                 from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/indirection.h:77,
                 from Marlin\src\gcode\feature\runout\../../../feature/../module/stepper.h:47,
                 from Marlin\src\gcode\feature\runout\../../../feature/runout.h:31,
                 from Marlin\src\gcode\feature\runout\M412.cpp:28:
Marlin\src\gcode\feature\runout\../../../feature/../module/stepper/../../feature/../lcd/../module/../HAL/shared/eeprom_api.h:27:30: fatal error: ../../libs/crc16.h: No such file or directory
compilation terminated.
*** [.pio\build\teensy41\src\src\gcode\feature\runout\M412.cpp.o] Error 1
Marlin\src\inc\Warnings.cpp:86:6: warning: #warning "Note: Auto-assigned LCD_SERIAL_PORT. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)" [-Wcpp]
     #warning "Note: Auto-assigned LCD_SERIAL_PORT. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
      ^
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp: In static member function 'static void DGUSDisplay::Init()':
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp:58:3: error: 'LCD_SERIAL' was not declared in this scope
   LCD_SERIAL.begin(LCD_BAUDRATE);
   ^
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp: In static member function 'static void DGUSDisplay::Read(uint16_t, uint8_t)':
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp:66:3: error: 'LCD_SERIAL' was not declared in this scope
   LCD_SERIAL.write(size);
   ^
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp: In static member function 'static void DGUSDisplay::Write(uint16_t, const void*, uint8_t)':
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp:77:5: error: 'LCD_SERIAL' was not declared in this scope
     LCD_SERIAL.write(*data++);
     ^
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp: In static member function 'static void DGUSDisplay::WriteString(uint16_t, const void*, uint8_t, bool, bool, bool)':
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp:111:5: error: 'LCD_SERIAL' was not declared in this scope
     LCD_SERIAL.write(' ');
     ^
Marlin\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp:114:5: error: 'LCD_SERIAL' was not declared in this scope
     LCD_SERIAL.write(*data++);
     ^
compilation terminated due to -fmax-errors=5.
*** [.pio\build\teensy41\src\src\lcd\extui\dgus_reloaded\DGUSDisplay.cpp.o] Error 1

I don't know why the LCD_SERIAL error, is this because Platformio is not automatically downloading the required libraries, or is it because more than one library is being downloaded and trying to link against?


And when compiling for the latest bugfix I get these:

In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-1-axes.h:44:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals-1-axes.h:32,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:27,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-5-post.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-6-type.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:284:11: error: missing binary operator before token "("
 #if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:988:11: error: missing binary operator before token "("
 #if EITHER(MORGAN_SCARA, MP_SCARA)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:1787:11: error: missing binary operator before token "("
 #if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:1991:11: error: missing binary operator before token "("
 #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
           ^
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-1-axes.h:44:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals-1-axes.h:32,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:27,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-5-post.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-6-type.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:3039:11: error: missing binary operator before token "("
 #if EITHER(ANYCUBIC_LCD_I3MEGA, ANYCUBIC_LCD_CHIRON)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:3327:11: error: missing binary operator before token "("
 #if EITHER(RGB_LED, RGBW_LED)
           ^
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-4-adv.h:33:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals-4-adv.h:32,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:30,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-5-post.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre-6-type.h:24,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:303:11: error: missing binary operator before token "("
   #if BOTH(ADAPTIVE_FAN_SLOWING, PIDTEMP)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:1086:11: error: missing binary operator before token "("
 #if EITHER(INPUT_SHAPING_X, INPUT_SHAPING_Y)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:1322:11: error: missing binary operator before token "("
 #if EITHER(DIGIPOT_MCP4018, DIGIPOT_MCP4451)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:1379:28: error: missing binary operator before token "("
 #if HAS_BED_PROBE && EITHER(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI)
                            ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:1436:11: error: missing binary operator before token "("
 #if EITHER(HAS_DISPLAY, DWIN_LCD_PROUI)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:1500:26: error: missing binary operator before token "("
 #if HAS_DISPLAY && EITHER(SDSUPPORT, SET_PROGRESS_MANUALLY)
                          ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2148:11: error: missing binary operator before token "("
 #if EITHER(AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_UBL)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2183:11: error: missing binary operator before token "("
 #if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2191:9: error: missing binary operator before token "("
 #if BOTH(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS)
         ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2305:11: error: missing binary operator before token "("
 #if EITHER(ARC_SUPPORT, BEZIER_CURVE_SUPPORT)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2393:9: error: missing binary operator before token "("
 #if BOTH(SDSUPPORT, DIRECT_STEPPING)
         ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:3173:13: error: missing binary operator before token "("
   #if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
             ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:3335:11: error: missing binary operator before token "("
 #if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
           ^
UnicodeEncodeError: 'charmap' codec can't encode character '\u016f' in position 1650: character maps to :
  File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 167:
    env.SConscript(env.GetExtraScripts("pre"), exports="env")
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "F:\Documents\Projects\3D Printer Board\Marlin Firmware\Bugfix\Marlin-bugfix-2.1.x\buildroot\share\PlatformIO\scripts\preflight-checks.py", line 162:
    sanity_check_target()
  File "F:\Documents\Projects\3D Printer Board\Marlin Firmware\Bugfix\Marlin-bugfix-2.1.x\buildroot\share\PlatformIO\scripts\preflight-checks.py", line 82:
    file.write(modified_text)
  File "C:\Users\User\.platformio\python3\Lib\encodings\cp1252.py", line 19:
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]


I've attached my platformio.ini, Configuration.h, Configuration_adv.h and pins_TEENSY41.h which are all the files I believe I've changed thus far!

Thank you kindly in advance for any help!

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>