Esp32 cam compilation error

Hello, I am using the esp32 cam for image classification processing. In the example esp32_ camera, I followed your steps to add a URL to the preferences: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json . However, there is only Verson 1.0.6 in it. After downloading this version, the following error occurred during compilation:

C:\Users\win\AppData\Local\Temp.arduinoIDE-unsaved202333-11056-zcn82q.n3wt\esp32_ camera\esp32_ camera.ino:116:20: error: ‘CAMERA_ FB_ IN_ PSRAM’ was not declared in this scope

.fb_ location = CAMERA_ FB_ IN_ PSRAM,

^

C:\Users\win\AppData\Local\Temp.arduinoIDE-unsaved202333-11056-zcn82q.n3wt\esp32_ camera\esp32_ camera.ino:117:18: error: ‘CAMERA_ GRAB_ WHEN_ EMPTY’ was not declared in this scope

.grab_ mode = CAMERA_ GRAB_ WHEN_ EMPTY,

^

C:\Users\win\AppData\Local\Temp.arduinoIDE-unsaved202333-11056-zcn82q.n3wt\esp32_ camera\esp32_ camera.ino:118:1: error: ‘camera_ config_ t’ has no non-static data member named ‘fb_ location’

};

^

exit status 1

Compilation error: ‘CAMERA_ FB_ IN_ PSRAM’ was not declared in this scope

How should I solve it?

Do you mean your ESP32 board manager (BM) is at v1.0.6?

If so I would update it. The IDE usually will let you know when it opens if updates are avaliable. Else post in the Arduino forum for help on updating the BM.

My ESP BM is at v2.0.7. Also see the cyan colored checkmarks and maybe add that code to your code.