ESP32cam example in platformio not working

Hi community…

I have tried to import in platformio the folowing repo in github…

When I try to compile I have 2 issues…

The first one regarding the unknown presence of a define

Then when I set it manually I have issues during the linking stage…

Can you try to do that too?

You don’t need the board for compiling…

Thanks a lot for your huge help

When the project was created in April 2021, the platform-espressif32 version was 3.2.0. Compiling with a higher platform version uses a different ESP-IDF and possibly creates these incompatbilities. Try replacing


platform = espressif32@3.2.0

Using the platformio.ini


platform = espressif32@3.2.0
board = esp32cam
framework = espidf
board_build.partitions = partitions.csv
monitor_speed = 115200
lib_deps =

works completely for me with 0 code changes. Both older platform + older camera library must be used.

Checking size .pio\build\esp32cam\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  12.6% (used 41384 bytes from 327680 bytes)
Flash: [======    ]  63.3% (used 830280 bytes from 1310720 bytes)
Building .pio\build\esp32cam\firmware.bin

Thanks Max… I will try this evening and I will try to run it in the mcu… Thanks a lot