esp32_cam_webserver:undefined reference

Home Forums esp32 esp32_cam_webserver:undefined reference

Viewing 3 reply threads
  • Author
    Posts
    • #20601
      CLP58
      Participant

        I am getting the following error when compiling esp32_cam_webserver. I don’t know what I’m missing? I am a newbie. Any advice is greatly appreciated!

        C:\Users\yoy\AppData\Local\Temp\arduino_build_333887\sketch\esp32_cam_webserver.ino.cpp.o:(.literal._Z5setupv+0x64): undefined reference to'parseBytes(char const*, char, unsigned char*, int, int)'
        C:\Users\yoy\AppData\Local\Temp\arduino_build_333887\sketch\esp32_cam_webserver.ino.cpp.o: In function 'setup()':
        c:\Users\yoy\Desktop\esp32\esp32_cam_webserver/esp32_cam_webserver.ino:175: undefined reference to 'parseBytes(char const*, char, unsigned char*, int, int)'
        collect2.exe: error: ld returned 1 exit status
      • #20602
        Renzo Mischianti
        Keymaster

          Hi CLP58,
          Try to put that function before the utilization.
          I try to find some time to verify.
          Bye Renzo

        • #20604
          CLP58
          Participant

            Hi Renzo Mischianti
            Thanks for the quick reply!Can you send me a compiled file already? I would like to use it on the web interface of the MKS WIFI. Using the ESP32 CAM camera for viewing the printer.

          • #20607
            Renzo Mischianti
            Keymaster

              Hi CLP58,
              use the project I shared, first read the README and configure your network.

              Download the repository, uncompress and open .ino file with Arduino IDE.

              Select one of these configurations

              you can set wifi manager at startutp to insert wifi intercatly: #define WIFI_MANAGER
              you can set multiple wifi setting station stationList[] = {{"SSID1","passwd1", true},{"SSID2","passwd2", true}};
              if you set falst the dhcp parameter station stationList[] = {{"SSID1","passwd1", false},{"SSID2","passwd2", false}}; and add ip config

              #define ST_IP      192,168,1,41
              #define ST_GATEWAY 192,168,1,1
              #define ST_NETMASK 255,255,255,0
              // One or two DNS servers can be supplied, only the NTP code currently uses them
              #define ST_DNS1 192,168,1,1
              // #define ST_DNS2 8,8,8,8

              you can set the initial resolution of the cam

              #define UXGA  FRAMESIZE_XGA               // UXGA(1600x1200)
              #define SXGA  FRAMESIZE_SVGA               // SXGA(1280x1024)
              #define XGA   FRAMESIZE_VGA               // XGA(1024x768)
              #define SVGA  FRAMESIZE_HVGA               // SVGA(800x600)
              #define VGA   FRAMESIZE_CIF               // VGA(640x480)
              #define CIF   FRAMESIZE_QVGA               // CIF(400x296)
              #define QVGA  FRAMESIZE_240X240               // QVGA(320x240)
              #define HQVGA FRAMESIZE_HQVGA               // HQVGA(240x176)
              #define QQVGA FRAMESIZE_96X96               // QQVGA(160x120)
              
              #define INITIAL_FRAME_SIZE UXGA

              Bye Renzo

          Viewing 3 reply threads
          • You must be logged in to reply to this topic.
          Exit mobile version