[STAMPANTE 3D] Problema compilazione Marlin

Ciao a tutti,
piano piano comincio ad ultimare la mia stampante 3d, ma ho problemi nel compilare il gcode interpreter da inserire nella megatronics V2 (si può considerare un arduino mega 2560), lo compilo sia con l’ IDE 0022, 1.0.2, 1.0.4 ma restituisce questo dipo di errori:
ERRORI CON IDE 1.0.4 :

ultralcd:8: error: conflicting declaration 'volatile int feedmultiply'
ultralcd:7: error: 'feedmultiply' has a previous declaration as 'int feedmultiply'
ultralcd:11: error: conflicting declaration 'volatile int extrudemultiply'
Marlin.h:182: error: 'extrudemultiply' has a previous declaration as 'int extrudemultiply'
ultralcd:14: error: 'CardReader' does not name a type
ultralcd:19: error: conflicting declaration 'volatile char buttons'
ultralcd.h:22: error: 'buttons' has a previous declaration as 'volatile uint8_t buttons'
ultralcd:44: error: 'MainMenu' does not name a type
sketch_mar14a.cpp: In function 'void lcd_init()':
ultralcd:126: error: 'WELCOME_MSG' was not declared in this scope
sketch_mar14a.cpp: In function 'void lcd_status()':
ultralcd:194: error: 'menu' was not declared in this scope
sketch_mar14a.cpp: At global scope:
ultralcd:295: error: 'MainMenu' has not been declared
ultralcd:295: error: ISO C++ forbids declaration of 'MainMenu' with no type
sketch_mar14a.cpp: In function 'int MainMenu()':
ultralcd:297: error: 'status' was not declared in this scope
ultralcd:297: error: 'Main_Status' was not declared in this scope
ultralcd:298: error: 'displayStartingRow' was not declared in this scope
ultralcd:299: error: 'activeline' was not declared in this scope
ultralcd:300: error: 'force_lcd_update' was not declared in this scope
ultralcd:305: error: 'linechanging' was not declared in this scope
ultralcd:306: error: 'tune' was not declared in this scope
sketch_mar14a.cpp: At global scope:
ultralcd:309: error: 'MainMenu' is not a class or namespace
sketch_mar14a.cpp: In function 'void showStatus()':
ultralcd:315: error: 'force_lcd_update' was not declared in this scope
ultralcd:320: error: 'MYPGM' was not declared in this scope
ultralcd:326: error: 'degHotend0' was not declared in this scope
ultralcd:327: error: 'force_lcd_update' was not declared in this scope
ultralcd:333: error: 'degTargetHotend0' was not declared in this scope
ultralcd:334: error: 'force_lcd_update' was not declared in this scope
ultralcd:367: error: 'MYPGM' was not declared in this scope
ultralcd:373: error: 'force_lcd_update' was not declared in this scope
ultralcd:376: error: 'MYPGM' was not declared in this scope
ultralcd:381: error: 'force_lcd_update' was not declared in this scope
ultralcd:391: error: 'force_lcd_update' was not declared in this scope
ultralcd:395: error: 'MYPGM' was not declared in this scope
ultralcd:409: error: 'card' was not declared in this scope

--- ECCEDENDO IL LIMITE MASSIMO DI CARATTERI NON HO MESSO L'ERRORE COMPLETO---

Qui scaricate il firmware: http://reprapworld.com/mt/Marlin.zip
Se non vi dispiace, potreste provare a compilarlo voi? (preciso che ho incluso tutti i pde in un’ unica schermata dell’ IDE)
Ciao
Cesare

È usare la grbl? Non sono un amante di queste board…

SUBSEA:
È usare la grbl? Non sono un amante di queste board...

Fuori discussione... la Megatronics ha il Marlin e supporta l'LCD, la keypad, la stampa da SD e altre chicche..

ultralcd:8: error: conflicting declaration 'volatile int feedmultiply'
ultralcd:7: error: 'feedmultiply' has a previous declaration as 'int feedmultiply'

Significa che hai incluso 2 volte la stessa libreria / file oppure definisci quelle variabili due volte in file diversi.
Per la precisione viene dichiarato in
Marlin.h : extern int feedmultiply;
e in
Marlin_main.ccp int feedmultiply=100; //100->1 200->2

Hai uniti dei file che non erano da compilare insieme?

Ciao Uwe

uwefed:

ultralcd:8: error: conflicting declaration 'volatile int feedmultiply'
ultralcd:7: error: 'feedmultiply' has a previous declaration as 'int feedmultiply'

Significa che hai incluso 2 volte la stessa libreria / file oppure definisci quelle variabili due volte in file diversi.
Per la precisione viene dichiarato in
Marlin.h : extern int feedmultiply;
e in
Marlin_main.ccp int feedmultiply=100; //100->1 200->2

Hai uniti dei file che non erano da compilare insieme?

Ciao Uwe

No, ho unito i file giusti, almeno credo.
Non riesco a capire il problema...