esp32-cam-webserver icon indicating copy to clipboard operation
esp32-cam-webserver copied to clipboard

'struct camera_config_t' has no member named 'fb_location'

Open Terbinm opened this issue 2 years ago • 18 comments

I can't pass the compile the code with error: 'struct camera_config_t' has no member named 'fb_location'

Terbinm avatar Sep 16 '22 19:09 Terbinm

The same error here. Arduino 1.8.19 on Windows 11 Intel Thinkpad, AI Thinker Board. Simply edited ssid and pass and saved myconfig.h, got same error.

d3viant avatar Oct 19 '22 06:10 d3viant

Solved by upgrading to Arduino IDE 2.0.

d3viant avatar Oct 19 '22 07:10 d3viant

I came across the same issue. Unfortunately upgrading Arduino IDE to 2.0 did not solve the issue.

image

Strangely enough, the same codebase can be compiled with the PlatformIO command line tools, so I guess this is some configuration issue.

Semmu avatar Oct 25 '22 14:10 Semmu

Same error here Arduino IDE 2.0.1 ESP32 Arduino board 1.0.6

Muplex avatar Oct 29 '22 15:10 Muplex

I try in another PC fresh installation windows, arduino IDE and so on... same resoult

`C:\Users\nicol\OneDrive\Documenti\Arduino\Esperimenti e Progetti\esp32-cam-webserver\esp32-cam-webserver.ino: In function 'void StartCamera()': C:\Users\nicol\OneDrive\Documenti\Arduino\Esperimenti e Progetti\esp32-cam-webserver\esp32-cam-webserver.ino:341:12: error: 'struct camera_config_t' has no member named 'fb_location' config.fb_location = CAMERA_FB_IN_PSRAM; ^ C:\Users\nicol\OneDrive\Documenti\Arduino\Esperimenti e Progetti\esp32-cam-webserver\esp32-cam-webserver.ino:341:26: error: 'CAMERA_FB_IN_PSRAM' was not declared in this scope config.fb_location = CAMERA_FB_IN_PSRAM; ^ C:\Users\nicol\OneDrive\Documenti\Arduino\Esperimenti e Progetti\esp32-cam-webserver\esp32-cam-webserver.ino:343:12: error: 'struct camera_config_t' has no member named 'grab_mode' config.grab_mode = CAMERA_GRAB_LATEST; ^ C:\Users\nicol\OneDrive\Documenti\Arduino\Esperimenti e Progetti\esp32-cam-webserver\esp32-cam-webserver.ino:343:24: error: 'CAMERA_GRAB_LATEST' was not declared in this scope config.grab_mode = CAMERA_GRAB_LATEST; ^ Multiple libraries were found for "WiFi.h" Used: C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi Not used: C:\Users\nicol\OneDrive\Documenti\Arduino\libraries\WiFiEspAT Multiple libraries were found for "ArduinoOTA.h" Used: C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\ArduinoOTA Not used: C:\Users\nicol\OneDrive\Documenti\Arduino\libraries\ArduinoOTA exit status 1

Compilation error: 'struct camera_config_t' has no member named 'fb_location'`

Muplex avatar Nov 01 '22 17:11 Muplex

IIRC, that is the error you get with the old sketch using the latest esp32 core. The fix was to revert the core back to 1.0.6 but I think the latest version of the sketch does not have that error.

sonofcy avatar Nov 01 '22 19:11 sonofcy

IIRC, that is the error you get with the old sketch using the latest esp32 core. The fix was to revert the core back to 1.0.6 but I think the latest version of the sketch does not have that error.

Where we can find sketch lastest version?

Muplex avatar Nov 19 '22 14:11 Muplex

Ver 4 is at https://github.com/easytarget/esp32-cam-webserver

sonofcy avatar Nov 19 '22 15:11 sonofcy

ESP32 boards should be 2.0.5 for Ver 4.

sonofcy avatar Nov 19 '22 15:11 sonofcy

ESP32 boards should be 2.0.5 for Ver 4.

I thin kyou mean 1.0.5 esp32 boards (lastest is 1.0.6)

I try right now to downgrade Esp32 board to 1.0.5 but same resoult same error same lines :(

any ideas?

Muplex avatar Nov 19 '22 15:11 Muplex

I just downloaded the zip again. Rename zio from esp32-cam-webserver-master to esp32-cam-webserver. Now unzip and compile the ino file BUT set errors to default as ALL will fail on some minor errors. I just did it on IDE 1.

sonofcy avatar Nov 19 '22 15:11 sonofcy

NO, latest which is 2.0.5

sonofcy avatar Nov 19 '22 15:11 sonofcy

img

Sorry i'm missing something.

additional board URL is corect ?

http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://dl.espressif.com/dl/package_esp32_index.json

Muplex avatar Nov 19 '22 15:11 Muplex

Not even close, here is mine. If you are not working with PICO then leave off the last one

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json https://arduino.esp8266.com/stable/package_esp8266com_index.json https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

sonofcy avatar Nov 19 '22 15:11 sonofcy

Thank you I solved, the problem was the additional board URL's =)

Muplex avatar Nov 19 '22 16:11 Muplex

I can't pass the compile the code with error: 'struct camera_config_t' has no member named 'fb_location'

Have you solved your problem?

sonofcy avatar Nov 29 '22 20:11 sonofcy

running into the same issue

image

additional board URL's

http://arduino.esp8266.com/stable/package_esp8266com_index.json, https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

installed version image

any clue on what else to try?

briodan avatar Jul 22 '23 04:07 briodan

on a whim i tried the windows store version of the arduino ide which installed a different version

image

which compiled correctly, so i guess an older/different version is what was needed for me, All else is the same.

briodan avatar Jul 24 '23 04:07 briodan