Package: arduino-core
Version: 2:1.5.6.2+sdfsg2-3
Severity: normal

Dear Maintainer,

I am using arduino-mk and the following Makefile to compile
ino-Software:

ARDUINO_DIR   = /usr/share/arduino
ARDMK_DIR     = /usr/share/arduino
AVR_TOOLS_DIR = /usr

# the following variables have to be manally set when using # arduino-1.5
USER_LIB_PATH       = /usr/share/arduino/hardware/arduino/avr/libraries
ARDUINO_CORE_PATH   = /usr/share/arduino/hardware/arduino/avr/cores/arduino
BOARDS_TXT          = /usr/share/arduino/hardware/arduino/avr/boards.txt
ARDUINO_VAR_PATH    = /usr/share/arduino/hardware/arduino/avr/variants
BOOTLOADER_PARENT   = /usr/share/arduino/hardware/arduino/avr/bootloaders

ARDUINO_LIBS = SoftwareSerial
BOARD_TAG    = leonardo
MONITOR_PORT = /dev/ttyACM0

include /usr/share/arduino/Arduino.mk


Unlike when using the arduino{,-core} packages from unstable, USB_VID
and USB_PID are not automatically set based on BOARD_TAG and compilation
using make ends with:

/usr/bin/avr-g++ -MMD -c -mmcu=atmega32u4 -DF_CPU=16000000L
-DARDUINO=156 -D__PROG_TYPES_COMPAT__ -I.
-I/usr/share/arduino/hardware/arduino/avr/cores/arduino
-I/usr/share/arduino/hardware/arduino/avr/variants/leonardo
-I/usr/share/arduino/hardware/arduino/avr/libraries/SoftwareSerial -Wall
-ffunction-sections -fdata-sections -Os -fno-exceptions
/usr/share/arduino/hardware/arduino/avr/cores/arduino/USBCore.cpp -o
build-leonardo/core/USBCore.o
In file included from
/usr/share/arduino/hardware/arduino/avr/cores/arduino/Platform.h:19:0, from
    /usr/share/arduino/hardware/arduino/avr/cores/arduino/USBCore.cpp:19:
    /usr/share/arduino/hardware/arduino/avr/cores/arduino/USBCore.cpp:79:29:
error: ‘USB_VID’ was not declared in this scope
    
D_DEVICE(0x00,0x00,0x00,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,0,1);

The same occurs when compiling with BOARD_TAG=yun.

Compiling works when manually defining the #defines in the Makefile:
CXXFLAGS     = -DUSB_VID=0x2341 -DUSB_PID=0x8041

Kind regards,
Benedikt Wildenhain

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages arduino-core depends on:
ii  avr-libc  1:1.8.0+Atmel3.4.4-1
ii  avrdude   6.1-1
ii  gcc       4:4.9.1-1
ii  gcc-avr   1:4.8.1+Atmel3.4.4-2

Versions of packages arduino-core recommends:
ii  bossa-cli  1.3~20120408-5

Versions of packages arduino-core suggests:
ii  arduino-mk  1.3.4-1

-- no debconf information


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

Reply via email to