hi, when i try to upload the example code for motion detection inside the esp32 cam , why the error say ‘ Error compiling for board AI Thinker ESP32-CAM. ‘ even though i put the AI Thinker esp32 cam as board in tool?
I moved your topic to a more appropriate forum category @alang-021_kt.
The Nano Family > Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, when creating a topic please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Thanks in advance for your cooperation.
Hi @alang-021_kt. I'm going to ask you to provide the full output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to fail.
- You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a reply here on this forum topic by clicking the "Reply" button.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to publish the post.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.
Click here for attachment instructions
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txtformat. - Open a reply here on this forum topic by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:
The "Open" dialog will open. - Select the
.txtfile you saved from the "Open" dialog. - Click the "Open" button.
The dialog will close. - Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
Arduino: 1.8.19 (Windows 10), Board: "AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, Debug, Disabled"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32cam:CPUFreq=240,FlashMode=qio,PartitionScheme=huge_app,FlashFreq=80,DebugLevel=debug,EraseFlash=none -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\user\AppData\Local\Temp\arduino_build_975341 -warnings=none -build-cache C:\Users\user\AppData\Local\Temp\arduino_cache_123357 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1 -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.5-b66b5448-v1.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1 -prefs=runtime.tools.esp-x32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411 -prefs=runtime.tools.esp-x32-2411.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411 -prefs=runtime.tools.esp-rv32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2411 -prefs=runtime.tools.esp-rv32-2411.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2411 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.xtensa-esp-elf-gdb-16.2_20250324.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.mkspiffs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mklittlefs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.dfu-util.path=C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.openocd-esp32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20250422 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20250422.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20250422 -prefs=runtime.tools.esptool_py.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0 -prefs=runtime.tools.esptool_py-5.0.0.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.riscv32-esp-elf-gdb-16.2_20250324.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\16.2_20250324 -verbose C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries\EloquentEsp32cam\examples\Motion_Detection\Motion_Detection.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32cam:CPUFreq=240,FlashMode=qio,PartitionScheme=huge_app,FlashFreq=80,DebugLevel=debug,EraseFlash=none -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\user\AppData\Local\Temp\arduino_build_975341 -warnings=none -build-cache C:\Users\user\AppData\Local\Temp\arduino_cache_123357 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1 -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.5-b66b5448-v1.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1 -prefs=runtime.tools.esp-x32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411 -prefs=runtime.tools.esp-x32-2411.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2411 -prefs=runtime.tools.esp-rv32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2411 -prefs=runtime.tools.esp-rv32-2411.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2411 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.xtensa-esp-elf-gdb-16.2_20250324.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.mkspiffs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mklittlefs.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.dfu-util.path=C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.openocd-esp32.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20250422 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20250422.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20250422 -prefs=runtime.tools.esptool_py.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0 -prefs=runtime.tools.esptool_py-5.0.0.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.0.0 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\16.2_20250324 -prefs=runtime.tools.riscv32-esp-elf-gdb-16.2_20250324.path=C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\16.2_20250324 -verbose C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries\EloquentEsp32cam\examples\Motion_Detection\Motion_Detection.ino
Using board 'esp32cam' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0
Using core 'esp32' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0
cmd /c if exist "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\partitions.csv" COPY /y "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\partitions.csv" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\partitions.csv"
cmd /c if not exist "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\partitions.csv" if exist "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32\\partitions.csv" COPY "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32\\partitions.csv" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\partitions.csv"
cmd /c if not exist "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\partitions.csv" COPY "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\tools\\partitions\\huge_app.csv" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\partitions.csv"
cmd /c IF EXIST "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\bootloader.bin" ( COPY /y "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\bootloader.bin" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\Motion_Detection.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32\\bootloader.bin" ( COPY "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32\\bootloader.bin" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\Motion_Detection.ino.bootloader.bin" ) ELSE ( "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\5.0.0\\esptool.exe" --chip esp32 elf2image --flash-mode dio --flash-freq 80m --flash-size 4MB -o "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\Motion_Detection.ino.bootloader.bin" "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32\\bin\\bootloader_qio_80m.elf" ) )
esptool v5.0.0
Creating ESP32 image...
Merged 2 ELF sections.
Successfully created ESP32 image.
cmd /c if exist "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\build_opt.h" COPY /y "C:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection\\build_opt.h" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\build_opt.h"
cmd /c if not exist "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\build_opt.h" type nul > "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\build_opt.h"
cmd /c type nul > "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/file_opts"
cmd /c COPY /y "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32\\sdkconfig" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\sdkconfig"
1 file(s) copied.
Detecting libraries used...
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2411/bin/xtensa-esp32-elf-g++" -c "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/cpp_flags" -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_huge_app "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32cam:CPUFreq=240,FlashMode=qio,PartitionScheme=huge_app,FlashFreq=80,DebugLevel=debug,EraseFlash=none\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=4 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/defines" "-IC:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection" -iprefix "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/include/" "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/includes" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/qio_qspi/include" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\cores\\esp32" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/build_opt.h" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/file_opts" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\sketch\\Motion_Detection.ino.cpp" -o nul
Alternatives for eloquent_esp32cam.h: [EloquentEsp32cam@2.7.15]
ResolveLibrary(eloquent_esp32cam.h)
-> candidates: [EloquentEsp32cam@2.7.15]
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2411/bin/xtensa-esp32-elf-g++" -c "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/cpp_flags" -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_huge_app "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32cam:CPUFreq=240,FlashMode=qio,PartitionScheme=huge_app,FlashFreq=80,DebugLevel=debug,EraseFlash=none\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=4 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/defines" "-IC:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection" -iprefix "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/include/" "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/includes" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/qio_qspi/include" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\cores\\esp32" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32" "-IC:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\src" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/build_opt.h" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/file_opts" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\sketch\\Motion_Detection.ino.cpp" -o nul
Alternatives for Preferences.h: [Preferences@3.3.0]
ResolveLibrary(Preferences.h)
-> candidates: [Preferences@3.3.0]
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2411/bin/xtensa-esp32-elf-g++" -c "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/cpp_flags" -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_huge_app "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32cam:CPUFreq=240,FlashMode=qio,PartitionScheme=huge_app,FlashFreq=80,DebugLevel=debug,EraseFlash=none\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=4 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/defines" "-IC:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\examples\\Motion_Detection" -iprefix "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/include/" "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/flags/includes" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32/qio_qspi/include" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\cores\\esp32" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32" "-IC:\\Users\\user\\OneDrive - TATI University College\\Documents\\Arduino\\libraries\\EloquentEsp32cam\\src" "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\libraries\\Preferences\\src" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/build_opt.h" "@C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341/file_opts" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_975341\\sketch\\Motion_Detection.ino.cpp" -o nul
Alternatives for dl_image.hpp: []
ResolveLibrary(dl_image.hpp)
-> candidates: []
In file included from C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries\EloquentEsp32cam\examples\Motion_Detection\Motion_Detection.ino:9:
C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries\EloquentEsp32cam\src/eloquent_esp32cam/motion/detection.h:4:10: fatal error: dl_image.hpp: No such file or directory
4 | #include <dl_image.hpp>
| ^~~~~~~~~~~~~~
compilation terminated.
Using library EloquentEsp32cam at version 2.7.15 in folder: C:\Users\user\OneDrive - TATI University College\Documents\Arduino\libraries\EloquentEsp32cam
Using library Preferences at version 3.3.0 in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\libraries\Preferences
exit status 1
Error compiling for board AI Thinker ESP32-CAM.
OK, great. That makes the situation clear.
The dl_image.hpp file was provided by the ESP-DL framework. This framework used to be included in the "esp32" Arduino boards platform. Unfortunately it had to be removed recently:
https://github.com/espressif/arduino-esp32/issues/10881#issuecomment-2599804883
Last version where it is available is Arduino core 3.0.7
https://github.com/espressif/arduino-esp32/issues/10881#issuecomment-2600750258
The face detections and recognition library was changed and no longer supports the chips before ESP32-P4 and the old versions that do support them can not be compiled with the new versions of ESP-IDF, so we had to remove support.
So the sketch will only compile if you are using version 3.0.7 or older of the "esp32" platform. I can see you are using the higher version 3.3.0:
I'll provide instructions you can follow to install the older version of the "esp32" platform:
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Find the "esp32" entry in the list of boards platforms.
- Select "3.0.7" from the drop-down menu in the "esp32" entry.
- Click the "INSTALL" button at the bottom of the entry.
- Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
- Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
- Select the "Preferences: Open Settings (UI)" command from the menu.
ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Settings" tab will open in the Arduino IDE main panel. - Type
arduino.checkForUpdatesin the "Search Settings" field of the "Settings" tab. - Uncheck the box under the "Arduino: Check For Updates" setting.
- Close the Preferences tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries.
You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus.
You can check for new versions of boards platforms and libraries by the following procedure:
- Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
- Select the "Arduino: Update Indexes" command from the menu.
A notification will appear at the bottom right corner of the Arduino IDE window to indicate the progress of downloading the index files which provide Arduino IDE with the information about which versions of platforms and libraries are available. - Wait for the index file download process to finish.
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Select "Updatable" from the "Type" menu in the Boards Manager view.
A list of installed boards platforms for which updates are available will be listed. - Click the "UPDATE" button on the entry for any platform you wish to update.
- Select Tools > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
- Select "Updatable" from the "Type" menu in the Library Manager view.
A list of installed libraries for which updates are available will be listed. - Click the "UPDATE" button on the entry for any library you wish to update.
What do you do when you want to use a 3rd party library?
Which one? I use wiFiManager myself.
As seen in the error message, EloquentEsp32cam



