Go Down

Topic: Compiling a Sketch by Console (Read 858 times) previous topic - next topic

critak

Hey @ll :)

I would like to generate sketch code with java and than run the arduino compiler by console.

Till now i found that i have to use ./avr-gcc or ./avr-g++ ( located in /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/ )

First i have to generate a <file>.o - but i don't know how.

Would be great if someone could explain how the compiling by console works.

(i don't want to use any kind of script if possible)


dxw00d

Enable verbose compilation in the IDE. It will show you everything it does when compiling a sketch.

Louis Davis

You might find this article helpful:
http://pragprog.com/magazines/2011-04/advanced-arduino-hacking

It describes how to create a makefile to simplify compiling Arduino projects from the command line.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy