🤖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

    Scheduled Pinned Locked Moved Units
    8 Posts 4 Posters 21.0k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    vikaci @zhouyangwen
                    last edited by

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

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post