facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

Offer to help: aarch64 Ubuntu 20.04 packages od dlib and pdlib

Open elpraga opened this issue 4 years ago • 6 comments

I've successfully compiled dlib and pdlib on RPi4 running Ubuntu 20.04.

I've created corresponding .deb files using checkinstall.

Would you be interested in expanding your Ubuntu 20.04 repo to include aarch64 packages?

I'm not experienced using checkinstall, though, I'd need some help to guide me how to prepare the packages correctly and to standard.

elpraga avatar Dec 19 '20 15:12 elpraga

Hi @elpraga I don't have a raspberry pi to do the packages, and the cross compilation is quite annoying .. :sweat_smile: I build the packages with pbuilder but If you can do something functional I have no problem publishing your packages, even if they are not official.. :wink:

matiasdelellis avatar Dec 22 '20 22:12 matiasdelellis

Ok, I'll try to do so then.

Could you tell me if there are some dependencies I should add into them packages? As I compiled them, all dependencies are installed already, so I have no clue if something is missing other systems.

I looked at pbuilder, I think I'll stick with checinstall 😄😄

elpraga avatar Dec 30 '20 11:12 elpraga

Also, do you know how to add

[pdlib]
extension="pdlib.so"

to php.ini automatically when installing the package?

elpraga avatar Dec 30 '20 11:12 elpraga

So you have a working instance of face recognition on your pi running? Can you post an instruction on how to run it?

nilsacht avatar Jan 09 '21 14:01 nilsacht

@nilsacht I brought it "to life" on a RockPi4 (RK3399, aarch64). It's an Armbian System without GUI.

In priniciple, follow the Hard Way installation. There was a compile error, dlib complaining there is no GUI available:

  1. open the file ~/dlib/dlib/config.h.in
  2. comment out #cmakedefine DLIB_NO_GUI_SUPPORT
  3. Restart compilation

All the other steps worked as expected (@matiasdelellis A big THX!). I changed PHP module inclusion a little bit (more Debian style):

  • Create a file pdlib.ini in /etc/php/7.3/mods-available/
  • Activate the module via phpenmod pdlib

benjaminaigner avatar Feb 06 '21 09:02 benjaminaigner

Hello @nilsacht ! I'm sorry for such a late response about my RPi setup. I've been rather busy lately, and I forgot.

I actually did not have to make any changes whatsoever to nake it work on my RPi4. Following the hard way walked me through without a glitch.(I didn't have to edit anyconfig.h.in files.

I hope it helps!

elpraga avatar Feb 06 '21 09:02 elpraga