You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to upload the simple webcam example to my esp32 AI Thinker cam board but got a lot of errors from the library while compiling. The simple website example worked on my board. I didnt change anything except my credentials. Anyone might know what to do?
lib/esp32cam-main/src/internal/resolution.cpp:` In member function 'int esp32cam::Resolution::getWidth() const':
lib/esp32cam-main/src/internal/resolution.cpp:55:36: error: request for member 'width' in 'resolution[((int)((const esp32cam::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'
return ::resolution[m_frameSize].width;
^
lib/esp32cam-main/src/internal/resolution.cpp: In member function 'int esp32cam::Resolution::getHeight() const':
lib/esp32cam-main/src/internal/resolution.cpp:63:36: error: request for member 'height' in 'resolution[((int)((const esp32cam::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'
return ::resolution[m_frameSize].height;
^
lib/esp32cam-main/src/internal/config.cpp: In constructor 'esp32cam::Config::Config()':
lib/esp32cam-main/src/internal/config.cpp:28:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'grab_mode'
m_cfg->grab_mode = CAMERA_GRAB_LATEST;
^
lib/esp32cam-main/src/internal/config.cpp:28:22: error: 'CAMERA_GRAB_LATEST' was not declared in this scope
m_cfg->grab_mode = CAMERA_GRAB_LATEST;
^
lib/esp32cam-main/src/internal/config.cpp: In member function 'esp32cam::Config& esp32cam::Config::setPins(const esp32cam::Pins&)':
lib/esp32cam-main/src/internal/config.cpp:40:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'pin_sccb_sda'
m_cfg->pin_sccb_sda = pins.SDA;
^
lib/esp32cam-main/src/internal/config.cpp:41:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'pin_sccb_scl'
m_cfg->pin_sccb_scl = pins.SCL;
^
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\internal\resolution.cpp.o] Error 1
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\internal\config.cpp.o] Error 1
lib/esp32cam-main/src/esp32cam.cpp: In member function 'esp32cam::ResolutionList esp32cam::CameraClass::listResolutions() const':
lib/esp32cam-main/src/esp32cam.cpp:27:3: error: 'camera_sensor_info_t' was not declared in this scope
camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
^
lib/esp32cam-main/src/esp32cam.cpp:27:25: error: 'info' was not declared in this scope
camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
^
lib/esp32cam-main/src/esp32cam.cpp:27: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);
^
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\esp32cam.cpp.o] Error 1
src/main.cpp: In function 'void handleMjpeg()':
src/main.cpp:25:58: warning: 'StreamMjpegConfig' is deprecated: use esp32cam::MjpegConfig [-Wdeprecated-declarations]
static struct esp32cam::CameraClass::StreamMjpegConfig mjcfg;
^
In file included from src/main.cpp:1:0:
lib/esp32cam-main/src/esp32cam.h:50:54: note: declared here
struct [[deprecated("use esp32cam::MjpegConfig")]] StreamMjpegConfig : MjpegConfig{};
^
The text was updated successfully, but these errors were encountered:
I tried to upload the simple webcam example to my esp32 AI Thinker cam board but got a lot of errors from the library while compiling. The simple website example worked on my board. I didnt change anything except my credentials. Anyone might know what to do?
lib/esp32cam-main/src/internal/resolution.cpp:` In member function 'int esp32cam::Resolution::getWidth() const':
lib/esp32cam-main/src/internal/resolution.cpp:55:36: error: request for member 'width' in 'resolution[((int)((const esp32cam::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'
return ::resolution[m_frameSize].width;
^
lib/esp32cam-main/src/internal/resolution.cpp: In member function 'int esp32cam::Resolution::getHeight() const':
lib/esp32cam-main/src/internal/resolution.cpp:63:36: error: request for member 'height' in 'resolution[((int)((const esp32cam::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'
return ::resolution[m_frameSize].height;
^
lib/esp32cam-main/src/internal/config.cpp: In constructor 'esp32cam::Config::Config()':
lib/esp32cam-main/src/internal/config.cpp:28:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'grab_mode'
m_cfg->grab_mode = CAMERA_GRAB_LATEST;
^
lib/esp32cam-main/src/internal/config.cpp:28:22: error: 'CAMERA_GRAB_LATEST' was not declared in this scope
m_cfg->grab_mode = CAMERA_GRAB_LATEST;
^
lib/esp32cam-main/src/internal/config.cpp: In member function 'esp32cam::Config& esp32cam::Config::setPins(const esp32cam::Pins&)':
lib/esp32cam-main/src/internal/config.cpp:40:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'pin_sccb_sda'
m_cfg->pin_sccb_sda = pins.SDA;
^
lib/esp32cam-main/src/internal/config.cpp:41:10: error: 'class esp32cam::Config::CameraConfigT' has no member named 'pin_sccb_scl'
m_cfg->pin_sccb_scl = pins.SCL;
^
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\internal\resolution.cpp.o] Error 1
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\internal\config.cpp.o] Error 1
lib/esp32cam-main/src/esp32cam.cpp: In member function 'esp32cam::ResolutionList esp32cam::CameraClass::listResolutions() const':
lib/esp32cam-main/src/esp32cam.cpp:27:3: error: 'camera_sensor_info_t' was not declared in this scope
camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
^
lib/esp32cam-main/src/esp32cam.cpp:27:25: error: 'info' was not declared in this scope
camera_sensor_info_t* info = esp_camera_sensor_get_info(&sensor->id);
^
lib/esp32cam-main/src/esp32cam.cpp:27: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);
^
*** [.pio\build\esp32cam\lib2b6\esp32cam-main\esp32cam.cpp.o] Error 1
src/main.cpp: In function 'void handleMjpeg()':
src/main.cpp:25:58: warning: 'StreamMjpegConfig' is deprecated: use esp32cam::MjpegConfig [-Wdeprecated-declarations]
static struct esp32cam::CameraClass::StreamMjpegConfig mjcfg;
^
In file included from src/main.cpp:1:0:
lib/esp32cam-main/src/esp32cam.h:50:54: note: declared here
struct [[deprecated("use esp32cam::MjpegConfig")]] StreamMjpegConfig : MjpegConfig{};
^
The text was updated successfully, but these errors were encountered: