Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'struct camera_config_t' has no member named 'fb_location' #269

Open
Terbinm opened this issue Sep 16, 2022 · 19 comments
Open

'struct camera_config_t' has no member named 'fb_location' #269

Terbinm opened this issue Sep 16, 2022 · 19 comments

Comments

@Terbinm
Copy link

Terbinm commented Sep 16, 2022

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

@d3viant
Copy link

d3viant commented Oct 19, 2022

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
Copy link

d3viant commented Oct 19, 2022

Solved by upgrading to Arduino IDE 2.0.

@Semmu
Copy link

Semmu commented Oct 25, 2022

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.

@Muplex
Copy link

Muplex commented Oct 29, 2022

Same error here
Arduino IDE 2.0.1
ESP32 Arduino board 1.0.6

@Muplex
Copy link

Muplex commented Nov 1, 2022

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'`

@sonofcy
Copy link

sonofcy commented Nov 1, 2022

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.

@Muplex
Copy link

Muplex commented Nov 19, 2022

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?

@sonofcy
Copy link

sonofcy commented Nov 19, 2022

@sonofcy
Copy link

sonofcy commented Nov 19, 2022

ESP32 boards should be 2.0.5 for Ver 4.

@Muplex
Copy link

Muplex commented Nov 19, 2022

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?

@sonofcy
Copy link

sonofcy commented Nov 19, 2022

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
Copy link

sonofcy commented Nov 19, 2022

NO, latest which is 2.0.5

@Muplex
Copy link

Muplex commented Nov 19, 2022

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

@sonofcy
Copy link

sonofcy commented Nov 19, 2022

@Muplex
Copy link

Muplex commented Nov 19, 2022

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

@sonofcy
Copy link

sonofcy commented Nov 29, 2022

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?

@briodan
Copy link

briodan commented Jul 22, 2023

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
Copy link

briodan commented Jul 24, 2023

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.

@easytarget
Copy link
Owner

Some good info here; I'm also not closing this yet since I want to capture this as I archive the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants