3D打印机Marlin的烧入方法-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3344|回复: 2

[未解决] 3D打印机Marlin的烧入方法

[复制链接]
发表于 2019-3-14 10:25 | 显示全部楼层 |阅读模式
如题,我网上下载了别人的Marlin压缩文件夹解压烧入arduino
可是到处提示出问题,缺少有效库文件之类的。
还有一些就是直接卡在某一段,完全不知道从何处修复....


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


求大佬指点,以下是一些出错的信息复制:






Arduino:1.8.7 (Windows 10), 开发板:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"


In file included from sketch\SdFile.h:27:0,


                 from sketch\cardreader.h:6,


                 from sketch\Marlin_main.cpp:37:


SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'


struct fpos_t {


        ^


In file included from sketch\Marlin.h:10:0,


                 from sketch\Marlin_main.cpp:30:


d:\电控\arduino\官网下的程序\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here


__extension__ typedef long long fpos_t;


                                 ^


In file included from sketch\SdFile.h:27:0,


                 from sketch\cardreader.h:6,


                 from sketch\cardreader.cpp:2:


SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'


struct fpos_t {


        ^


In file included from sketch\Marlin.h:10:0,


                 from sketch\cardreader.cpp:1:


d:\电控\arduino\官网下的程序\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here


__extension__ typedef long long fpos_t;


                                 ^


exit status 1
In file included from sketch\SdBaseFile.cpp:24:0:


SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'


struct fpos_t {


        ^


In file included from sketch\Marlin.h:10:0,


                 from sketch\SdBaseFile.cpp:21:


d:\电控\arduino\官网下的程序\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here


__extension__ typedef long long fpos_t;


                                 ^


sketch\SdBaseFile.cpp: In member function 'void SdBaseFile::getpos(fpos_t*)':


SdBaseFile.cpp:298:8: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'


   pos->position = curPosition_;


        ^


SdBaseFile.cpp:299:8: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'


   pos->cluster = curCluster_;


        ^


sketch\SdBaseFile.cpp: In member function 'void SdBaseFile::setpos(fpos_t*)':


SdBaseFile.cpp:1496:23: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'


   curPosition_ = pos->position;


                       ^


SdBaseFile.cpp:1497:22: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'


   curCluster_ = pos->cluster;


                      ^


using typedef-name 'fpos_t' after 'struct'


找到无效库在 D:\电控\arduino\官网下的程序\Arduino\libraries\Marlin-add_chinese_font: no headers files (.h) found in D:\电控\arduino\官网下的程序\Arduino\libraries\Marlin-add_chinese_font


在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


微信图片_20190314102109.png
发表于 2019-3-26 19:03 来自手机 | 显示全部楼层
是不是把网址链接也下载了
发表于 2022-6-14 15:01 | 显示全部楼层
估计是路径里有中文...好多段都有提示
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-1 01:06 , Processed in 0.079612 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表