pschatzmann / arduino-midi

Midi support for Arduino (Midi over Serial, Bluetooth, BLE and TCP/IP, Apple MIDI)
29 stars 3 forks source link

Errors compiling applemidi-receive.ino #6

Closed jaapnoordzij closed 7 months ago

jaapnoordzij commented 7 months ago

I tried to compile the unmodified example for AppleMidi but I have multiple errors in the Aduino IDE


/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o:(.literal._ZN4midi15AppleMidiServer9writeDataEPNS_11MidiMessageEi+0x4): undefined reference to `applemidi_send_message'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o:(.literal._ZN4midi15AppleMidiServer11setupLoggerEv+0x0): undefined reference to `applemidi_set_debug_level'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o:(.literal._ZN4midi15AppleMidiServer5beginEi+0x14): undefined reference to `applemidi_init'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o:(.literal._ZN4midi15AppleMidiServer4tickEj+0x10): undefined reference to `applemidi_parse_udp_datagram'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o: in function `midi::AppleMidiServer::writeData(midi::MidiMessage*, int)':
/Users/jaapnoordzij/Documents/Arduino/libraries/arduino-midi/src/AppleMidiServer.cpp:92: undefined reference to `applemidi_send_message'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o: in function `midi::AppleMidiServer::setupLogger()':
/Users/jaapnoordzij/Documents/Arduino/libraries/arduino-midi/src/AppleMidiServer.cpp:118: undefined reference to `applemidi_set_debug_level'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o: in function `midi::AppleMidiServer::begin(int)':
/Users/jaapnoordzij/Documents/Arduino/libraries/arduino-midi/src/AppleMidiServer.cpp:17: undefined reference to `applemidi_init'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/sd/ccw4xqxj32d4jk5qpwg2rzzh0000gn/T/arduino/sketches/E0C19DC259267AD7BE3EF26CFBF83E83/libraries/arduino-midi/AppleMidiServer.cpp.o: in function `midi::AppleMidiServer::tick(unsigned int)':
/Users/jaapnoordzij/Documents/Arduino/libraries/arduino-midi/src/AppleMidiServer.cpp:71: undefined reference to `applemidi_parse_udp_datagram'
/Users/jaapnoordzij/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /Users/jaapnoordzij/Documents/Arduino/libraries/arduino-midi/src/AppleMidiServer.cpp:82: undefined reference to `applemidi_parse_udp_datagram'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1```
pschatzmann commented 7 months ago

I have committed a correction.