thanks for using and testing the arduino-mk package.

What you're seeing isn't a bug. According to the manual (included in
the package and available here [1])
"Note: If you're using version 1.0 of the Arduino software, you'll
need to make sure that the sketch's name ends in .ino and not .pde."


If your file has a .pde extension, it will include WProrgam.h. If it
has a .ino, it will include Arduino.h.

For example:

showard@esc-303123:~/sketchbook/theramin2$ make
/usr/share/arduino/Arduino.mk:513: build-cli/depends.mk: No such file
or directory
echo '#include <Arduino.h>' > build-cli/theramin2.cpp
cat  theramin2.ino >> build-cli/theramin2.cpp
/usr/bin/avr-g++ -MM -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=100
-I. -I/usr/share/arduino/hardware/arduino/cores/arduino
-I/usr/share/arduino/hardware/arduino/variants/standard  -g -Os -w
-Wall -ffunction-sections -fdata-sections -fno-exceptions
build-cli/theramin2.cpp -MF build-cli/theramin2.d -MT
build-cli/theramin2.o
cat build-cli/theramin2.d > build-cli/depends.mk
rm build-cli/theramin2.cpp
cat build-cli/theramin2.d > build-cli/depends.mk
echo '#include <Arduino.h>' > build-cli/theramin2.cpp
cat  theramin2.ino >> build-cli/theramin2.cpp
/usr/bin/avr-g++ -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=100
-I. -I/usr/share/arduino/hardware/arduino/cores/arduino
-I/usr/share/arduino/hardware/arduino/variants/standard  -g -Os -w
-Wall -ffunction-sections -fdata-sections -fno-exceptions
build-cli/theramin2.cpp -o build-cli/theramin2.o

[...snip...]

/usr/bin/avr-g++ -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=100
-I. -I/usr/share/arduino/hardware/arduino/cores/arduino
-I/usr/share/arduino/hardware/arduino/variants/standard  -g -Os -w
-Wall -ffunction-sections -fdata-sections -fno-exceptions
/usr/share/arduino/hardware/arduino/cores/arduino/WString.cpp -o
build-cli/WString.o
/usr/bin/avr-ar rcs build-cli/libcore.a  build-cli/WInterrupts.o
build-cli/wiring_analog.o  build-cli/wiring.o
build-cli/wiring_digital.o  build-cli/wiring_pulse.o
build-cli/wiring_shift.o  build-cli/CDC.o  build-cli/HardwareSerial.o
build-cli/HID.o  build-cli/IPAddress.o  build-cli/main.o
build-cli/new.o  build-cli/Print.o  build-cli/Stream.o
build-cli/Tone.o  build-cli/USBCore.o  build-cli/WMath.o
build-cli/WString.o
/usr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -o
build-cli/theramin2.elf build-cli/theramin2.o build-cli/libcore.a  -lc
-lm
/usr/bin/avr-objcopy -O ihex -R .eeprom build-cli/theramin2.elf
build-cli/theramin2.hex

However, I found an unrelated bug with ard-parse-boards which I'll
fixing and uploading ASAP.

If I'm not understanding the bug, please reopen this one. I'm taking a
look at your other report now.

[1] http://mjo.tc/atelier/2009/02/arduino-cli.html



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to