Novice question - Compiling Marlin Firmware

I am attempting to compile Marlin firmware for my Creality CR-10 V2 so that I can use an E3D Hemera hotend/extruder with it. I edited the *.h files as shown in a Youtube video, using VS Code with PlatformIO. The video is titled "How to install a E3D Hemera on a Creality CR-10 v2" by 3D Printing Canada. Anyway.. When I click the "build" button, I get this error:


"c:\users\drago\onedrive\desktop\marlin-2.0.x\marlin\src\inc\MarlinConfigPre.h:39:10: fatal error: ../../Configuration.h: No such file or directory"  

That's one of the files that I had to edit, so I know it's there. I'm at a loss. Nothing I have tried has led to any different results. Anybody know what I'm doing wrong here? I have zero experience with this software. I just need to upgrade my printer. :-/

Full text of error:


" > Executing task: C:\Users\drago\.platformio\penv\Scripts\platformio.exe run <

Processing mega2560 (board: megaatmega2560; platform: atmelavr@~3.4; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
In file included from c:\users\drago\onedrive\desktop\marlin-2.0.x\marlin\src\inc\marlinconfig.h:28:0,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
c:\users\drago\onedrive\desktop\marlin-2.0.x\marlin\src\inc\MarlinConfigPre.h:39:10: fatal error: ../../Configuration.h: No such file or directory
 #include "../../Configuration.h"
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CalledProcessError: Command '"C:\Users\drago\.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\drago\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\drago\.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\drago\.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\drago\OneDrive\Desktop\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 247:
    apply_features_config()
  File "C:\Users\drago\OneDrive\Desktop\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 133:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\drago\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "C:\Users\drago\OneDrive\Desktop\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 216:
    load_marlin_features()
  File "C:\Users\drago\OneDrive\Desktop\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 204:
    define_list = run_preprocessor(env)
  File "C:\Users\drago\OneDrive\Desktop\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\preprocessor.py", line 42:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\drago\.platformio\python3\lib\subprocess.py", line 424:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\drago\.platformio\python3\lib\subprocess.py", line 528:
    raise CalledProcessError(retcode, process.args,
==================================================================== [FAILED] Took 0.65 seconds ====================================================================

Environment    Status    Duration
-------------  --------  ------------
mega2560       FAILED    00:00:00.652
=============================================================== 1 failed, 0 succeeded in 00:00:00.652 ===============================================================The terminal process "C:\Users\drago\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it."

I´ve had this happening when compiling from OneDrive. All you need to do is to copy the original files to a non OneDrive folder and do your editing and compiling from there.
It could also be that you placed the file in the wrong directory. It needs to go into Marlin-(Version_number)/Marlin.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.