idf-component-manager icon indicating copy to clipboard operation
idf-component-manager copied to clipboard

build fail, cannot find "driver/gpio.h" (IDFGH-9411) (PACMAN-1086)

Open edword01 opened this issue 2 years ago • 3 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

IDF5.0

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

PowerShell

What is the expected behavior?

build success.

What is the actual behavior?

fatal error: driver/gpio.h: No such file or directory

Steps to reproduce.

  1. Step idf.py command to create new project, and copy the gpio example code.
  2. Step build success, then i use the idf component manager to add led strip component, and build success also.
  3. Step then try to modify the component in "managed_components",add one line to test, just : "#define XXXX 1"
  4. Step then idf.py reconfigure fail for sure, then, using "mv" cmd to move the component to "components" dir in PROJECT DIR, so, build always erro now, and occurs this error.

Build or installation Logs.

No response

More Information.

No response

edword01 avatar Feb 16 '23 10:02 edword01

@edword01

then try to modify the component in "managed_components",add one line to test, just : "#define XXXX 1"

Could you post an error log due to the one line change? Doesn't seem right how adding an extra #define will cause a fatal error: driver/gpio.h: No such file or directory error.

Dazza0 avatar Feb 16 '23 13:02 Dazza0

i delete that define, still the same error.

---Original--- From: @.> Date: Thu, Feb 16, 2023 21:09 PM To: @.>; Cc: @.@.>; Subject: Re: [espressif/esp-idf] build fail, cannot find "driver/gpio.h"(IDFGH-9411) (Issue espressif/idf-component-manager#85)

@edword01

then try to modify the component in "managed_components",add one line to test, just : "#define XXXX 1"

Could you post an error log due to the one line change? Doesn't seem right how adding an extra #define will cause a fatal error: driver/gpio.h: No such file or directory error.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

edword01 avatar Feb 16 '23 13:02 edword01

Hi @edword01

Could you check if the issue still persists? Alternatively, could you share the projects you're building so I can try reproducing it locally?

hfudev avatar Mar 13 '25 13:03 hfudev

Since there was no response from the user - closing this issue. If the issue persists please reopen this or create a new issue.

Cheers!

Indastri avatar May 19 '25 13:05 Indastri