Pico-DMX icon indicating copy to clipboard operation
Pico-DMX copied to clipboard

Fix hardware/pio.h: No such file

Open nsc-de opened this issue 1 year ago • 0 comments

If you import the library using interfaceLibForPicoSDK.cmake the api was not able to access hardware/pio.h

[Error thrown]

./dependencies/pico-dmx/src/DmxOutput.h:18:12: fatal error: hardware/pio.h: No such file or directory
18 |   #include "hardware/pio.h"

Error is resolved by adding the library to the picodmx interface

target_sources(picodmx INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/src/DmxInput.cpp
    ${CMAKE_CURRENT_LIST_DIR}/src/DmxOutput.cpp
)

nsc-de avatar May 15 '23 16:05 nsc-de