[Solved]Error compiling ESP32 Camera Demo
-
I bought a M5Stack ESP32 Camera. I am happy, it worked out of the box with the preloaded firmware. I wanted to change from AP to STA mode. While compiling the demo I get the following error. Can any one help.
CC build/main/app_main.o
/home/partha/esp32-cam-demo/main/app_main.c:56:34: error: unknown type name 'http_context_t'
static void handle_grayscale_pgm(http_context_t http_ctx, void* ctx);
^ -
Hi Vikaci would you mind showing us the code you used and which IDE you used to program the camera, the more information we have the better we can help you
Thanks
-
@lukasmaximus Tried the sample code given in https://github.com/m5stack/esp32-cam-demo as it is. Only change I did was from AP to STA in
make menuconfig
. -
Error has it.
IDF version 8b885fb
m5stack/esp32-cam-demo 0f8a432 -
@mschu7 should I change to a earlier version of esp-idf.
-
@lukasmaximus
@mschu7
Thanks. It works now. Taking a clue from another post, I did,
git checkout 3b92e85
on esp-idfThen, it compiles without any error. I am able to flash and make it work as a STA.
-
because ,you don't have the esp32-http-server component and in the file .gitmodules components path name is wrong. so we can goto the directory ./component , and run "git clone https://github.com/igrr/esp32-http-server.git" to download this component , and you will fix it.
-
@zhouyangwen Thanks. This is works. Now i am abo