yoursunny / esp32cam

OV2640 camera on ESP32-CAM, Arduino library
https://esp32cam.yoursunny.dev
ISC License
473 stars 168 forks source link

'camera_sensor_info_t' was not declared in this scope #37

Closed rezwanMahadi closed 1 year ago

rezwanMahadi commented 1 year ago

What would be the problem? @yoursunny

Arduino: 1.8.15 (Windows 10), Board: "ESP32 Wrover Module, Huge APP (3MB No OTA/1MB SPIFFS), QIO, 80MHz, 921600, None"

C:\Users\User\Documents\Arduino\libraries\esp32cam-main\src\esp32cam.cpp: In member function 'esp32cam::ResolutionList esp32cam::CameraClass::listResolutions() const':

C:\Users\User\Documents\Arduino\libraries\esp32cam-main\src\esp32cam.cpp:30:3: error: 'camera_sensor_info_t' was not declared in this scope
   camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);

   ^
C:\Users\User\Documents\Arduino\libraries\esp32cam-main\src\esp32cam.cpp:30:25: error: 'info' was not declared in this scope
   camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
                         ^
C:\Users\User\Documents\Arduino\libraries\esp32cam-main\src\esp32cam.cpp:30:70: error: 'esp_camera_sensor_get_info' was not declared in this scope
   camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
                                                                      ^
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

 Not used: D:\arduino-1.8.15-windows\arduino-1.8.15\libraries\WiFi

exit status 1

Error compiling for board ESP32 Wrover Module.
yoursunny commented 1 year ago

See #36, which is exactly the same issue, and pinned on top of the issue list.

rezwanMahadi commented 1 year ago

Thanks, for your suggestion. It worked!

On Sun, 2 Oct 2022, 9:30 am Junxiao Shi, @.***> wrote:

Closed #37 https://github.com/yoursunny/esp32cam/issues/37 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/yoursunny/esp32cam/issues/37#event-7501375550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUORDSDGVLQX4VW2J7SCEU3WBD6VBANCNFSM6AAAAAAQ2W3FHY . You are receiving this because you authored the thread.Message ID: @.***>