all of my ESP-IDF v4.x libs want compile on ESP-IDF v5.0 anymore
Same error on all >
Code: Select all
fatal error: driver/gpio.h: No such file or directory
#include "driver/gpio.h"
Please help!
Code: Select all
fatal error: driver/gpio.h: No such file or directory
#include "driver/gpio.h"
espressif decided to make our life miserable and changed dependency on most common component (driver/gpio).w3llschmidt wrote:I cant find out whats the cause is.
Code: Select all
idf_component_register(SRCS ${SOURCE_FILES}
REQUIRES drivers
INCLUDE_DIRS "src")
Code: Select all
idf_component_register(SRC_DIRS "."
REQUIRES driver
INCLUDE_DIRS "."
"include")
Hi. this worked for me. Could you tell, where you got this information? I can't find a list or something in the programming guideseancross wrote: ↑Thu Jul 14, 2022 1:47 pmIt looks like the proper component is `driver`, not `drivers`:
Code: Select all
idf_component_register(SRC_DIRS "." REQUIRES driver INCLUDE_DIRS "." "include")
Users browsing this forum: No registered users and 344 guests