Welcome! Log In Create A New Profile

Advanced

Can't compile GCode Interpreter

Posted by J.Armstrong 
Can't compile GCode Interpreter
January 08, 2011 08:37PM
Hello all,

I am having some problems compiling the FiveD_GCode_Interpreter in the arduino environement (0022).

I have installed the arduino software along with the Sanguino files as described on their website. And when i try and verify/compile the code i get the following error messages:

FiveD_GCode_Interpreter.cpp:32:28: error: HardwareSerial.h: No such file or directory
FiveD_GCode_Interpreter.cpp:34:22: error: WProgram.h: No such file or directory
In file included from FiveD_GCode_Interpreter.cpp:35:
vectors.h: In function 'FloatPoint fabsv(const FloatPoint&winking smiley':
vectors.h:59: error: 'fabs' was not declared in this scope
vectors.h: In function 'LongPoint absv(const LongPoint&winking smiley':
vectors.h:104: error: 'abs' was not declared in this scope
In file included from FiveD_GCode_Interpreter.cpp:37:
intercom.h: At global scope:
intercom.h:108: error: 'byte' does not name a type
intercom.h:110: error: 'byte' does not name a type
In file included from FiveD_GCode_Interpreter.cpp:39:
extruder.h:12: error: variable or field 'newExtruder' declared void
extruder.h:12: error: 'byte' was not declared in this scope
extruder.h:151: error: 'byte' has not been declared
extruder.h: In constructor 'extruder::extruder(char)':
extruder.h:182: error: 'OUTPUT' was not declared in this scope
extruder.h:182: error: 'pinMode' was not declared in this scope
extruder.h:184: error: 'digitalWrite' was not declared in this scope
extruder.h: In member function 'void extruder::buildNumberCommand(char, int)':
extruder.h:206: error: 'itoa' was not declared in this scope
extruder.h: In member function 'void extruder::valveSet(bool, int)':
extruder.h:220: error: 'delay' was not declared in this scope
extruder.h: At global scope:
extruder.h:223: error: variable or field 'setCooler' declared void
extruder.h:223: error: 'byte' was not declared in this scope
extruder.h: In member function 'int extruder::getTemperature()':
extruder.h:240: error: 'atoi' was not declared in this scope
extruder.h: In member function 'void extruder::setDirection(bool)':
extruder.h:256: error: 'digitalWrite' was not declared in this scope
extruder.h:258: error: 'digitalWrite' was not declared in this scope
extruder.h: In member function 'void extruder::sStep()':
extruder.h:268: error: 'digitalWrite' was not declared in this scope
extruder.h:270: error: 'digitalWrite' was not declared in this scope
extruder.h: In member function 'int extruder::potVoltage()':
extruder.h:293: error: 'atoi' was not declared in this scope
extruder.h: At global scope:
extruder.h:317: error: 'byte' does not name a type
In file included from FiveD_GCode_Interpreter.cpp:40:
cartesian_dda.h:67: error: 'byte' has not been declared
cartesian_dda.h: In member function 'void cartesian_dda::do_x_step()':
cartesian_dda.h:131: error: 'HIGH' was not declared in this scope
cartesian_dda.h:131: error: 'digitalWrite' was not declared in this scope
cartesian_dda.h:133: error: 'LOW' was not declared in this scope
cartesian_dda.h: In member function 'void cartesian_dda::do_y_step()':
cartesian_dda.h:138: error: 'HIGH' was not declared in this scope
cartesian_dda.h:138: error: 'digitalWrite' was not declared in this scope
cartesian_dda.h:140: error: 'LOW' was not declared in this scope
cartesian_dda.h: In member function 'void cartesian_dda::do_z_step()':
cartesian_dda.h:145: error: 'HIGH' was not declared in this scope
cartesian_dda.h:145: error: 'digitalWrite' was not declared in this scope
cartesian_dda.h:147: error: 'LOW' was not declared in this scope
cartesian_dda.h: In member function 'void cartesian_dda::do_e_step()':
cartesian_dda.h:152: error: 'extruder_in_use' was not declared in this scope
cartesian_dda.h: At global scope:
cartesian_dda.h:166: error: 'cartesian_dda::read_switch' declared as an 'inline' variable
cartesian_dda.h:166: error: 'bool cartesian_dda::read_switch' is not a static member of 'class cartesian_dda'
cartesian_dda.h:166: error: 'byte' was not declared in this scope
cartesian_dda.h:167: error: expected ',' or ';' before '{' token
FiveD_GCode_Interpreter:24: error: variable or field 'setTimerResolution' declared void
FiveD_GCode_Interpreter:24: error: 'byte' was not declared in this scope
FiveD_GCode_Interpreter:26: error: 'byte' does not name a type
FiveD_GCode_Interpreter:30: error: variable or field 'newExtruder' declared void
FiveD_GCode_Interpreter:30: error: 'byte' was not declared in this scope
FiveD_GCode_Interpreter:44: error: 'byte' does not name a type
FiveD_GCode_Interpreter:88: error: 'byte' does not name a type
FiveD_GCode_Interpreter:89: error: 'byte' does not name a type
FiveD_GCode_Interpreter:92: error: 'word' does not name a type
FiveD_GCode_Interpreter:101: error: expected constructor, destructor, or type conversion before '(' token



I am assuming all the following error messages are due to the two "missing" .h files.

I use quotation marks because both files are in the ./arduino-0022/hardware/cores/arduino/ directory (and the Sanguino directory).

Any advice would be apreciated.

Cheers,
J. A.
Re: Can't compile GCode Interpreter
January 09, 2011 11:09AM
Hi

Try download and use Arduino version 21. Had smilair problems compiling the extruder firmware on version 22.

/Dary
Re: Can't compile GCode Interpreter
January 09, 2011 12:33PM
Probably a stab in the dark, but have you set the board to Sanguino in the Arduino IDE?
Re: Can't compile GCode Interpreter
January 09, 2011 05:00PM
Tried Three different versions of the arduino softawere...They all get the same error.
And yes, I did set the board to sanguino.
Re: Can't compile GCode Interpreter
January 10, 2011 12:51AM
I would actually check to see if you have HardwareSerial.h on your system as that is a core part of the arduino environment. It looks like it is a corrupted environment.

David
zws
Re: Can't compile GCode Interpreter
November 04, 2011 04:41PM
It is a corrupted environment indeed! A fresh Arduino reinstall solved similar problem
Sorry, only registered users may post in this forum.

Click here to login