Skip to content

undefined reference to `tud_midi_n_read' #3

@schollz

Description

@schollz

These examples are an incredible resource. Thank you so much for making them available and sharing them.

I have a question for anyone out there - I'm having a problem building usb-midi:

[ 90%] Linking CXX executable usb-midi.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/usb-midi.dir/usb_midi.c.obj: in function `midi_task':
usb_midi.c:(.text.midi_task+0x24): undefined reference to `tud_midi_n_read'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/usb-midi.dir/build.make:1143: usb-midi.elf] Error 1
make[2]: Leaving directory '/home/zns/Documents/pico_test_projects/usb-midi/build'
make[1]: *** [CMakeFiles/Makefile2:1491: CMakeFiles/usb-midi.dir/all] Error 2
make[1]: Leaving directory '/home/zns/Documents/pico_test_projects/usb-midi/build'
make: *** [Makefile:91: all] Error 2
make: Leaving directory '/home/zns/Documents/pico_test_projects/usb-midi/build'

Is this because of TinyUSB? Is there someting I'm supposed to install before running?

I got this error from running

cmake -B build
make -C build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions