I have a question about the Makefile in PlatformIO

I’ve added the camera library while working with the ESP32-S2.

lib_deps = espressif/esp32-camera@^2.0.4

There’s a makefile.txt file in this library that’s supposed to automatically include the right files based on the environment.


However, it doesn’t seem to work in PlatformIO, so I had to manually add those files for the compilation to succeed. Also, there’s a Kconfig file in the library, but when I run menuconfig for the ESP32-S2, I can’t find the camera option. I had to add those configurations manually too. Is there any way to avoid this hassle?

Don’t include ESP-IDF components via lib_deps, it won’t integrate with the build system properly (issue).

Just copy the ESP-IDF component into the project’s components folder, like official examples do.

1 Like

Yes, the solution you provided worked perfectly. Thanks a lot!

Yes, the solution you provided worked perfectly. Thanks a lot!