yoursunny / esp32cam

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

Wificam program error #32

Closed muchittt closed 2 years ago

muchittt commented 2 years ago

excuse me, i have problem related to library in link (https://github.com/yoursunny/esp32cam/commit/e27c0de2d2b2b793fb65100613d1107ae63cf75f)

error =
C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-e27c0de2d2b2b793fb65100613d1107ae63cf75f\src\internal\resolution.cpp: In member function 'int esp32cam::Resolution::getWidth() const':

C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-e27c0de2d2b2b793fb65100613d1107ae63cf75f\src\internal\resolution.cpp:19:36: error: request for member 'width' in 'camresolution[((int)((const esp)32 ::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'

   return ::resolution[m_frameSize].width;

                                    ^

C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-e27c0de2d2b2b793fb65100613d1107ae63cf75f\src\internal\resolution.cpp: In member function 'int esp32cam::Resolution::getHeight() const':

C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-e27c0de2d2b2b793fb65100613d1107ae63cf75f\src\internal\resolution.cpp:28:36: error: request for member 'height' in 'resolution[((int)((const esp)((const esp) ::Resolution*)this)->esp32cam::Resolution::m_frameSize)]', which is of non-class type 'const int [2]'

   return ::resolution[m_frameSize].height;
muchittt commented 2 years ago

resolution.cpp problem, how to solve it?

yoursunny commented 2 years ago

Upgrade both arduino-esp32 and esp32cam to the latest version.

muchittt commented 2 years ago

please, share the link esp32cam sir. Thank you in advance

muchittt commented 2 years ago

ok sir i have upgraded to the latest version. (https://github.com/yoursunny/esp32cam)

error =
ResolveLibrary(uri/UriBraces.h)handlers.cpp:3:27: fatal error: uri/UriBraces.h: No such file or directory

   -> candidates: []
compilation terminated.

Using library esp32cam-e27c0de2d2b2b793fb65100613d1107ae63cf75f at version 0.0.20220215 in folder: C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-e27c0de2d2b2b793fbae6563cf753df11073
Using library WebServer at version 1.0 in folder: C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer
Using library WiFi at version 1.0 in folder: C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
exit status 1
uri/UriBraces.h: No such file or directory

library #include <uri/UriBraces.h> can't be read what is the solution?

yoursunny commented 2 years ago

Latest esp32cam is b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9 ; you have e27c0de2d2b2b793fb65100613d1107ae63cf75f. Latest arduino-esp32 is 2.0.3 ; you have 1.0.4.

Since my library hooks into arduino-esp32 internals, it's quite picky on versions.

muchittt commented 2 years ago

done (Latest esp32cam is b20ffa9 ; you have e27c0de.) sorry sir, (Latest arduino-esp32 is 2.0.3 ; you have 1.0.4.) is this for library or board? I've upgraded the board in Arduino IDE only up to 1.0.6

and error

C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9\src\esp32cam.cpp: In member function 'esp32cam::ResolutionList esp32cam::'CasomeraClass:()

C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9\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\ASUS PC\Documents\Arduino\libraries\esp32cam-b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9\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\ASUS PC\Documents\Arduino\libraries\esp32cam-b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9\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);

                                                                      ^

Using library esp32cam-b20ffa9ad2052e22355d4b7096166f0d5bc6d6f9 at version 0.0.20220215 in folder: C:\Users\ASUS PC\Documents\Arduino\libraries\esp32cam-b20ffa9ad2052e22355d4d6f5091c6fd4b70961c6d2052
Using library WebServer at version 1.0 in folder: C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WebServer
Using library WiFi at version 1.0 in folder: C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
Using library FS at version 1.0 in folder: C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\FS
exit status 1
Compiling error for the ESP32 Wrover Module board.
yoursunny commented 2 years ago

Latest arduino-esp32 is 2.0.3 ; you have 1.0.6.

muchittt commented 2 years ago

sorry sir, library or board? I have upgraded the board in Arduino IDE only up to 1.0.6

yoursunny commented 2 years ago

Upgrade the board to 2.0.3.

muchittt commented 2 years ago

error like this sir

C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi\src\WiFiGeneric.cpp: In static member function 'static bool WiFiGenericClass::setDualAntennaConfig(uint8_t, uint8_t, wifi_rx_ant_t, wifi_tx_ant_t)':

C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi\src\WiFiGeneric.cpp:1265:5: sorry, unimplemented: non-trivial designated initializers not supported

     };

     ^

C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi\src\WiFiGeneric.cpp:1265:5: sorry, unimplemented: non-trivial designated initializers not supported

C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi\src\WiFiGeneric.cpp:1265:5: sorry, unimplemented: non-trivial designated initializers not supported
yoursunny commented 2 years ago

C:\Users\ASUS PC\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++

The compiler that comes with arduino-esp32 2.0.3 should be gcc8_4_0-esp-2021r2-patch3. You have gcc 5.2.0. You didn't install the board correctly.

Delete the old version completedly (backup then delete C:\Users\ASUS PC\AppData\Local\Arduino15 folder), and install again.

muchittt commented 2 years ago

how to reinstall sir? any tutorials? sorry i'm confused

muchittt commented 2 years ago

"done compiling" in preferences must include (https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json) previously included (https://dl.espressif.com/dl/package_esp32_index.json) so only last update 1.0.6 thank you very much sir, God bless you