wavFilePlayerUSB

Status
Not open for further replies.

sreyn

New member
Hello all !
I try to compile wavfileplayerUSB example from arduino 1.6.11/teensyduino 1.30 (fresh install) and it fail, i have this error:

Build options changed, rebuilding all
C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\Wire\Wire.cpp.o: In function `i2c0_isr':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire/Wire.cpp:376: multiple definition of `i2c0_isr'

C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\i2c_t3\i2c_t3.cpp.o:C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\i2c_t3/i2c_t3.cpp:1387: first defined here

c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\Wire\Wire.cpp.o: In function `TwoWire::flush()':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire/Wire.cpp:507: multiple definition of `Wire'

C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\i2c_t3\i2c_t3.cpp.o:C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\i2c_t3/i2c_t3.h:911: first defined here

c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: Warning: size of symbol `Wire' changed from 20 in C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\i2c_t3\i2c_t3.cpp.o to 16 in C:\Users\sylvain\AppData\Local\Temp\build84d759f76743107748cabe02740fd854.tmp\libraries\Wire\Wire.cpp.o

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "SD.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Error compiling for board Teensy 3.2 / 3.1.


I tried to change include <wire.h> by include <i2c_t3.h> in Audio cpp files, but it didnt change anything :-(
Is anyone have an idea ?
Thanks for your help !
Sylvain
 
I was able to build it for T3.6 just now using Arduino 1.6.12 and 1.31 beta2 (Note the Audio library I used is a (git) copy of Pauls github version, so I my build has a few more updates than the beta2 release (like support for DAC1), but i don't think that should impact the build.
 
thanks KurtE
i was able to build it too with Arduino 1.6.12 and 1.31beta2 (for Teensy 3.2). It worked because the source of wavFilePlayerUSB has changed: it is now wire.h in the including list !
I tried to change it with "i2c_t3.h" and it give the same result... Unable to compile with i2c_t3 :-(
 
Yes, you can not mix the two libraries as they both try to create the same name objects and define the same Interrupt handlers...
 
Yes I agree, i would like to use i2c_t3.h only... I dont know where are the others reference to wire.h
 
it's ok now, it's located in control_ak4558.cpp, control_sgtl5000.cpp, control_cs4272.cpp, control_wm873.cpp
 
Status
Not open for further replies.
Back
Top