Page 1 of 1

driver/gpio.h: No such file or directory

Posted: Mon Apr 04, 2022 7:14 pm
by w3llschmidt
Hello Fellows,

all of my ESP-IDF v4.x libs want compile on ESP-IDF v5.0 anymore :o

Same error on all >

Code: Select all

fatal error: driver/gpio.h: No such file or directory
#include "driver/gpio.h"
I cant find out whats the cause is. :?: :?: :?:

Please help!

Re: driver/gpio.h: No such file or directory

Posted: Mon Apr 04, 2022 9:25 pm
by chegewara
w3llschmidt wrote:I cant find out whats the cause is.
espressif decided to make our life miserable and changed dependency on most common component (driver/gpio).
Here you can find migration guide, but im not sure you find anything about this component:
https://docs.espressif.com/projects/esp ... index.html

Re: driver/gpio.h: No such file or directory

Posted: Tue Apr 05, 2022 2:39 am
by ESP_Sprite
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")

Re: driver/gpio.h: No such file or directory

Posted: Thu Jul 14, 2022 1:47 pm
by seancross
It looks like the proper component is `driver`, not `drivers`:

Code: Select all

idf_component_register(SRC_DIRS "."
    REQUIRES driver
    INCLUDE_DIRS "."
    "include")

Re: driver/gpio.h: No such file or directory

Posted: Wed Apr 26, 2023 8:08 am
by PJ_Nyachogo
seancross wrote:
Thu Jul 14, 2022 1:47 pm
It looks like the proper component is `driver`, not `drivers`:

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 guide

Re: driver/gpio.h: No such file or directory

Posted: Thu Apr 27, 2023 2:22 am
by chegewara