Your message dated Fri, 27 Apr 2012 12:13:17 -0400
with message-id 
<CANg8-dCPDAKsU+0F=ay5zxy+sktrbsik4eyvunrc9bnttfd...@mail.gmail.com>
and subject line WProgram.h header included by Arduino.mk
has caused the Debian Bug report #670565,
regarding arduino-mk: Makefile hardcodes include line of non-existent header 
file into PDE files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
670565: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670565
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: arduino-mk
Version: 0.8-1
Severity: grave
Justification: renders package unusable

When compiling a custom project using the Arduino.mk file of this package
you automatically get a line

#include <WProgram.h>

at the beginning of the internally compiled file of your project. As this
file is no longer part of Arduino versions 1.0 and above this makes all
.pde files uncompileable using this build scipt.

Either replace this by Arduino.h or remove this additional compile line
alltogether from this build script.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.27 (SMP w/2 CPU cores)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash



--- End Message ---
--- Begin Message ---
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


--- End Message ---

Reply via email to