Encountering unknown CMake command "idf_component_register"
Posted: Thu Aug 29, 2019 1:39 pm
After downloading and building the ESP32 repository for Linux (I am running elementary OS 4.0 Juno), I've encountered a problem where I can't invoke anything to do with `idf.py`. I can't call `menuconfig`, or flash/monitor examples. I consistently get the error:
```
CMake error at main/CMakeLists.txt:1 (idf_component_register):
Unknown CMake command "idf_component_register
```
If I google the problem, I get this one github thread here: https://github.com/espressif/esp-idf/issues/3741
And the user in question "solved" his problem (which isn't entirely the same as mine) by refactoring his code into fewer files. In any case, it doesn't reapply apply since he has a different issue (he can use menuconfig sometimes) and the solution isn't ideal.
Can anyone explain to me how to solve this problem?
```
CMake error at main/CMakeLists.txt:1 (idf_component_register):
Unknown CMake command "idf_component_register
```
If I google the problem, I get this one github thread here: https://github.com/espressif/esp-idf/issues/3741
And the user in question "solved" his problem (which isn't entirely the same as mine) by refactoring his code into fewer files. In any case, it doesn't reapply apply since he has a different issue (he can use menuconfig sometimes) and the solution isn't ideal.
Can anyone explain to me how to solve this problem?