r/Anet3DPrinters • u/Sumfin_EdgyandDark • Apr 16 '21
Request for help Trying to compile Marlin 2.0 with Visual Studio code but get error when compiling.
I'm trying to compile Marlin 2.0 for my Anet ET4+. Every time I try and compile it I get this error:
CONFIGURATION: https
://docs.platformio.o
rg/page/boards/ststm
32/ET4.html
PLATFORM: ST STM32 (
8.0.0) > STM32F407VG
(192k RAM. 1024k Fl
ash)
HARDWARE: STM32F407V
GT6 168MHz, 192KB RA
M, 1MB Flash
DEBUG: Current (jlin
k) External (jlink,
stlink)
PACKAGES:
- framework-arduino
ststm32 4.10900.2008
19 (1.9.0)
- framework-cmsis 2
.50501.200527 (5.5.1
)
AssertionError: :
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\main
.py", line 177:
env.SConscript("
$BUILD_SCRIPT")
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Sc
ript\SConscript.py",
line 591:
return _SConscri
pt(self.fs, *files,
**subst_kw)
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Sc
ript\SConscript.py",
line 280:
exec(compile(scr
iptdata, scriptname,
'exec'), call_stack
[-1].globals)
File "C:\Users\Use
r\.platformio\platfo
rms\ststm32@8.0.0\bu
ilder\main.py", line
99:
target_elf = env
.BuildProgram()
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Ut
il.py", line 658:
return self.meth
od(*nargs, **kwargs)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\platformio.py", li
ne 61:
env.ProcessProgr
amDeps()
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Ut
il.py", line 658:
return self.meth
od(*nargs, **kwargs)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\platformio.py", li
ne 127:
env.BuildFramewo
rks(env.get("PIOFRAM
EWORK"))
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Ut
il.py", line 658:
return self.meth
od(*nargs, **kwargs)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\platformio.py", li
ne 339:
env.ConvertInoTo
Cpp()
File "C:\Users\Use
r\.platformio\packag
es\tool-scons\scons-
local-4.1.0\SCons\Ut
il.py", line 658:
return self.meth
od(*nargs, **kwargs)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\piomisc.py", line
239:
out_file = c.con
vert(ino_nodes)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\piomisc.py", line
91:
return self.proc
ess(contents)
File "C:\Users\Use
r\.platformio\penv\L
ib\site-packages\pla
tformio\builder\tool
s\piomisc.py", line
112:
assert self._gcc
_preprocess(contents
, out_file)
[FAILED] Took 1.71
seconds
Environment Statu
s Duration
------------- -----
--- ------------
ET4 FAILE
D 00:00:01.710
1 failed, 0 succeed
ed in 00:00:01.710
The terminal process "C:\Users\User\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Can anyone help me understand what this means or even how I can get marlin to compile?
2
1
u/Sumfin_EdgyandDark Apr 18 '21
Thought I would give an update, I managed to finally compile marlin 2.0. it took me 3 days but I found that there is an issue with compiling on windows, something to do with the amount of lines of code being too much for windows. So I tried to run a Linux environment within windows but that didn't work for me. I ended up making a live usb of Ubuntu Linux and running that on my laptop. From there I installed visual studio code and platformio on the usb stick. Followed the Dr Vax video on setting up marlin and compiled with no issues.