esp32-camera-series icon indicating copy to clipboard operation
esp32-camera-series copied to clipboard

Problem with: undefined reference to `startCameraServer()

Open andresgs375 opened this issue 5 years ago • 8 comments

Hello: I'm having troubles with this esp32-camera-series program. ESP32 Wrover module selected, Huge APP (3MB No OTA) selected, #include <Adafruit_Sensor.h line commented. I am using the TTGO T-Camera ESP32 WROVER & PSRAM Camera Module ESP32-WROVER-B OV2640 Camera Module 0.96 OLED The error is: sketch\esp32-camera-series.ino.cpp.o: In function `setup()':

C:\Users\Andres\Documents\MiArduino\esp32-camera-series\esp32-camera-series/esp32-camera-series.ino:342: undefined reference to `startCameraServer()' I know there was a past issue with the same problem but the solution was refered to esp32-camera-bme280 sketch.I hope you can help, thanks in advance.

andresgs375 avatar May 03 '19 20:05 andresgs375

Problem solved, it was the same problem as the other issue, the sketch was moved out of the same folder and the arduino IDE was opening only one tab of the three.

andresgs375 avatar May 05 '19 01:05 andresgs375

bonjour quand je compile arduino me répond Erreur de compilation pour la carte ESP32 Wrover Module que puis je faire ?

voir64 avatar Jun 09 '19 16:06 voir64

@andresgs375 Can you please explain what exactly you have done to solve the problem, ploease? I am using the ESP32-CAM board and get the same error. I hope withyour description I can understand first what exactly is wrong and then fix it. My error message: .pio\build\esp32cam\src\main.cpp.o:(.literal._Z5setupv+0x38): undefined reference to startCameraServer()' .pio\build\esp32cam\src\main.cpp.o: In function setup()': C:\Users\Uli\Documents\PlatformIO\Projects\ESP32_CAM_Test1/src/main.cpp:98: undefined reference to `startCameraServer()' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32cam\firmware.elf] Error 1

uliatgithub avatar Jun 22 '20 16:06 uliatgithub

I found the problem as well. The app_httpd.cpp must be in the same directory as the main.cpp file. In my case: C:\Users\Uli\Documents\PlatformIO\Projects\ESP32_CAM_Test1\src.

uliatgithub avatar Jun 23 '20 14:06 uliatgithub

So i was facing the same issue. but not sure what was meant above. so after several i realized what ^this person means that all the files mentioned in the path https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer needs too be downloaded into the same library folder where your sketch is present

shariq-azim avatar Jul 30 '20 14:07 shariq-azim

Hi, i face an issue with the 'startcameraserver', i'm using the ESP32 CAM that linked with Blynk server with the message : sketch\Door_Lock__V.3.ino.cpp.o:(.literal._Z5setupv+0x64): undefined reference to `startCameraServer()'

MuhammadAjwad avatar Jan 03 '22 09:01 MuhammadAjwad

I try to closed all the IDE tabs and restart my IDE software again but it didn't work, are there any way to solve this issue?

MuhammadAjwad avatar Jan 03 '22 09:01 MuhammadAjwad