Hi NXPs,
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
I used:
$ 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,
Toan
Hello Toan,
Perhaps this thread may help:
https://community.nxp.com/thread/408850
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:
https://stackoverflow.com/questions/51153747/dlib-library-with-yocto
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!
Regards,
Hi gusarambula,
That is great idea. But after extract toolchain:
bitbake meta-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 !
Toan
Hello Toan,
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!
Regards,
Hi gusarambula,
Do you think it possible ? Because I don't know what is the output actually ?
Output is the image of Linux distro or something else ?
Thank you,
Toan
Hello Toan,
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!
Regards,