Welcome! Log In Create A New Profile

Advanced

Marlin Compile Issues

Posted by acedizzle 
Marlin Compile Issues
March 29, 2014 12:14PM
I have searched the forums for similar issues, but I could not find anything that led me down the correct path. I have tried (3X) different versions of Marlin in my effort to get any of them to compile. I am using Arduino 1.0.5 and have used a version of Marlin supplied by DIY Tech Shop, Marlin from ErikZalm on github, and Marlin from a link on the beginner's guide. I have also downloaded Sprinter and tried to use that but it also seems has problems while compiling. I have been banging my head against a wall for a couple days now, and any help would be greatly appreciated.

The version from the beginner's guide has the shortest error message:

Quote


/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/mega -I/Applications/Arduino.app/Contents/Resources/Java/libraries/EEPROM -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Marlin -I/Users/jared/Documents/Arduino/libraries/Sprinter -I/Applications/Arduino.app/Contents/Resources/Java/libraries/LiquidCrystal /var/folders/lq/_j1q8dsj1m51fxmcnryc8xqc0000gn/T/build1804119700041166790.tmp/Marlin.cpp -o /var/folders/lq/_j1q8dsj1m51fxmcnryc8xqc0000gn/T/build1804119700041166790.tmp/Marlin.cpp.o
In file included from EEPROMwrite.h:4,
from Marlin.pde:30:
Marlin.h:8:22: warning: WProgram.h: No such file or directory
In file included from Marlin.pde:33:
pins.h:210:1: warning: "MOTHERBOARD" redefined
In file included from Marlin.h:11,
from EEPROMwrite.h:4,
from Marlin.pde:30:
Configuration.h:35:1: warning: this is the location of the previous definition
ultralcd.pde:646:1: warning: multi-line comment
In file included from Configuration.h:373,
from Marlin.h:11,
from EEPROMwrite.h:4,
from Marlin.pde:30:
thermistortables.h:11: warning: only initialized variables can be placed into program memory area
In file included from Marlin.h:12,
from EEPROMwrite.h:4,
from Marlin.pde:30:
MarlinSerial.h: In member function 'void MarlinSerial::print(const String&)':
MarlinSerial.h:123: warning: comparison between signed and unsigned integer expressions
In file included from EEPROMwrite.h:4,
from Marlin.pde:30:
Marlin.h: At global scope:
Marlin.h:30: warning: only initialized variables can be placed into program memory area
Marlin.h:31: warning: only initialized variables can be placed into program memory area
Marlin.h:63: error: variable or field 'manage_inactivity' declared void
Marlin.h:63: error: 'byte' was not declared in this scope
In file included from EEPROMwrite.h:6,
from Marlin.pde:30:
temperature.h: In function 'float setTargetHotend(const float&, uint8_t)':
temperature.h:92: warning: no return statement in function returning non-void
In file included from Marlin.pde:30:
EEPROMwrite.h: In function 'int EEPROM_writeAnything(int&, const T&)':
EEPROMwrite.h:12: error: expected initializer before '*' token
EEPROMwrite.h:15: error: 'p' was not declared in this scope
EEPROMwrite.h: In function 'int EEPROM_readAnything(int&, T&)':
EEPROMwrite.h:21: error: 'byte' was not declared in this scope
EEPROMwrite.h:21: error: 'p' was not declared in this scope
EEPROMwrite.h:21: error: expected primary-expression before ')' token
EEPROMwrite.h:21: error: expected primary-expression before 'void'
EEPROMwrite.h: In function 'void StoreSettings()':
EEPROMwrite.h:71: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h: In function 'void RetrieveSettings(bool)':
EEPROMwrite.h:103: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:129: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:131: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:132: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:133: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:134: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:138: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:140: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:141: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:142: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:143: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:146: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:148: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:149: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:150: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:151: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:154: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:156: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:157: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:160: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:162: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:163: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:164: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:165: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:166: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:170: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:172: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:173: warning: only initialized variables can be placed into program memory area
EEPROMwrite.h:174: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void enquecommand(const char*)':
Marlin.pde:216: warning: only initialized variables can be placed into program memory area
Marlin.pde:218: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void setup()':
Marlin.pde:228: warning: only initialized variables can be placed into program memory area
Marlin.pde:229: warning: only initialized variables can be placed into program memory area
Marlin.pde:231: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void get_command()':
Marlin.pde:309: warning: only initialized variables can be placed into program memory area
Marlin.pde:326: warning: only initialized variables can be placed into program memory area
Marlin.pde:337: warning: only initialized variables can be placed into program memory area
Marlin.pde:352: warning: only initialized variables can be placed into program memory area
Marlin.pde:369: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void process_commands()':
Marlin.pde:728: warning: only initialized variables can be placed into program memory area
Marlin.pde:731: warning: only initialized variables can be placed into program memory area
Marlin.pde:739: warning: only initialized variables can be placed into program memory area
Marlin.pde:791: warning: only initialized variables can be placed into program memory area
Marlin.pde:822: warning: only initialized variables can be placed into program memory area
Marlin.pde:824: warning: only initialized variables can be placed into program memory area
Marlin.pde:826: warning: only initialized variables can be placed into program memory area
Marlin.pde:902: warning: only initialized variables can be placed into program memory area
Marlin.pde:908: warning: only initialized variables can be placed into program memory area
Marlin.pde:910: warning: only initialized variables can be placed into program memory area
Marlin.pde:912: warning: only initialized variables can be placed into program memory area
Marlin.pde:914: warning: only initialized variables can be placed into program memory area
Marlin.pde:917: warning: only initialized variables can be placed into program memory area
Marlin.pde:919: warning: only initialized variables can be placed into program memory area
Marlin.pde:921: warning: only initialized variables can be placed into program memory area
Marlin.pde:928: warning: only initialized variables can be placed into program memory area
Marlin.pde:936: warning: only initialized variables can be placed into program memory area
Marlin.pde:944: warning: only initialized variables can be placed into program memory area
Marlin.pde:1065: warning: only initialized variables can be placed into program memory area
Marlin.pde:1067: warning: only initialized variables can be placed into program memory area
Marlin.pde:488: warning: unused variable 'starpos'
Marlin.pde: In function 'void FlushSerialRequestResend()':
Marlin.pde:1077: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void ClearToSend()':
Marlin.pde:1089: warning: only initialized variables can be placed into program memory area
Marlin.pde: In function 'void kill()':
Marlin.pde:1172: warning: only initialized variables can be placed into program memory area
Marlin.pde: At global scope:
Marlin.pde:151: warning: 'relative_mode_e' defined but not used
Marlin.pde:162: warning: 'i' defined but not used
Marlin.pde:170: warning: 'tt' defined but not used
Marlin.pde:170: warning: 'bt' defined but not used
Re: Marlin Compile Issues
March 30, 2014 04:23PM
Did you copy the files from the ArduinoAddons directory, and selected the correct motherboard in the Arduino drop down menu?
Re: Marlin Compile Issues
March 30, 2014 05:30PM
I have the Arduino Mega 2560 selected.

