Doctor-Proton / USB_to_RC

Convert USB HID and XINPUT gamepads, joysticks, etc to SBUS, PPM and MAVLINK
GNU General Public License v3.0
7 stars 2 forks source link

compile error on kali with pico-sdk,cmake and make #3

Open mflorin9125 opened 2 weeks ago

mflorin9125 commented 2 weeks ago

I've got the following errors during compiling however my coding days are over and I'm a little rusty: [ 93%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/hardware_exception/exception.c.obj [ 94%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/pico_multicore/multicore.c.obj [ 94%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/hardware_adc/adc.c.obj [ 95%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/hardware_spi/spi.c.obj [ 96%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/hardware_dma/dma.c.obj [ 96%] Building C object CMakeFiles/USB_to_RC.dir/home/flm/pico-sdk/src/rp2_common/hardware_rtc/rtc.c.obj [ 97%] Building C object CMakeFiles/USB_to_RC.dir/Pico-PIO-USB/src/pio_usb.c.obj In file included from /home/flm/USB_to_RC/Pico-PIO-USB/src/pio_usb.c:24: /home/flm/USB_to_RC/Pico-PIO-USB/src/usb_rx.pio.h:186:29: error: redefinition of 'pio_sm_set_jmp_pin' 186 | static __always_inline void pio_sm_set_jmp_pin(PIO pio, uint sm, uint jmp_pin) { | ^~~~~~ In file included from /home/flm/USB_to_RC/Pico-PIO-USB/src/pio_usb.c:14: /home/flm/pico-sdk/src/rp2_common/hardware_pio/include/hardware/pio.h:1450:20: note: previous definition of 'pio_sm_set_jmp_pin' with type 'void(pio_hw_t , uint, uint)' {aka 'void(pio_hw_t , unsigned int, unsigned int)'} 1450 | static inline void pio_sm_set_jmp_pin(PIO pio, uint sm, uint pin) { | ^~~~~~ make[2]: [CMakeFiles/USB_to_RC.dir/build.make:1997: CMakeFiles/USB_to_RC.dir/Pico-PIO-USB/src/pio_usb.c.obj] Error 1 make[1]: [CMakeFiles/Makefile2:1823: CMakeFiles/USB_to_RC.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Let me know what version of pico-sdk you used, from where you downloaded the tool and any other libraries and their versions that were needed besides the pull from the git link.

mflorin9125 commented 1 week ago

I've used pico-sdk from this github: https://github.com/raspberrypi/pico-sdk