Page 1 of 1

How to compile DLib for a ESP32 project?

Posted: Wed Oct 23, 2019 1:35 pm
by riccardo.brue
Hi, I want to use the following library http://dlib.net/ (dlib, version 19.18) in order to use neural networks on the ESP32. But I am facing hard times while trying to compile the library in order to be used in a ESP-IDF project. What I have tried to do is:
- Just extracting the library sources (.h and .cpp) into a folder inside the project (my-project/main/dlib) but it doesn't compile;
- Tried to create a component (it seems that the library is not found);
- Tried to compile the library alone in order to generate a static library (libdlib.a) but it doesn't work (cannot understand how to handle that);

What is the general procedure in order to integrate such library in my ESP-IDF (ESP32) project? What am I missing to do?

Re: How to compile DLib for a ESP32 project?

Posted: Mon Oct 19, 2020 11:46 am
by maneeshkumar
You can add the dlib library in components and then modify this
https://github.com/davisking/dlib/blob/ ... eLists.txt

for the esp32 cmake.

Re: How to compile DLib for a ESP32 project?

Posted: Fri Feb 19, 2021 12:06 pm
by franzhoepfinger
https://github.com/DiplomInformatikerFr ... ib-esp-idf

this is a Sample how to compile it in ESP-IDF with CMAKE.