Where should I locate the ArduinoAddons directory? I have it in my Libraries folder.
Re: Marlin Compile Issues
April 02, 2014 03:58AM
It's in the Marlin zip file under ArduinoAddons, the directory structure matches that of the Arduino installation.

When you have copied the files, you should be able to select your motherboard, guessing rambo.. or?
Re: Marlin Compile Issues
April 05, 2014 12:31PM
I am getting frustrated with my inability to figure this out and am hoping someone will be able to spot what I am doing wrong if I detail exactly what I was did when I was trying different ways to make it work.

I uninstalled the Arduino IDE, and then reinstalled it to start fresh after trying this all once before. I cleared everything and downloaded Marlin again and put the Marlin folder and the ArduinoAddons folder in the Libraries folder. I changed the calibration page to RAMPS 1.4 and to a 100K thermistor and then selected Arduino Mega 2560 and tried to compile. This gave me an error message

I then tried other ways I have previously tried before this reset. I pulled the folders out of the Arduino_1.x.x/libraries/ and copied those into my libraries folder. I closed down the IDE, reopened it and tried again. I got another error message.

I then tried by opening the Arduino IDE Java folders and replaced or added the ArduinoAddons/libraries/SPI, LiquidCrystal, U8glib subfolders in there and closed down the IDE, reopened and attempted again. I got another error message.

I am not sure if any of these ways are correct, but I attached the different error messages I received for different attempts. I hope I am way off base and this can be easily solved.
Attachments:
open | download - ErrorMessage1.rtf (48.9 KB)
open | download - ErrorMessage2.rtf (48.9 KB)
open | download - ErrorMessage3.rtf (48.9 KB)
Re: Marlin Compile Issues
April 05, 2014 12:58PM
Oh my... I realize now that the Marlin folder should not be in the libraries folder.

I apologize for wasting everyones time!
Sorry, only registered users may post in this forum.

Click here to login