Marlin 2.0.9.2 kompilieren Visual Studio Code
14. February 2022 12:42
Hallo,
ich versuche grad Marlin 2.0.9.2 im Visual Studio Code zu kompilieren, dabei kommt dieser Fehler:

c:\users\user\documents\arduino\marlin 2.0.9.2 mix extruder\marlin\configuration.h:1:12: fatal error: U8glib-HAL.h: No such file or directory

Die Library habe ich in der Arduino IDE eingebunden, aber Visual Studio Code findet sie nicht.
Was muss man umstellen?

Hier die komplette Fehlermeldung:
Executing task in folder Marlin 2.0.9.2 Mix Extruder: C:\Users\User\.platformio\penv\Scripts\platformio.exe run <

Processing mega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)
-------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:39:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
c:\users\user\documents\arduino\marlin 2.0.9.2 mix extruder\marlin\configuration.h:1:12: fatal error: U8glib-HAL.h: No such file or directory

********************************************************************
* Looking for U8glib-HAL.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:U8glib-HAL.h"
* Web  > [registry.platformio.org]
*
********************************************************************

   #include 
            ^~~~~~~~~~~~~~
compilation terminated.
CalledProcessError: Command '"C:\Users\User\.platformio\packages\toolchain-atmelavr\bin\avr-g++.exe" -D__MARLIN_FIRMWARE__ -DNDEBUG -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\User\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:     
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:     
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 320:
    apply_features_config()
  File "C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 139:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 296:
    load_marlin_features()
  File "C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 284:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\User\.platformio\python3\lib\subprocess.py", line 424:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\User\.platformio\python3\lib\subprocess.py", line 528:
    raise CalledProcessError(retcode, process.args,
=========================================== [FAILED] Took 0.89 seconds ===========================================

Environment    Status    Duration
-------------  --------  ------------
mega2560       FAILED    00:00:00.895
====================================== 1 failed, 0 succeeded in 00:00:00.895 ======================================Der Terminalprozess "C:\Users\User\.platformio\penv\Scripts\platformio.exe 'run'" wurde mit folgendem Exitcode beendet: 1.

Das Terminal wird von Aufgaben wiederverwendet, drücken Sie zum Schließen eine beliebige Taste.



Lieben Gruß,
tru

2-mal bearbeitet. Zuletzt am 14.02.22 12:50.
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
15. February 2022 10:29
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
16. February 2022 05:13
Hallo AlterBAstler,
lieben Dank für deine Antwort.
Versucht habe ich: pio lib install "marlinfirmware/[email protected]^0.5.1"
funktioniert aber nicht.
die Fehlermeldung kommt wohl, da die Library noch nicht installiert ist und ich weiss nicht wie...

Ich habe folgendes durchgeführt (Rot habe ich eingefügt):
#
# Marlin Firmware
# PlatformIO Configuration File
#
# For detailed documentation with EXAMPLES:
#
# [docs.platformio.org]
#

# Automatic targets - enable auto-uploading
#targets = upload

[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = mega2560
include_dir = Marlin
extra_configs =
ini/avr.ini
ini/due.ini
ini/esp32.ini
ini/features.ini
ini/lpc176x.ini
ini/native.ini
ini/samd51.ini
ini/stm32-common.ini
ini/stm32f0.ini
ini/stm32f1-maple.ini
ini/stm32f1.ini
ini/stm32f4.ini
ini/stm32f7.ini
ini/stm32h7.ini
ini/teensy.ini

#
# The 'common' section applies to most Marlin builds.
#
# By default platformio build will abort after 5 errors.
# Remove '-fmax-errors=5' from build_flags below to see all.
#
[common]
build_flags = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG -DU8G_HAL_LINKS
-fmax-errors=5

extra_scripts =
pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
lib_deps =

default_src_filter = + - - +
  ../libraries/U8glib-HAL/src/[email protected]^0.5.1


#
# Default values apply to all 'env:' prefixed environments
#
[env]
framework = arduino
extra_scripts = ${common.extra_scripts}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
monitor_speed = 115200
monitor_flags =
--quiet
--echo
--eol
LF
--filter
colorize
--filter
time

#
# Just print the dependency tree
#
[env:include_tree]
platform = atmelavr
board = atmega2560
build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
src_filter = +

[env:megaatmega2560]
platform = atmelavr
framework = arduino
board = megaatmega2560
build_flags = ${common.build_flags}
board_build.f_cpu = 16000000L
lib_deps = http s://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
src_filter = ${common.default_src_filter} +
monitor_speed = 115200

5-mal bearbeitet. Zuletzt am 16.02.22 06:31.
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
16. February 2022 13:35
Du versuchst es am besten hiermit:
[marlinfw.org]
[chriss.gebbing.de]

Herzl. Grüße
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
16. February 2022 19:25
Hallo AlterBastler,

lieben Dank, hat mir weitergeholfen... hatte über ein weiteres Tutorial dann die Info, wie man über Pio Home die Libraries Downloadet etc.

HAbe auch Den Auto Build Marlin vorher schonausprobiert und jetzt, nach dem Update der U8Glib-HAL mit Auto Build Marlin es noch mal probiert.

Jetzt kommt immer der Fehler (Print.h wird nicht gefunden...):

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – [aka.ms]       

PS C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder> platformio run -e mega2560
Processing mega2560 (platform: atmelavr; board: megaatmega2560)
--------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: Atmel AVR (3.4.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)     
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
 - toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|--  0.5.1
Building in release mode
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\Servo.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\eeprom.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\fast_pwm.o
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
Compiling .pio\build\mega2560\src\src\HAL\AVR\fastio.o
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\HAL.cpp:24:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > Compiling .pio\build\mega2560\src\src\HAL\AVR\u8g_com_HAL_AVR_sw_spi.o
[rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
Compiling .pio\build\mega2560\src\src\HAL\AVR\watchdog.o
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\Servo.cpp:55:
Compiling .pio\build\mega2560\src\src\HAL\shared\Delay.o
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
Compiling .pio\build\mega2560\src\src\HAL\shared\HAL_MinSerial.o
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\eeprom.cpp:24:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > Compiling .pio\build\mega2560\src\src\HAL\shared\eeprom_api.o
[rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
Compiling .pio\build\mega2560\src\src\HAL\shared\esp_wifi.o
Compiling .pio\build\mega2560\src\src\HAL\shared\servo.o
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\fast_pwm.cpp:24:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\AVR\watchdog.cpp:24:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\shared\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\shared\Delay.h:24,
                 from Marlin\src\HAL\shared\Delay.cpp:23:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\shared\../../core/../inc/../../Configuration.h:1:0,    
                 from Marlin\src\HAL\shared\../../core/../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\shared\../../core/../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\shared\../../core/serial.h:24,
                 from Marlin\src\HAL\shared\HAL_MinSerial.h:24,
                 from Marlin\src\HAL\shared\HAL_MinSerial.cpp:22:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\shared\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\shared\eeprom_api.cpp:23:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\shared\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\shared\esp_wifi.cpp:23:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\shared\../../inc/../../Configuration.h:1:0,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfigPre.h:39,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\shared\servo.cpp:53:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
Compiling .pio\build\mega2560\src\src\MarlinCore.o
Compiling .pio\build\mega2560\src\src\core\serial.o
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\Servo.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\eeprom.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\fast_pwm.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\watchdog.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\Delay.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\HAL_MinSerial.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\eeprom_api.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\esp_wifi.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\shared\servo.o] Error 1
In file included from Marlin\src\inc/../../Configuration.h:1:0,
                 from Marlin\src\inc/MarlinConfigPre.h:39,
                 from Marlin\src\inc/MarlinConfig.h:28,
                 from Marlin\src\MarlinCore.h:24,
                 from Marlin\src\MarlinCore.cpp:31:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

   #include 
            ^~~~~~~~~
compilation terminated.
*** [.pio\build\mega2560\src\src\MarlinCore.o] Error 1
In file included from Marlin\src\core\../inc/../../Configuration.h:1:0,
                 from Marlin\src\core\../inc/MarlinConfigPre.h:39,
                 from Marlin\src\core\../inc/MarlinConfig.h:28,
                 from Marlin\src\core\serial.h:24,
                 from Marlin\src\core\serial.cpp:23:
.pio\libdeps\mega2560\U8glib-HAL\src/U8glib-HAL.h:43:12: fatal error: Print.h: No such file 
or directory

***************************************************************
* Looking for Print.h dependency? Check our library registry!
*
* CLI  > platformio lib search "headertongue sticking out smileyrint.h"
* Web  > [rint.h" target="_blank"  rel="nofollow">registry.platformio.org]
*
***************************************************************

            ^~~~~~~~~
compilation terminated.
*** [.pio\build\mega2560\src\src\core\serial.o] Error 1
================================ [FAILED] Took 6.43 seconds ================================

Environment    Status    Duration
-------------  --------  ------------
mega2560       FAILED    00:00:06.429
========================== 1 failed, 0 succeeded in 00:00:06.429 ========================== 
PS C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder> echo "done" >"C:\Users\User\AppData\Local\Temp\ipc"
PS C:\Users\User\Documents\Arduino\Marlin 2.0.9.2 Mix Extruder> 
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 04:51
Aus U8glib-HAL.h:
#ifdef U8G_HAL_LINKS
  #include "U8glibPrint.h"
  #define U8GLIB_PRINT_CLASS U8glibPrint
#else
  #include < Print.h >
  #define U8GLIB_PRINT_CLASS Print
#endif
[github.com]

Herzl. Grüße

1-mal bearbeitet. Zuletzt am 17.02.22 04:52.
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 08:19
Hallo AlterBastler,

Marlin Firmware aktuell, problem ist
//=============================================================================
//======================= LCD / Controller Selection =======================
//========================= (Graphical LCDs) ========================
//=============================================================================

//
// CONTROLLER TYPE: Graphical 128x64 (DOGM)
//
// IMPORTANT: The U8glib library is required for Graphical Display!
// [github.com]
//
// NOTE: If the LCD is unresponsive you may need to reverse the plugs.
//

//
// RepRapDiscount FULL GRAPHIC Smart Controller
// [reprap.org]
//
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER


Die Library habe ich in Pio Home installiert und in der configuartion.h included.

Beim kompilieren kommt dann aber die Fehlermeldung:
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – [aka.ms]       

PS C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC> platformio run -e mega2560
Processing mega2560 (board: megaatmega2560; platform: [email protected]~3.4; framework: arduino)    
--------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:39:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
c:\users\user\documents\arduino\marlin-2.0.9.2-vsc\marlin\configuration.h:1:10: fatal error: U8glib-HAL.h: No such file or directory

********************************************************************
* Looking for U8glib-HAL.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:U8glib-HAL.h"
* Web  > [registry.platformio.org]
*
********************************************************************

 #include 
          ^~~~~~~~~~~~~~
compilation terminated.
CalledProcessError: Command '"C:\Users\User\.platformio\packages\toolchain-atmelavr\bin\avr-g++.exe" -DU8G_HAL_LINKS -D__MARLIN_FIRMWARE__ -DNDEBUG -DU8G_HAL_LINKS -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\User\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 247:
    apply_features_config()
  File "C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 133:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\User\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 216:
    load_marlin_features()
  File "C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 204:
    define_list = run_preprocessor(env)
  File "C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC\buildroot\share\PlatformIO\scripts\preprocessor.py", line 42:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\User\.platformio\python3\lib\subprocess.py", line 528:
    raise CalledProcessError(retcode, process.args,
================================ [FAILED] Took 1.01 seconds ================================

Environment    Status    Duration
-------------  --------  ------------
mega2560       FAILED    00:00:01.009
========================== 1 failed, 0 succeeded in 00:00:01.009 ========================== 
PS C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC> echo "done" >"C:\Users\User\AppData\Local\Temp\ipc"
PS C:\Users\User\Documents\Arduino\Marlin-2.0.9.2-VSC> 
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 09:36
Quote

Die Library habe ich in Pio Home installiert und in der configuartion.h included.
Heißt das, Du hast eine zusätzliche #include...-Zeile in die configuration.h geschrieben?
Das funktioniert nicht.

Herzl. Grüße
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 12:30
Hallo AlterBastler,
wo muss die U8glib-HAL. h
Denn included werden?
Wenn ich sie in der configuration
h raus nehme, dann kommt der Fehler beim kompilieren.
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 13:34
Mit #include wird die Bibliothek eingebunden, d.h., das Programm teilt dem
Compiler/Linker mit, daß es bestimmte Teile der in der jeweiligen Headerdatei (*.h)
aufgeführten Definitionen bzw. Funktionen benötigt.
Der Fehler besagt, daß die angeforderte Bibliothek nicht gefunden wird. Das ist
zweierlei.
Deinstalliere diese Marlin-Version komplett und setze alles mit Autobuild Marlin neu auf,
das ist die beste Lösung. Du hast jetzt zu viele mögliche Fehlerquellen eingebaut.
Dann machst Du als allererstes ein Build, bevor Du selbst irgendwas veränderst.
Wenn das erfolgreich ist, dann erst machst Du deine Einstellungen, am besten nach und nach.
Nur so lassen sich Fehler wirklich eingrenzen.
//
// CONTROLLER TYPE: Graphical 128x64 (DOGM)
//
// IMPORTANT: The U8glib library is required for Graphical Display! --> Das heißt nicht, daß Du den Programmcode ändern sollst, sondern nur, daß die Bibliothek vorhanden sein muß
// [github.com]
//
// NOTE: If the LCD is unresponsive you may need to reverse the plugs.
//
Herzl. Grüße
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 15:29
Hallo AlterBastler,

hat funktioniert, lieben Dank
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
17. February 2022 16:06
Hallo AlterBastler,

das Kompilieren hat funktioniert.

Ich könnte jetzt also die Hex Datei flashen.

Mein Vorhaben ist, das ich die Firmware als Bin Datei habe und die Firmware dann mit einer SD Karte auf das MKS Gen L v1.0 Board flashe.

Auto Marlin Builter hat ja eine Hex Datei generiert, wie bekomme ich eine Bin Datei?
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
18. February 2022 02:33
[docs.platformio.org]
In dem versteckten .pio-Ordner findest Du die *.bin datei.

Herzl. Grüße
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
18. February 2022 04:13
Hallo AlterBastler,
in dem Verzeichnis ist keine Bin Datei.

Kann es sein, daß keine bin Datei generiert wird, weil evtl. Das Board 8Bit ist?
Das Board ist ein MKS Gen L v1. 0
Atmega2560.

Habe gelesen, daß man in der platformio. Ini
ein Script anlegen kann, das dann die Bin Datei generiert.

Wenn ja, wie geht das?
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
18. February 2022 15:45
Du musst die FW per USB über Visual Studio laden
Re: Marlin 2.0.9.2 kompilieren Visual Studio Code
18. February 2022 15:56
Es wir immer eine *.bin-Datei generiert. Default-Ordner ist .pio/build.

Herzl. Grüße
In diesem Forum dürfen leider nur registrierte Teilnehmer schreiben.

Klicke hier, um Dich einzuloggen