Contact me: hankecnc@gmail.com

使用 ENABLE_AUTO_BED_LEVELING 在 Linux 上编译失败 #712

推推 grbl 3年前 (2023-02-06) 273次浏览
关闭
tommil 打开了这个问题 2014 年 1 月 13 日 · 3条评论
关闭

使用 ENABLE_AUTO_BED_LEVELING 在 Linux 上编译失败#712

tommil 打开了这个问题 2014 年 1 月 13 日 · 3条评论

评论

使用 ENABLE_AUTO_BED_LEVELING 在 Linux 上编译失败 #712
贡献者

当我尝试在 Raspberry 上(使用 Arduino 1.0.5)编译 Marlin 时,出现此错误:

CC    /usr/share/arduino/hardware/arduino/cores/arduino/wiring.c
CC    /usr/share/arduino/hardware/arduino/cores/arduino/wiring_analog.c
CC    /usr/share/arduino/hardware/arduino/cores/arduino/wiring_digital.c
CC    /usr/share/arduino/hardware/arduino/cores/arduino/wiring_pulse.c
CC    /usr/share/arduino/hardware/arduino/cores/arduino/wiring_shift.c
CC    /usr/share/arduino/hardware/arduino/cores/arduino/WInterrupts.c
CXX   /usr/share/arduino/hardware/arduino/cores/arduino/WMath.cpp
CXX   /usr/share/arduino/hardware/arduino/cores/arduino/WString.cpp
CXX   /usr/share/arduino/hardware/arduino/cores/arduino/Print.cpp
CXX   Marlin_main.cpp
CXX   MarlinSerial.cpp
CXX   Sd2Card.cpp
CXX   SdBaseFile.cpp
CXX   SdFatUtil.cpp
CXX   SdFile.cpp
CXX   SdVolume.cpp
CXX   motion_control.cpp
CXX   planner.cpp
CXX   stepper.cpp
CXX   temperature.cpp
CXX   cardreader.cpp
CXX   ConfigurationStore.cpp
CXX   watchdog.cpp
CXX   /usr/share/arduino/libraries/SPI/SPI.cpp
CXX   Servo.cpp
CXX   /usr/share/arduino/hardware/arduino/cores/arduino/Tone.cpp
CXX   ultralcd.cpp
CXX   /usr/share/arduino/libraries/LiquidCrystal/LiquidCrystal.cpp
CXX   /usr/share/arduino/hardware/arduino/cores/arduino/main.cpp
CXX   applet/Marlin.elf
applet/Marlin_main.o: In function `run_z_probe()':
Marlin_main.cpp:(.text._ZL11run_z_probev+0x30): undefined reference to `matrix_3x3::set_to_identity()'
applet/Marlin_main.o: In function `process_commands()':
Marlin_main.cpp:(.text._Z16process_commandsv+0x172): undefined reference to `matrix_3x3::set_to_identity()'
Marlin_main.cpp:(.text._Z16process_commandsv+0x770): undefined reference to `matrix_3x3::set_to_identity()'
Marlin_main.cpp:(.text._Z16process_commandsv+0xc32): undefined reference to `qr_solve(int, int, double*, double*)'
Marlin_main.cpp:(.text._Z16process_commandsv+0xd02): undefined reference to `vector_3::vector_3(float, float, float)'
Marlin_main.cpp:(.text._Z16process_commandsv+0xd10): undefined reference to `vector_3::debug(char*)'
Marlin_main.cpp:(.text._Z16process_commandsv+0xd62): undefined reference to `matrix_3x3::create_look_at(vector_3)'
Marlin_main.cpp:(.text._Z16process_commandsv+0xecc): undefined reference to `apply_rotation_xyz(matrix_3x3, float&, float&, float&)'
applet/planner.o: In function `plan_buffer_line(float, float, float, float const&, float, unsigned char const&)':
planner.cpp:(.text._Z16plan_buffer_linefffRKffRKh+0xca): undefined reference to `apply_rotation_xyz(matrix_3x3, float&, float&, float&)'
applet/planner.o: In function `plan_get_position()':
planner.cpp:(.text._Z17plan_get_positionv+0x52): undefined reference to `vector_3::vector_3(float, float, float)'
planner.cpp:(.text._Z17plan_get_positionv+0x7e): undefined reference to `matrix_3x3::transpose(matrix_3x3)'
planner.cpp:(.text._Z17plan_get_positionv+0xb4): undefined reference to `vector_3::apply_rotation(matrix_3x3)'
applet/planner.o: In function `plan_set_position(float, float, float, float const&)':
planner.cpp:(.text._Z17plan_set_positionfffRKf+0x74): undefined reference to `apply_rotation_xyz(matrix_3x3, float&, float&, float&)'
collect2: error: ld returned 1 exit status
make: *** [applet/Marlin.elf] Error 1

在 Windows 中,相同的代码和配置文件编译没有任何问题。此外,如果我禁用 ENABLE_AUTO_BED_LEVELING 代码在 linux 中编译。

使用 ENABLE_AUTO_BED_LEVELING 在 Linux 上编译失败 #712
贡献者

听起来像是 Arduino IDE 版本的不同。我现在在使用旧版本时遇到一些问题。您使用的是什么版本?你能试试最新的吗?另外,现在再试一次,上个月在床铺调平方面发生了许多变化。

使用 ENABLE_AUTO_BED_LEVELING 在 Linux 上编译失败 #712
贡献者

告诉我你的 Makefile?