kilograham / rp2040-doom

Fully-featured Doom port for the Raspberry Pi RP2040 microcontroller
GNU General Public License v2.0
746 stars 91 forks source link

undefined reference to `tuh_task' #13

Open Ralfonso09 opened 1 year ago

Ralfonso09 commented 1 year ago

i allways get an error i_system.c:(.text.I_Quit+0x52): undefined reference to `tuh_task'

at the beginning cmake tells my that the tinyusb repos is there TinyUSB available at ...repos/rp2040-doom/3rdparty/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.

gu50 commented 1 year ago

It's been a bit since I compiled it, but I think I had a similar issue. Not sure if it relates to your issue, but I remember there was a wrong symbolic link in the 3rdparty directory, not pointing correctly to tinyusb in my directory tree (also, tinyusb needs to be initialized / downloaded also).

kilograham commented 1 year ago

i allways get an error i_system.c:(.text.I_Quit+0x52): undefined reference to `tuh_task'

that possibly happened using newer TinyUSB with code before the other day when I fixed build for pico-sdk 1.5.0 (which moves to TinyUSB 0.15.0) - do you have the latest code.

I did not remove the sub-module which I probably should, but i imagine it should still compile.