Arduino Forum

Using Arduino => Programming Questions => Topic started by: m4u_hoahoctro on Sep 22, 2019, 05:58 pm

Title: dl_lib.h missing
Post by: m4u_hoahoctro on Sep 22, 2019, 05:58 pm
Im compiling a customized sketch for ESP32 Cam, but the IDE shows error: dl_lib.h: No such file or directory found

I have searched but havent had the guide to fix it, please help. Thanks :D

I used both these sketch and they all show the dl_lib missing error:

https://github.com/gumslone/ESP32-CAM-RC-CAR (https://github.com/gumslone/ESP32-CAM-RC-CAR)

https://github.com/PepeTheFroggie/ESP32CAM_RCTANK (https://github.com/PepeTheFroggie/ESP32CAM_RCTANK)
Title: Re: dl_lib.h missing
Post by: (deleted) on Sep 22, 2019, 06:04 pm
(deleted)
Title: Re: dl_lib.h missing
Post by: zancos on Sep 29, 2019, 11:32 am
New ESP32 Arduino version (v 1.03) remove this file "dl_lib.h" (and some others). Depending the sketch, probabily you can just remove this line because in the examples I have been used this library is beeing included but no method or function from this files is used.

If this solution does not work for you, let me know and I will investigate the actual sketch.
Title: Re: dl_lib.h missing
Post by: jash_sheth on Apr 24, 2020, 03:23 pm
Hi.
I tried commenting the lib.....i got the following errors
Code: [Select]
C:\Users\VAIO\AppData\Local\Temp\arduino_build_606271\sketch\app_httpd.cpp: In function 'esp_err_t capture_handler(httpd_req_t*)':

app_httpd.cpp:75:5: error: 'dl_matrix3du_t' was not declared in this scope

     dl_matrix3du_t *image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);

     ^

app_httpd.cpp:75:21: error: 'image_matrix' was not declared in this scope

     dl_matrix3du_t *image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);

                     ^

app_httpd.cpp:75:82: error: 'dl_matrix3du_alloc' was not declared in this scope

     dl_matrix3du_t *image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);

                                                                                  ^

app_httpd.cpp:91:39: error: 'dl_matrix3du_free' was not declared in this scope

         dl_matrix3du_free(image_matrix);

                                       ^

app_httpd.cpp:99:35: error: 'dl_matrix3du_free' was not declared in this scope

     dl_matrix3du_free(image_matrix);

                                   ^

C:\Users\VAIO\AppData\Local\Temp\arduino_build_606271\sketch\app_httpd.cpp: In function 'esp_err_t stream_handler(httpd_req_t*)':

app_httpd.cpp:115:5: error: 'dl_matrix3du_t' was not declared in this scope

     dl_matrix3du_t *image_matrix = NULL;

     ^

app_httpd.cpp:115:21: error: 'image_matrix' was not declared in this scope

     dl_matrix3du_t *image_matrix = NULL;

                     ^

Multiple libraries were found for "WiFi.h"
 Used: C:\Users\VAIO\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 1.0 in folder: C:\Users\VAIO\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
exit status 1
'dl_matrix3du_t' was not declared in this scope
Title: Re: dl_lib.h missing
Post by: sancho_sk on May 27, 2020, 07:28 pm
I know it's a bit too late to answer, but the way I fixed this was to downgrade to ESP32 v 1.0.2
Then, I also needed to modify default python interpreter - the uploader does not work with default python2.7, so I needed to do
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

Afterwards, I was able to compile and upload the camera sketch.