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).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 guideIt looks like the proper component is `driver`, not `drivers`:
Code: Select all
idf_component_register(SRC_DIRS "." REQUIRES driver INCLUDE_DIRS "." "include")
I have a generic question about includes and Cmake. Sorry if this is too stupid, but:In general, your components now need to indicate which other components they depend on. For instance:Code: Select all
idf_component_register(SRCS ${SOURCE_FILES} REQUIRES drivers INCLUDE_DIRS "src")
Users browsing this forum: Amazon [Bot], Baidu [Spider], Bytespider, Qwantbot and 5 guests