开源改变世界!!

[BUG] 编译错误 #299

推推 grbl 2年前 (2023-02-06) 273次浏览
关闭
Burockk 打开了这个问题 2020 年 6 月 27 日 · 1条评论
关闭

[BUG] 编译错误#299

Burockk 打开了这个问题 2020 年 6 月 27 日 · 1条评论

评论

[BUG] 编译错误 #299

描述

用 marlin 编译错误。

重现步骤

我下载了https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/firmware/V2.0/Marlin-2.0.x-SKR-mini-E3-V2.0
然后用visual打开然后将工作室代码编辑为我想要的配置,当我在编译时单击 CTRL+ALT+B 时出现错误。

> Verbose mode can be enabled via `-v, --verbose` option
> CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html
> PLATFORM: ST STM32 6.1.1 > STM32F103RC (48k RAM. 256k Flash)
> HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 512KB Flash
> DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
> PACKAGES:
>  - framework-arduinoststm32-maple 2.10000.200103 (1.0.0)
>  - tool-stm32duino 1.0.2
>  - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
> Converting Marlin.ino
> LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
> LDF Modes: Finder ~ chain, Compatibility ~ soft
> LibraryManager: Installing U8glib-HAL
> Using cache: C:\Users\sumen\.platformio\.cache\a7\b7a9b473d1c239d9843ca943887cd0a7
> Unpacking...
> FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\sumen\\Downloads\\BIGTREETECH-SKR-mini-E3-master\\BIGTREETECH-SKR-mini-E3-master\\firmware\\V2.0\\Marlin-2.0.x-SKR-mini-E3-V2.0\\.pio\\libdeps\\STM32F103RC_btt_512K\\_tmp_installing-tt9wok6w-package\\U8glib-HAL-bugfix\\src\\clib\\HAL_example_files\\HAL_LCD_defines.h':
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168:
>     env.SConscript("$BUILD_SCRIPT")
>   File "C:\Users\sumen\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 597:
>     return _SConscript(self.fs, *files, **subst_kw)
>   File "C:\Users\sumen\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:
>     exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
>   File "C:\Users\sumen\.platformio\platforms\ststm32\builder\main.py", line 98:
>     target_elf = env.BuildProgram()
>   File "C:\Users\sumen\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
>     return self.method(*nargs, **kwargs)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
>     env.ProcessProjectDeps()
>   File "C:\Users\sumen\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
>     return self.method(*nargs, **kwargs)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 131:
>     project_lib_builder = env.ConfigureProjectLibBuilder()
>   File "C:\Users\sumen\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
>     return self.method(*nargs, **kwargs)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1036:
>     project.install_dependencies()
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 868:
>     lm.install(uri)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 281:
>     force=force,
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 702:
>     pkg_dir = self._install_from_url(name, url, requirements, track=True)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 482:
>     self.unpack(dlpath, tmp_dir)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 222:
>     return fu.unpack(dest_dir, with_progress=False)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\unpacker.py", line 149:
>     self._unpacker.extract_item(item, dest_dir)
>   File "C:\Users\sumen\.platformio\penv\lib\site-packages\platformio\unpacker.py", line 39:
>     self._afo.extract(item, dest_dir)
>   File "C:\Users\sumen\.platformio\python37\lib\zipfile.py", line 1602:
>     return self._extract_member(member, path, pwd)
>   File "C:\Users\sumen\.platformio\python37\lib\zipfile.py", line 1673:
>     open(targetpath, "wb") as target:
> ================================================================================================================================================ [FAILED] Took 1.02 seconds ================================================================================================================================================

我已经有 U8glib-HAL,但不知何故看不到它…
Configuration.zip
Configuration.zip

附加信息

  • 包括一个包含您的 ZIP 文件Configuration.h或使用Pastebin并在此问题中粘贴一个链接。
  • 提供清楚说明问题的图片或视频链接。
[BUG] 编译错误 #299 Burockk 更改了标题 [BUG](简短描述) [BUG] 编译错误 2020 年 6 月 27 日
[BUG] 编译错误 #299
作者

解决方案:如果您下载了 zip 文件,将其解压缩并将“Marlin-2.0.x-SKR-mini-E3-V2.0”文件复制到下载中的其他位置。简而言之,问题是文件的长路径。非常愚蠢。…