Pages: [1]   Go Down
Author Topic: Compiling a Sketch by Console  (Read 757 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey @ll smiley

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)

Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: