grblHAL / RP2040

grblHAL driver for RP2040 (Pi Pico)
Other
113 stars 50 forks source link

Compilation error if bluetooth is enabled in native mode #94

Closed EKazakof closed 1 month ago

EKazakof commented 1 month ago

If you enable bluetooth in native mode, the Web Builder and visual studio code generates a compilation error.

web builder output:

Command failed: make /home/dev/RP2040/driver.c: In function 'cyw43_led_on': /home/dev/RP2040/driver.c:2238:9: warning: implicit declaration of function 'cyw43_arch_gpio_put' [-Wimplicit-function-declaration] 2238 | cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, data != NULL); | ^~~~~~~ In file included from /home/sdk/pico-sdk/src/rp2_common/pico_cyw43_arch/include/pico/cyw43_arch.h:16, from /home/dev/RP2040/bluetooth.c:36: /home/sdk/pico-sdk/lib/cyw43-driver/src/cyw43.h:40:10: fatal error: lwip/netif.h: No such file or directory 40 | #include "lwip/netif.h" | ^~~~~~ compilation terminated. make[2]: [CMakeFiles/grblHAL.dir/build.make:468: CMakeFiles/grblHAL.dir/bluetooth.c.obj] Error 1 make[1]: [CMakeFiles/Makefile2:1494: CMakeFiles/grblHAL.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

terjeio commented 1 month ago

Web Builder should be ok now, VSCode may still fail (Linux only?) due to a name clash - will commit a fix for this later.

EKazakof commented 1 month ago

Thank you for a quick response. VS Code for Windows Pico-SDK v1.5.1 compilation is successful. Pico-SDK v2.0 is still a failure.