I am using Arduino IDE version 2.3.4. I am trying to compile a scetch but I get the message "fatal error: esp_camera.h: No such file or directory". I learned that the library should be included in the ESP32 core from espressif, but I am using version 3.0.7 from esp for the boardmanager with a ESP32C3 Dev Module. I am not able to install the library from github as the structure is different than the libraries from arduino. How can I install the library for the esp32 camera?
I was just using esp_camera.h it works just fine.
But I use version 2.0.14 of the espressif core, too many issues with the version 3.0.x cores.
You should never post in the Uncategorize section. It says so in the description of the category. Please be careful where you post in future.
Therefore I have moved your post here.
You might want to look at this How to get the best out of this forum before you proceed any further.
We only know what you tell us, and without knowing what you have, we don't stand a chance.
Thank you very much. I tried it with 2.0.14 and I got rid of the fatal error. But now I have three more errors as esp_camera_init, esp_camera_fb_get, esp_camera_fb_return could not be found. I even got this error when using the example sketch for CameraWebServer. I am really at loss.
All those functions are present on my 2.0.14.
Maybe a question for the cores authors, espresiff.
tested with an ESP-CAM using IDE 2.3.4 ESP board 3.0.7
Tools>Board set to "AI Thinker ESP32-CAM"
example ESP-CAM_CameraWebServer which includes
#include "esp_camera.h"
compiles and loads OK
however, if I set Tools>Board to ESP32C3 Dev Module I get the same error message
fatal error: esp_camera.h: No such file or directory
which camera module do you have? give a link?
Ah, ok. You are completely right. I wanted to use the ESP32-CAM just as the camera on a ESP32 C3 DevKIT02, but I think I should drop it and just use the ESP32-Cam-Module alone...
try the ESP-CAM to make it works alone
how were you planning to connect the ESP_CAM and ESP32C3?
what did you want the ESP32C3 to do?
To connect the OV2640 camera, used on the ESP32CAM, to another ESP32 needs quite a lot of components, regulators etc.
Take a look at the ESP32CAM Schematic for details.
looking on EBAY and found ESP32-S3-WROOM CAM Development Board WiFi BT Module with OV2640 Camera
I will just try it with the ESP-CAM standalone. But it will take a bit. I'll keep you updated. Thank you for the time being!
Thank you! I think I'll just stick with the ESP32-CAM. I am not a pro with regulators and components ![]()
Hello,
I am using:
- ESP32-CAM Model AI Thinker
- Arduino IDE 2.3.4
- CameraWebServer.ino (example available from https://dl.espressif.com/dl/package_esp32_index.json)
In this example the headerfile is #include "esp_camera.h".
In the IDE next to the sketch name CameraWebServer.ino,
there are listed:
- app_httpd.cpp (in this file also #include "esp_camera.h".)
- camera_index.h
- camera_pins.h
- ci.json
Compilation and upload to the ESP32-CAM was sucessfully and the sketch is running well.
Never the less I'd like to have a look into the code but I cannot find the "esp_camera.h".
Can someone help me to find it?
By the way, where can I find the wifi.h which is also #include <Wifi.h>.
After a successful compile, you should be able to right-click on any #include line and select Go to Definition to open the corresponding file.
Hovering over a file's tab will show its full path (if it has been saved).
Another way: the IDE manages two kinds of stuff: boards and libraries. Boards also have their own libraries. Each kind is stored in a separate place
- Boards are in your Arduino15 directory, which depends on your OS
- Libraries are in the
librariessubdirectory of your sketchbook
Both the libraries you mentioned are included with the board. For example on Linux
$ find ~/.arduino15/packages -name WiFi.h
arduino/hardware/renesas_uno/1.2.0/libraries/WiFiS3/src/WiFi.h
m5stack/hardware/esp32/2.1.1/libraries/WiFi/src/WiFi.h
esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFi.h
Hello Kenb4,
man thanks for support.
I followed all of your advices and I searched on my entire harddrive,
but I couln't find neither the Wifi.h nor the esp_camera.
Again, the compilation was errorfree and the SW is running well on the tarket.
Do these files are existinig in your IDE and if so, where?
Probably unrelated to the problem you are having now, but that URL is outdated. Replace it with the one you will find by reading the official installation instructions here:
Only add the "Stable release link". The "Development release link" should only be used if you are contributing to the development of the esp32 platform through beta testing.
Please tell us exactly what happened when you follow the instructions provided by @kenb4. In case they weren't clear to you, I'll provide them in more detail:
- Select File > New Sketch from the Arduino IDE menus.
A new sketch will open in an Arduino IDE window. - Add the following lines of code to the top of the sketch:
#include <esp_camera.h> - Select the board you are using from Arduino IDE's Tools > Board menu.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to finish successfully.
- Right click (Control-click for macOS users) on the
esp_camera.htext in the sketch.
A context menu will open. - Select "Go to Definition" from the menu.
The expected result is that the esp_camera.h file will open in a tab in the Arduino IDE editor panel. Did that happen for you? If not, please provide a detailed description of what did happen.
They are stored under a folder that your operating system hides from you by default.
Dear ptillisch,
your great help and gentle patience is very appreciated.
I followed your instruction step by step and I have got the expected result as you described.
This brings me a big step forward and I have learned a lot.
Again, many thank and Merry Christmas (assuming Christmas fits to you ![]()
You are welcome. I'm glad it is working as expected for you.
If you still want to know where those files are located, hover the mouse pointer over the tab that opens after performing the instructions. After a short delay, a tooltip will appear that shows the full path to that file.
You can do the same technique for WiFi.h and other header files in addition to esp_camera.h.
Regards, Per
Dear Per,
I experienced, with your kind support, that in "WiFi.h" and "esp_camera.h" more libraries and headerfiles are included.
And in these files even more files are included.
Is there a way to list ALL files and their code comprehensively?
My best wishes
Stefan