Adding external libraries in arduino ide

I'm working on a project on esp32cam in which I'm converting an image to base64 for transmission. for this I need to add an external library. I'm currently using Windows 11 and Arduino I.D.E. 2.0.3

i tried adding esp cam header file but it shows me this error

Error: 13 INTERNAL: Library install failed: library not valid. the error occurs when i try to add a zip library of esp32-camera-master in the add .ZIP library

When you added the .zip library, the first error in the IDE, lower-right, says the addition did not succeed. Try to add the .zip again and (look inside the .zip to see that good files exist), or use the Library Manager.

Even if you had successfully installed the ESP32 library, you have "Arduino UNO" selected as the board type so the ESP32 libraries would not be available.

i just opened it again to take the screenshot, the other times i had tried it i selected esp wrover and ai thinker esp32 cam respectively

img_convert_jpeg_to_base64 this is the function im trying to use from the zip file. so i tried add .zip file and this error popped up. (i renamed the file to remove the -master from the end as the library is esp_camera.h

You don't need to download it.
It's already part of the ESP32 core for arduino

1 Like

then why does it show me this error? i tried verifying the sketch and this error showed up

captureimgandconvertitobase64.ino:50:82: error: 'img_convert_jpeg_to_base64' was not declared in this scope
   esp_err_t err = img_convert_jpeg_to_base64(fb->buf, fb->len, &out_buf, &out_len);
                                                                                  ^

exit status 1

Compilation error: 'img_convert_jpeg_to_base64' was not declared in this scope```

so then i realized i need to install the header file but it wasnt directly available on library manager so i downloaded the zip file from github but then that shows the above picture

Have you installed the ESP32 core for Arduino?

https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/getting_started.html

hey. im sorry for the late reply.
so when you said it should be already installed, i searched for esp and to my surprise i actually couldnt find it in the library manager. so i just reinstalled and then everything was fine so thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.