My name is Toan. I'm trying to do something cool with my iMX6UL-EVK boards. In details, I'm trying to install dlib libraries for image processing. Purpose I got you to install it
about 10 hours or more in: Running setup.py install for dlib \
and result is ERROR
$ pip3 install dlib
I also tried:
$ git clone https://github.com/davisking/dlib.git
$ cd dlib
$ python setup.py install
Do we have another way to install it? Or how to compile and build this package on host machine while execute bitbake function and output is an image Linux with dlib have been installed ?
Note: I installed python3, pip3, opencv, gtk3 +, X11
Thank you so much,
Perhaps this thread may help:
Dlib is not available as part of the Yocto Project but you may create a recipe for it, like the one shown on this forum:
Another alternative is downloading the source code and cross compiling on your host (you can extract the toolchain from the Yocto BSP by baking meta-toolchain). You would need to check the dependencies for it and make sure that they are on your host (which may be easier than doing the same for your board).
I hope this helps!
That is great idea. But after extract toolchain:
Then I build cross-toolchain and get "fsl-imx-x11-glibc-x86_64-meta-toolchain-cortexa7hf-neon-toolchain-4.14-sumo.sh" script. Next I execute this script and it generate environment variables.
I don't know actually what I need to do next.
I have executed cross-compile C program for iMX6UL and it's working good. I used Ubuntu 14 and Ellipse to do that.
But in this case, I have no idea. May you guide me step by step ?
Thank you so much !
The process would be similar but using CMake as you want to compile a series of libraries. You should be able to follow the instructions on the dlib website:
Although I haven’t tested them myself and you would need to make sure that libraries and dependencies are met. But it should be relatively straightforward.
I hope this helps!
I’m not familiar with dlib, but their cmake instructions on the documentation build the example programs that use dlib. You would have as output some executables and dlib libraries.
I cannot comment on whether it would work on a Linux Embedded system, I would recommend that you look on dlib forums if available, as I don’t have experience with it.
My apologies for the inconvenience!