Esp32-cam - Can't compile a project from github

Hello. I've git clone the following repository:

and I'm using arudino-cli to compile and upload the code, using the following options:

./arduino-cli compile --upload --port /dev/ttyUSB0 --fqbn esp32:esp32:esp32:JTAGAdapter=default,PartitionScheme=min_spiffs,PSRAM=enabled,FlashMode=dio,FlashSize=4M,FlashFreq=80,LoopCore=1,EventsCore=1,CPUFreq=240,UploadSpeed=921600,EraseFlash=all --verbose ~/Arduino/esp32/esp32-cam/esp32-cam-webserver/esp32-cam-webserver.ino

I get the following error:

Alternatives for esp_int_wdt.h: []
ResolveLibrary(esp_int_wdt.h)
  -> candidates: []
/home/psysc0rpi0n/Arduino/esp32/esp32-cam/esp32-cam-webserver/esp32-cam-webserver.ino:2:10: fatal error: esp_int_wdt.h: No such file or directory
    2 | #include <esp_int_wdt.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

Used platform Version      Path
esp32:esp32   3.0.0-alpha3 /home/psysc0rpi0n/Downloads/arduino-cli/worda/packages/esp32/hardware/esp32/3.0.0-alpha3
Error during build: exit status 1

I'm using arduino-cli version

arduino-cli  Version: 0.35.2 Commit: 01de174c Date: 2024-01-24T11:33:03Z

And I'm using Debian Bookworm
I have esp32:esp2:esp32 platform installed (or whatever is the correct terminology).

$ ./arduino-cli core search esp32
ID            Version      Name
arduino:esp32 2.0.13       Arduino ESP32 Boards
esp32:esp32   3.0.0-alpha3 esp32

and to confirm:

$ ./arduino-cli board details -b esp32:esp32:esp32
Board name:            ESP32 Dev Module
FQBN:                  esp32:esp32:esp32
Board version:         3.0.0-alpha3

Package name:          esp32
--- snip---

I trimmed the output because it's quite long.
So, what am I missing?

that's an older git, looks like your using newer 3.0 release for esp32..
would either have to migrate the code or downgrade your esp32..

migration-guides/release-5.x/5.0

The Interrupt Watchdog API (functions/types/macros prefixed with esp_int_wdt_) has been made into a private API. Thus, the previous include path #include "esp_int_wdt.h" has been removed. If users still require usage of the Interrupt Watchdog API (though this is not recommended), it can be included via #include "esp_private/esp_int_wdt.h".

good luck.. ~q

I appreciate the answer but I have moved on and I'm trying some other repository for the same purpose. And I'm also having issues compiling. lol.
This seems doomed! :frowning:

I feel you..
Working on a cam project too..
Finding I need to fine tune the core..
Took 2 days but finally I'm starting to see some light at the end of my tunnel..
loaded vscode, esp-idf extension and arduino-esp32 as a component..
just got my first successful compile..
Still got to figure out how to get the cam installed but making progress..

I'll say this, the worse the struggle, the better it feels when it finally clicks..
sorry, ranting..

looking back at your first post, looks like you got 2 cores installed??
one is 2.0.13 and the other 3.0.0-alpha3..
wondering if you tried both??

can try loading this..
My cam project I'm working on..

and curious, can you load anything??
like blinking on board led..

good luck.. ~q

I end up abandoning this repository.
And after going round and round for ever, I came to the conclusion, with the help of people on IRC (yes, the old IRC cat), that the 3.0.0 alpha version is messed up. So, I downgraded to 2.0.14 and the code (of the other repository I ended up unsing instead, which was also returning errors on compile), finally compiled!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.