How to compile DLib for a ESP32 project?

riccardo.brue
Posts: 10
Joined: Fri Jun 21, 2019 1:49 pm

How to compile DLib for a ESP32 project?

Postby riccardo.brue » Wed Oct 23, 2019 1:35 pm

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?

maneeshkumar
Posts: 1
Joined: Mon Oct 19, 2020 11:31 am

Re: How to compile DLib for a ESP32 project?

Postby maneeshkumar » Mon Oct 19, 2020 11:46 am

You can add the dlib library in components and then modify this
https://github.com/davisking/dlib/blob/ ... eLists.txt

for the esp32 cmake.

franzhoepfinger
Posts: 21
Joined: Wed Mar 04, 2020 7:14 pm

Re: How to compile DLib for a ESP32 project?

Postby franzhoepfinger » Fri Feb 19, 2021 12:06 pm

https://github.com/DiplomInformatikerFr ... ib-esp-idf

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

Who is online

Users browsing this forum: Google [Bot] and 203 guests