amperka / ino

Command line toolkit for working with Arduino hardware
http://inotool.org
MIT License
1.08k stars 233 forks source link

Building 3d printer firmware. #104

Open daftscience opened 10 years ago

daftscience commented 10 years ago

I am really really new to this so sorry if I'm missing something obvious. I'm trying to build and upload my 3d printer firmware from the commandline. This issue might be related to some of the other issues here, but I'm not too sure if they apply.

*side note: I have successfully compiled the blink example.

This is the source: https://github.com/repetier/Repetier-Firmware

I've done:

mkdir Repetier
cd Repetier
ino init

I then copied all of the firmware files into my new directory. created ino.ini with defaults Finally:

ino build
.build/mega2560/src/Repetier.cpp:11:22: error: ‘GCode’ was not declared in this scope
.build/mega2560/src/Repetier.cpp:11:29: error: ‘com’ was not declared in this scope
In file included from src/Repetier.pde:111:0:
src/Reptier.h:583:39: error: ‘byte get_coordinates(GCode*)’ redeclared as different kind of symbol
.build/mega2560/src/Repetier.cpp:11:6: error: previous declaration of ‘byte get_coordinates’
src/Repetier.pde: In function ‘byte get_coordinates(GCode*)’:
src/Repetier.pde:859:32: error: ‘byte get_coordinates(GCode*)’ redeclared as different kind of symbol
.build/mega2560/src/Repetier.cpp:11:6: error: previous declaration of ‘byte get_coordinates’
make: *** [.build/mega2560/src/Repetier.o] Error 1

That's my output. I'm not quite sure why that's not working. I've tried moving the gcode.h and gcode.cpp files into the ~/repetier/lib folder and ~/repetier/lib/gcode folder but honestly, I'm just trying random things...

Any help would be appreciated.

allgood38 commented 10 years ago

When you include the file, are you using the #include <Repetier.h> or #include "Repetier.h" syntax?

Also, in the gcode.h file, its trying to include the Arduino.h file using quotes rather than <>, which doesn't seem to work with ino.

daftscience commented 10 years ago

Thanks. I've actually switched to the development branch of repetier and its doing a much better job compiling. I was still having a few dependency issues but will look into the quotes thing.