🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [Solved]Error compiling ESP32 Camera Demo

    Units
    4
    8
    17.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vikaci
      last edited by m5-docs

      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);
      ^

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL
        lukasmaximus
        last edited by

        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

        V 1 Reply Last reply Reply Quote 0
        • V
          vikaci @lukasmaximus
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • M
            mschu7
            last edited by mschu7

            Error has it.
            IDF version 8b885fb
            m5stack/esp32-cam-demo 0f8a432

            V 1 Reply Last reply Reply Quote 0
            • V
              vikaci @mschu7
              last edited by vikaci

              @mschu7 should I change to a earlier version of esp-idf.

              V 1 Reply Last reply Reply Quote 0
              • V
                vikaci @vikaci
                last edited by vikaci

                @lukasmaximus
                @mschu7
                Thanks. It works now. Taking a clue from another post, I did,
                git checkout 3b92e85
                on esp-idf

                Then, it compiles without any error. I am able to flash and make it work as a STA.

                1 Reply Last reply Reply Quote 0
                • Z
                  zhouyangwen
                  last edited by zhouyangwen

                  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.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    vikaci @zhouyangwen
                    last edited by

                    @zhouyangwen Thanks. This is works. Now i am abo

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post