I install the Library name esp32-camera tried lasted version and old version 2.0.6
I use Arduino 1.8.18
I unzip the file/extract and put it in at C:\Users\Rocketman\OneDrive\Documents\Arduino\Libraries
but when I compile it: it is invalid....
Hi @Stephen5496.
Please add a reply here to provide a detailed description of what you mean by "it is invalid".
Make sure to include the full and exact text of any error or warning messages you might have encountered.
I moved your topic to an appropriate forum category @Stephen5496.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Hey, I forgot to switch the board before compiling it. but there are new problems coming up.
Arduino: 1.8.18 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"
Invalid library found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\Arduino-master
Invalid library found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\esp32-camera-2.0.6: no headers files (.h) found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\esp32-camera-2.0.6
Invalid library found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\esp32-camera-master: no headers files (.h) found in C:\Users\Rocketman\OneDrive\Documents\Arduino\libraries\esp32-camera-master
exec: "/bin/xtensa-esp32-elf-g++": file does not exist
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
#include <ESP32-Camera.h>
// Replace with your camera model
#define CAMERA_MODEL_AI_THINKER
#include "camera_pins.h"
void setup() {
Serial.begin(115200);
// Initialize the camera
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM;
config.pin_sscb_sda = SIOD_GPIO_NUM;
config.pin_sscb_scl = SIOC_GPIO_NUM;
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.xclk_freq_hz = 20000000;
config.pixel_format = PIXFORMAT_JPEG;
#if defined(CAMERA_MODEL_ESP_EYE)
config.frame_size = FRAMESIZE_UXGA;
config.jpeg_quality = 12;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_M5STACK_PSCamera)
config.frame_size = FRAMESIZE_UXGA;
config.jpeg_quality = 12;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_M5STACK_WIDE)
config.frame_size = FRAMESIZE_UXGA;
config.jpeg_quality = 12;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_AI_THINKER)
config.frame_size = FRAMESIZE_SVGA;
config.jpeg_quality = 10;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_OV2640)
config.frame_size = FRAMESIZE_FXGA;
config.jpeg_quality = 12;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_OV7670)
config.frame_size = FRAMESIZE_VGA;
config.jpeg_quality = 12;
config.fb_count = 1;
#elif defined(CAMERA_MODEL_OV3660)
config.frame_size = FRAMESIZE_CIF;
config.jpeg_quality = 12;
#endif
camera_setup(&config
The first thing I should say is that these "Invalid library found in..." messages are only informational. The IDE is simply telling you that it found something that is not an Arduino library in the folder used to store libraries. These messages are not in any way related to the true problem that is causing the compilation to fail with the "exec: "/bin/xtensa-esp32-elf-g++": file does not exist" message.
The presence of such "invalid libraries" doesn't actually cause any significant problem (it might make compilations take a little longer if there was a large number, but you probably wouldn't notice the impact of only three). Typically these "invalid libraries" are the result of an attempt to manually install something as a library and either doing the installation incorrectly, or the thing not being a library after all. If you tried to use the library in a sketch, it wouldn't work since the IDE wasn't able to recognize the library and in this case the "Invalid library found in..." message could help to understand the reason it wasn't working.
If you don't need to use these libraries, or if you managed to make a successful installation of the libraries in addition to the incorrect installations that cause these messages, then you can safely ignore the messages. On the other hand, they can be annoying or distracting so you might want to remove or correctly reinstall these libraries.
Due to the generic folder name "Arduino", I can't guess what this folder might be. If you can provide more information about it, I would be able to give you instructions for installing it correctly.
esp32-camera is not an Arduino library, so you should not have installed it as an Arduino library. I recommend deleting the esp32-camera-2.0.6 folder.
It is explained in the project readme:
https://github.com/espressif/esp32-camera?tab=readme-ov-file#using-with-arduino
If you are using the arduino-esp32 core in Arduino IDE, no installation is needed! You can use esp32-camera right away.
Another fruitless attempt to use esp32-camera as an Arduino library. I recommend deleting the esp32-camera-master folder.
This error can be caused by something going wrong during a Boards Manager installation. That can often be fixed by removing and then re-installing the broken boards platform via Boards Manager.
Please try this:
- Select Tools > Board > Boards Manager... from the Arduino IDE menus.
The "Boards Manager" dialog will open. - Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
- Scroll down through the list of boards platforms until you find the "esp32" entry. Click on it.
Some buttons will appear on the entry. - Click the "Remove" button on the "esp32" entry.
- Wait for the removal to finish.
- Click the "Install" button on the "esp32" entry.
- Wait for the installation to finish.
- Click the "Close" button on the "Boards Manager" dialog.
The "Boards Manager" dialog will close.
Now try compiling or uploading to your board again. Hopefully the error will no longer occur.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.