Marlin 2.0 compile error January 29, 2020 12:08AM |
Registered: 4 years ago Posts: 77 |
Quote
Arduino: 1.8.10 (Windows 10), Board: "RAMBo"
In file included from sketch\src\lcd/ultralcd.h:40:0,
from sketch\src\Marlin.cpp:34:
c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h: In function 'bool IsRunning()':
c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h:74:13: error: redefinition of 'bool IsRunning()'
inline bool IsRunning() { return Running; }
^~~~~~~~~
In file included from sketch\src\Marlin.cpp:31:0:
sketch\src\Marlin.h:331:13: note: 'bool IsRunning()' previously defined here
inline bool IsRunning() { return Running; }
^~~~~~~~~
In file included from sketch\src\lcd/ultralcd.h:40:0,
from sketch\src\Marlin.cpp:34:
c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h: In function 'bool IsStopped()':
c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h:75:13: error: redefinition of 'bool IsStopped()'
inline bool IsStopped() { return !Running; }
^~~~~~~~~
In file included from sketch\src\Marlin.cpp:31:0:
sketch\src\Marlin.h:332:13: note: 'bool IsStopped()' previously defined here
inline bool IsStopped() { return !Running; }
^~~~~~~~~
Multiple libraries were found for "U8glib.h"
Used: C:\Users\jeffd\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib
Not used: C:\Arduino\libraries\U8glib_Arduino-1.19.1
Multiple libraries were found for "SPI.h"
Used: C:\Program
exit status 1
Error compiling for board RAMBo.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: Marlin 2.0 compile error January 29, 2020 03:34AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Marlin 2.0 compile error January 29, 2020 04:34AM |
Registered: 4 years ago Posts: 4 |
Re: Marlin 2.0 compile error January 29, 2020 07:18AM |
Registered: 4 years ago Posts: 77 |
Quote
Dust
Yea someone broke Marlin quite badly recently...
You can't have \src\Marlin.h and \src\MarlinCore.h delete \src\Marlin.h
Also you can't have \src\Marlin.cpp and \src\MarlinCore.cpp delete \src\Marlin.cpp
Re: Marlin 2.0 compile error January 29, 2020 07:47AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Marlin 2.0 compile error January 29, 2020 08:17AM |
Registered: 4 years ago Posts: 77 |
Re: Marlin 2.0 compile error January 29, 2020 07:24PM |
Registered: 4 years ago Posts: 77 |
Re: Marlin 2.0 compile error January 29, 2020 08:23PM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Marlin 2.0 compile error January 29, 2020 10:32PM |
Registered: 4 years ago Posts: 77 |
Re: Marlin 2.0 compile error January 30, 2020 09:47PM |
Registered: 4 years ago Posts: 77 |
Re: Marlin 2.0 compile error January 31, 2020 01:08PM |
Registered: 6 years ago Posts: 265 |
Re: Marlin 2.0 compile error January 31, 2020 01:28PM |
Registered: 4 years ago Posts: 77 |
Quote
MMcLure
Another thing that can help is to switch to VSCode+PlatformIO instead of Arduino. PlatformIO will compile the libraries into archive files (.a) instead of trying to link all of the constituent files on one long command line, and also handles dependencies (such as ensuring that the right library version is used) much better that Arduino.