UncleRus/esp-idf-lib

The component driver could not be found

Closed this issue · 1 comments

The issue

I am trying to use your project on (HX711 example). I am using correct versions of Cmaker (3.5), and VisualStudioCode.
However, even after considering the Github readme instructions, I am facing a problem that I can't find a way to solve. Here are the logs :
`-- Configuring incomplete, errors occurred!
See also "C:/Users/CorentinLEROY/eesp/esp-idf-lib/examples/hx711/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja
C:\Users\CorentinLEROY.espressif\tools\cmake\3.24.0\bin\cmake.exe --regenerate-during-build -SC:\Users\CorentinLEROY\eesp\esp-idf-lib\examples\hx711 -BC:\Users\CorentinLEROY\eesp\esp-idf-lib\examples\hx711\build
ninja: error: rebuilding 'build.ninja': subcommand failed
HINT: The component driver could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details about moved components.
Refer to the build-system guide for more details about how components are found and included in the build.
ninja failed with exit code 1, output of the command is in the C:\Users\CorentinLEROY\eesp\esp-idf-lib\examples\hx711\build\log\idf_py_stderr_output_19540 and C:\Users\CorentinLEROY\eesp\esp-idf-lib\examples\hx711\build\log\idf_py_stdout_output_19540

C:\Users\CorentinLEROY\eesp\esp-idf-lib\examples\hx711>`

The context

I simply started building the project for a PoC, searching for a library compatible on esp32 and C code, because on Arduino it is not a big deal to deal with hx711 devices.

Possible solution

I checked the log and saw the link telling me to go on the [https://components.espressif.com] website to find a component driver compatible. I tried I2C component, added the idf_component.yml file inside my project but nothing changed. I also tried searching on the github for any advice but nothing about this issue.

Confirmation

  • This report is not a bug report in code, a question, nor a request for drivers.

Changed the folder path for the component, everything is resolved