"Multiple libraries were found" after fresh install of Arduino

Status
Not open for further replies.

mnemocron

New member
I have the Teensy 4.0 with the Audio Board for 4.0
Trying to compile the Code Example:
Example/Examples for Teensy 4.0/Audio/HardwareTesting/PassThroughUSB

On a fresh installation of Arduino 1.8.10 / Teensyduino 1.49 on Windows 10
Documents/Arduino/libraries folder is empty

Arduino throws the following error:

Code:
PassThroughUSB:7: error: 'AudioInputUSB' does not name a type
To make an USB Audio device, use the Tools > USB Type menu
 AudioInputUSB            usb1;           //xy=200,69  (must set Tools > USB Type to Audio)

 ^

PassThroughUSB:9: error: 'usb1' was not declared in this scope
 AudioConnection          patchCord1(usb1, 0, i2s1, 0);

                                     ^

PassThroughUSB:10: error: 'usb1' was not declared in this scope
 AudioConnection          patchCord2(usb1, 1, i2s1, 1);

                                     ^

PassThroughUSB: In function 'void loop()':
PassThroughUSB:21: error: 'usb1' was not declared in this scope
   float vol = usb1.volume();

               ^

Multiple libraries were found for "Audio.h"
 Used: C:\Program
Multiple libraries were found for "SPI.h"
 Used: C:\Program
Multiple libraries were found for "SD.h"
 Used: C:\Program
 Not used: C:\Program
Multiple libraries were found for "SerialFlash.h"
 Used: C:\Program
Multiple libraries were found for "Wire.h"
 Used: C:\Program
'AudioInputUSB' does not name a type

Please note the odd and incomplete statement: "Used: C:\Program" ...
Using the Windows Explorer search on C:\ searching for "serialflash.h" only yields a result in
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SerialFlash
 
Using the PassThroughMono example:
Compiles for Teensy 3.6 without any errors
Compiles for Teensy 4.0 yielding the following output

Code:
C:\Arduino-Output\sketch\PassThroughMono.ino.cpp.o: In function `AudioInputAnalog::AudioInputAnalog()':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/input_adc.h:37: undefined reference to `AudioInputAnalog::init(unsigned char)'

C:\Arduino-Output\sketch\PassThroughMono.ino.cpp.o: In function `AudioOutputPWM::AudioOutputPWM()':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/output_pwm.h:37: undefined reference to `AudioOutputPWM::begin()'

C:\Arduino-Output\sketch\PassThroughMono.ino.cpp.o: In function `AudioStream::AudioStream(unsigned char, audio_block_struct**)':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/AudioStream.h:130: undefined reference to `vtable for AudioInputAnalog'

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/AudioStream.h:130: undefined reference to `vtable for AudioOutputPWM'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "Audio.h"
 Used: C:\Program
Multiple libraries were found for "SPI.h"
 Used: C:\Program
Multiple libraries were found for "SD.h"
 Used: C:\Program
 Not used: C:\Program
Multiple libraries were found for "SerialFlash.h"
 Used: C:\Program
Multiple libraries were found for "Wire.h"
 Used: C:\Program
Error compiling for board Teensy 4.0.
 
At the moment, T4 has no PWM or AudipInputAnalog implemented.
At least analog will come in the future, I think.

For the "multiple libraries" issue, check your installation.
 
I have the Teensy 4.0 with the Audio Board for 4.0
Trying to compile the Code Example:
Example/Examples for Teensy 4.0/Audio/HardwareTesting/PassThroughUSB

On a fresh installation of Arduino 1.8.10 / Teensyduino 1.49 on Windows 10
Documents/Arduino/libraries folder is empty

Arduino throws the following error:

Code:
...
Multiple libraries were found for "Audio.h"
 Used: C:\Program
Multiple libraries were found for "SPI.h"
 Used: C:\Program

...

Please note the odd and incomplete statement: "Used: C:\Program" ...
Using the Windows Explorer search on C:\ searching for "serialflash.h" only yields a result in
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SerialFlash

The 'Multiple libraries were found for ...' is a bogus message where the IDE broke that reporting feature with release of 1.8.10.

It also seems to do extra recompiling on a rebuild that 1.8.9 didn't do AFAIK, just went back to 1.8.9 on this machine with TD 1.49.
 
Status
Not open for further replies.
Back
Top