whyaaronbailey / adafruit_rp2040_usbh

15 stars 2 forks source link

trouble compiling: pio_usb_ll.h: No such file or directory #1

Open bogorad opened 4 months ago

bogorad commented 4 months ago

using the latest QMK and this repo,

qmk compile -kb converter/adafruit_rp2040_usbh -km default

Compiling: keyboards/converter/adafruit_rp2040_usbh/matrix.c
keyboards/converter/adafruit_rp2040_usbh/matrix.c:9:10: fatal error: pio_usb_ll.h: No such file or directory
    9 | #include "pio_usb_ll.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
 [ERRORS]
 |
 |
 |
gmake[1]: *** [builddefs/common_rules.mk:360: .build/obj_converter_adafruit_rp2040_usbh_default/matrix.o] Error 1
Make finished with errors
gmake: *** [Makefile:392: converter/adafruit_rp2040_usbh:default] Error 1

It looks like Pico-PIO-USB directory is empty. cloned git@github.com:sekigon-gonnoc/Pico-PIO-USB.git into it, but now getting another error:

⬢ [Systemd] ❯ qmk compile -kb converter/adafruit_rp2040_usbh -km default
Ψ Compiling keymap with gmake --jobs=1 converter/adafruit_rp2040_usbh:default

QMK Firmware 0.20.6
Making converter/adafruit_rp2040_usbh with keymap default

arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: keyboards/converter/adafruit_rp2040_usbh/matrix.c
keyboards/converter/adafruit_rp2040_usbh/matrix.c:199:6: error: conflicting types for 'pointing_device_task'
  199 | bool pointing_device_task(void) {
      |      ^~~~~~~~~~~~~~~~~~~~
In file included from quantum/quantum.h:232,
                 from ./.build/obj_converter_adafruit_rp2040_usbh/src/default_keyboard.h:27,
                 from keyboards/converter/adafruit_rp2040_usbh/matrix.c:4:
quantum/pointing_device/pointing_device.h:100:16: note: previous declaration of 'pointing_device_task' was here
  100 | void           pointing_device_task(void);
      |                ^~~~~~~~~~~~~~~~~~~~
keyboards/converter/adafruit_rp2040_usbh/matrix.c: In function 'pointing_device_task':
keyboards/converter/adafruit_rp2040_usbh/matrix.c:201:28: error: void value not ignored as it ought to be
  201 |         bool send_report = pointing_device_send();
      |                            ^~~~~~~~~~~~~~~~~~~~
 [ERRORS]
 |
 |
 |
gmake[1]: *** [builddefs/common_rules.mk:360: .build/obj_converter_adafruit_rp2040_usbh_default/matrix.o] Error 1
gmake: *** [Makefile:392: converter/adafruit_rp2040_usbh:default] Error 1
Make finished with errors

some type conflicts (bool vs void), and some logic around it.

abhas commented 3 months ago

I was able to get past this error by cloning this repo: https://github.com/sekigon-gonnoc/Pico-PIO-USB into the converter/adafruit_rp2040_usbh/lib/Pico-PIO-USB/ directory. The directory was empty.

If you are qmk_firmware/keyboards/converter/adafruit_rp2040_usbh/, then you can run:

git clone https://github.com/sekigon-gonnoc/Pico-PIO-USB lib/Pico-PIO-USB/