Skip to content

dl_lib_free() and  #16

Open
Open

Description

@sudojobs

dl_lib_free not found, and other compilation issue , please let me know esp32 lib and arduino version for successful compilation of this code

Activity

  1. sudojobs commented on Jul 12, 2021

    @sudojobs
    Author

    Arduino: 1.8.7 (Windows 10), Board: "ESP32 Wrover Module, Huge APP (3MB No OTA/1MB SPIFFS), QIO, 80MHz, 921600, None"

    sketch_jul12b:413:23: error: variable or field 'rgb_print' declared void

    static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){

                       ^
    

    sketch_jul12b:413:23: error: 'dl_matrix3du_t' was not declared in this scope

    sketch_jul12b:413:39: error: 'image_matrix' was not declared in this scope

    static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){

                                       ^
    

    sketch_jul12b:413:62: error: expected primary-expression before 'color'

    static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){

                                                              ^
    

    sketch_jul12b:413:69: error: expected primary-expression before 'const'

    static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){

                                                                     ^
    

    sketch_jul12b:424:23: error: 'dl_matrix3du_t' was not declared in this scope

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                       ^
    

    sketch_jul12b:424:39: error: 'image_matrix' was not declared in this scope

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                       ^
    

    sketch_jul12b:424:62: error: expected primary-expression before 'color'

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                                              ^
    

    sketch_jul12b:424:69: error: expected primary-expression before 'const'

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                                                     ^
    

    sketch_jul12b:424:89: error: expected primary-expression before '...' token

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                                                                         ^
    

    sketch_jul12b:424:92: error: expression list treated as compound expression in initializer [-fpermissive]

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                                                                            ^
    

    sketch_jul12b:450:29: error: variable or field 'draw_face_boxes' declared void

    static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){

                             ^
    

    sketch_jul12b:450:29: error: 'dl_matrix3du_t' was not declared in this scope

    sketch_jul12b:450:45: error: 'image_matrix' was not declared in this scope

    static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){

                                             ^
    

    sketch_jul12b:450:59: error: 'box_array_t' was not declared in this scope

    static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){

                                                           ^
    

    sketch_jul12b:450:72: error: 'boxes' was not declared in this scope

    static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){

                                                                        ^
    

    sketch_jul12b:450:79: error: expected primary-expression before 'int'

    static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){

                                                                               ^
    

    sketch_jul12b:526:33: error: 'dl_matrix3du_t' was not declared in this scope

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                 ^
    

    sketch_jul12b:526:49: error: 'image_matrix' was not declared in this scope

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                                 ^
    

    sketch_jul12b:526:63: error: 'box_array_t' was not declared in this scope

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                                               ^
    

    sketch_jul12b:526:76: error: 'net_boxes' was not declared in this scope

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                                                            ^
    

    sketch_jul12b:526:85: error: expression list treated as compound expression in initializer [-fpermissive]

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                                                                     ^
    

    sketch_jul12b:593:34: error: 'httpd_req_t' was not declared in this scope

    static esp_err_t capture_handler(httpd_req_t *req){

                                  ^
    

    sketch_jul12b:593:47: error: 'req' was not declared in this scope

    static esp_err_t capture_handler(httpd_req_t *req){

                                               ^
    

    sketch_jul12b:683:33: error: 'httpd_req_t' was not declared in this scope

    static esp_err_t stream_handler(httpd_req_t *req){

                                 ^
    

    sketch_jul12b:683:46: error: 'req' was not declared in this scope

    static esp_err_t stream_handler(httpd_req_t *req){

                                              ^
    

    sketch_jul12b:837:30: error: 'httpd_req_t' was not declared in this scope

    static esp_err_t cmd_handler(httpd_req_t *req){

                              ^
    

    sketch_jul12b:837:43: error: 'req' was not declared in this scope

    static esp_err_t cmd_handler(httpd_req_t *req){

                                           ^
    

    sketch_jul12b:969:33: error: 'httpd_req_t' was not declared in this scope

    static esp_err_t status_handler(httpd_req_t *req){

                                 ^
    

    sketch_jul12b:969:46: error: 'req' was not declared in this scope

    static esp_err_t status_handler(httpd_req_t *req){

                                              ^
    

    sketch_jul12b:1583:32: error: 'httpd_req_t' was not declared in this scope

    static esp_err_t index_handler(httpd_req_t *req){

                                ^
    

    sketch_jul12b:1583:45: error: 'req' was not declared in this scope

    static esp_err_t index_handler(httpd_req_t *req){

                                             ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'int rgb_printf(dl_matrix3du_t*, uint32_t, const char*, ...)':

    sketch_jul12b:424:92: error: 'int rgb_printf(dl_matrix3du_t*, uint32_t, const char*, ...)' redeclared as different kind of symbol

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

                                                                                            ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:424:12: note: previous declaration 'int rgb_printf'

    static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){

            ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'void faceRecognition()':

    sketch_jul12b:515:51: error: 'run_face_recognition' cannot be used as a function

       run_face_recognition(image_matrix, net_boxes);  //執行人臉辨識
    
                                                   ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'int run_face_recognition(dl_matrix3du_t*, box_array_t*)':

    sketch_jul12b:526:85: error: 'int run_face_recognition(dl_matrix3du_t*, box_array_t*)' redeclared as different kind of symbol

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

                                                                                     ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:526:12: note: previous declaration 'int run_face_recognition'

    static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){

            ^
    

    sketch_jul12b:544:129: error: 'rgb_printf' cannot be used as a function

             rgb_printf(image_matrix, FACE_COLOR_CYAN, "ID[%u] Sample[%u]", id_list.tail, ENROLL_CONFIRM_TIMES - left_sample_face);
    
                                                                                                                                 ^
    

    sketch_jul12b:557:124: error: 'rgb_printf' cannot be used as a function

                   rgb_printf(image_matrix, FACE_COLOR_GREEN, "[%u] %s", matched_id, recognize_face_matched_name[matched_id]);
    
                                                                                                                            ^
    

    sketch_jul12b:560:88: error: 'rgb_printf' cannot be used as a function

                   rgb_printf(image_matrix, FACE_COLOR_GREEN, "[%u] No Name", matched_id);
    
                                                                                        ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'esp_err_t capture_handler(httpd_req_t*)':

    sketch_jul12b:593:50: error: 'esp_err_t capture_handler(httpd_req_t*)' redeclared as different kind of symbol

    static esp_err_t capture_handler(httpd_req_t *req){

                                                  ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:593:18: note: previous declaration 'esp_err_t capture_handler'

    static esp_err_t capture_handler(httpd_req_t *req){

                  ^
    

    sketch_jul12b:659:67: error: 'run_face_recognition' cannot be used as a function

             face_id = run_face_recognition(image_matrix, net_boxes);  //執行人臉辨識
    
                                                                   ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'esp_err_t stream_handler(httpd_req_t*)':

    sketch_jul12b:683:49: error: 'esp_err_t stream_handler(httpd_req_t*)' redeclared as different kind of symbol

    static esp_err_t stream_handler(httpd_req_t *req){

                                                 ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:683:18: note: previous declaration 'esp_err_t stream_handler'

    static esp_err_t stream_handler(httpd_req_t *req){

                  ^
    

    sketch_jul12b:762:91: error: 'run_face_recognition' cannot be used as a function

                                     face_id = run_face_recognition(image_matrix, net_boxes);  //執行人臉辨識
    
                                                                                           ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'esp_err_t cmd_handler(httpd_req_t*)':

    sketch_jul12b:837:46: error: 'esp_err_t cmd_handler(httpd_req_t*)' redeclared as different kind of symbol

    static esp_err_t cmd_handler(httpd_req_t *req){

                                              ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:837:18: note: previous declaration 'esp_err_t cmd_handler'

    static esp_err_t cmd_handler(httpd_req_t *req){

                  ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'esp_err_t status_handler(httpd_req_t*)':

    sketch_jul12b:969:49: error: 'esp_err_t status_handler(httpd_req_t*)' redeclared as different kind of symbol

    static esp_err_t status_handler(httpd_req_t *req){

                                                 ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:969:18: note: previous declaration 'esp_err_t status_handler'

    static esp_err_t status_handler(httpd_req_t *req){

                  ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'esp_err_t index_handler(httpd_req_t*)':

    sketch_jul12b:1583:48: error: 'esp_err_t index_handler(httpd_req_t*)' redeclared as different kind of symbol

    static esp_err_t index_handler(httpd_req_t *req){

                                                ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino:1583:18: note: previous declaration 'esp_err_t index_handler'

    static esp_err_t index_handler(httpd_req_t *req){

                  ^
    

    C:\Users\Shobhit\Documents\Arduino\sketch_jul12b\sketch_jul12b.ino: In function 'void startCameraServer()':

    sketch_jul12b:1599:5: error: invalid conversion from 'esp_err_t {aka int}' to 'esp_err_t ()(httpd_req_t) {aka int ()(httpd_req)}' [-fpermissive]

     };
    
     ^
    

    sketch_jul12b:1606:5: error: invalid conversion from 'esp_err_t {aka int}' to 'esp_err_t ()(httpd_req_t) {aka int ()(httpd_req)}' [-fpermissive]

     };
    
     ^
    

    sketch_jul12b:1613:5: error: invalid conversion from 'esp_err_t {aka int}' to 'esp_err_t ()(httpd_req_t) {aka int ()(httpd_req)}' [-fpermissive]

     };
    
     ^
    

    sketch_jul12b:1620:5: error: invalid conversion from 'esp_err_t {aka int}' to 'esp_err_t ()(httpd_req_t) {aka int ()(httpd_req)}' [-fpermissive]

     };
    
     ^
    

    sketch_jul12b:1627:5: error: invalid conversion from 'esp_err_t {aka int}' to 'esp_err_t ()(httpd_req_t) {aka int ()(httpd_req)}' [-fpermissive]

     };
    
     ^
    

    exit status 1
    variable or field 'rgb_print' declared void

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  2. fustyles commented on Jul 16, 2021

    @fustyles
    Owner

    You need to update the ESP32 Core for Arduino IDE to version 1.0.6 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions