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

with

platform = espressif32@3.2.0

Using the platformio.ini

[env]
build_unflags=-Werror=all

[env:esp32cam]
platform = espressif32@3.2.0
board = esp32cam
framework = espidf
board_build.partitions = partitions.csv
monitor_speed = 115200
lib_deps =
  esp32-camera@1.0.0

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
2 Likes

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