Prebuilt binaries of this package can be found in arch4edu.
Search Criteria
Package Base Details: python-dlib
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-dlib.git (read-only, click to copy) |
---|---|
Submitter: | fzavan |
Maintainer: | petronny (AutoUpdateBot) |
Last Packager: | petronny |
Votes: | 14 |
Popularity: | 0.25 |
First Submitted: | 2016-10-27 15:05 (UTC) |
Last Updated: | 2023-11-06 09:03 (UTC) |
Packages (2)
petronny commented on 2023-11-28 04:57 (UTC)
petronny commented on 2023-11-28 04:57 (UTC)
@chrisqq Hi, you can try uncommenting the line options=(!lto)
in PKGBUILD to disable LTO.
chrisqq commented on 2023-11-28 04:55 (UTC)
This fails on cachyos on this error: lto1: fatal error: bytecode stream in file ‘dlib_build/libdlib.a’ generated with LTO version 12.0 instead of the expected 13.0 compilation terminated. lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
Not really sure how I can fix this, any h elp appreciated.
Raymo111 commented on 2023-11-08 00:23 (UTC)
The python-dlib package now requires cuda, is there any way to just install the package and not the entire pkgbase, without cuda? I'm on AMD.
swiftscythe commented on 2023-10-06 02:30 (UTC)
hi, this package does not depend on boost, but has an optional make dependency on libwebp.
xmoon commented on 2023-05-25 10:35 (UTC)
19.24.2 PKGBUILD
this version imporve the recognition speed, and can build under py3.11
# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Lev Velykoivanenko <velykoivanenko dot lev at gmail dot com>
# Contributor: Flávio Zavan <flavio dot zavan at gmail dot com>
# Contributor: pingplug
# Contributor: perlawk
# Contributor: xsmile
pkgbase=python-dlib
pkgname=('python-dlib')
##pkgname+=('python-dlib-cuda')
_pkgname=dlib
pkgver=19.24.2
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
arch=('x86_64')
url="http://www.dlib.net/"
license=('Boost')
depends=('cblas' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'libx11')
optdepends=('sqlite')
##optdepends+=('cuda' 'cudnn' 'ccache-ext')
makedepends=(${optdepends[@]} 'cmake' 'boost' 'python-setuptools')
#source=("$url/files/${_pkgname}-${pkgver}.tar.bz2")
source=("https://github.com/davisking/dlib/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0f5c7e3de6316a513635052c5f0a16a84e1cef26a7d233bf00c21348462b6d6f')
##options=(!lto)
##prepare() {
## cd "$srcdir/"
## cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda"
##}
build(){
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build --no DLIB_USE_CUDA
## cuda_flags='--set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc --set CUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache --set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc'
## cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
## python setup.py build $cuda_flags
}
package_python-dlib(){
depends+=('python')
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
package_python-dlib-cuda(){
depends+=('cuda' 'cudnn' 'python')
provides=('python-dlib')
conflicts=('python-dlib')
cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
sidevesh commented on 2023-05-06 03:53 (UTC)
Can conform the issue mentioned by @Misaka13514, this is not building anymore and failing its dependents packages from being installed.
xz-dev commented on 2023-05-05 07:50 (UTC)
19.24.1's PKGBUILD like that:
# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Lev Velykoivanenko <velykoivanenko dot lev at gmail dot com>
# Contributor: Flávio Zavan <flavio dot zavan at gmail dot com>
# Contributor: pingplug
# Contributor: perlawk
# Contributor: xsmile
pkgbase=python-dlib
pkgname=('python-dlib')
##pkgname+=('python-dlib-cuda')
_pkgname=dlib
pkgver=19.24.1
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
arch=('x86_64')
url="http://www.dlib.net/"
license=('Boost')
depends=('cblas' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'libx11')
optdepends=('sqlite')
##optdepends+=('cuda' 'cudnn' 'ccache-ext')
makedepends=(${optdepends[@]} 'cmake' 'boost' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/ec/e3/4fed0fb511a88a46365c2da493b73081a5e1a21960bdb18089b27cbc768b/dlib-19.24.1.tar.gz")
sha256sums=('e8d3ca047d525eeb36cc47bce45ed0562dab40b0b8f5fa171600dde2fec509c0')
##options=(!lto)
prepare() {
cd "$srcdir/"
cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda"
}
build(){
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build --no DLIB_USE_CUDA
## cuda_flags='--set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc --set CUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache --set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc'
## cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
## python setup.py build $cuda_flags
}
package_python-dlib(){
depends+=('python')
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
package_python-dlib-cuda(){
depends+=('cuda' 'cudnn' 'python')
provides=('python-dlib')
conflicts=('python-dlib')
cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
AkinoKaede commented on 2023-05-04 08:03 (UTC) (edited on 2023-05-04 09:01 (UTC) by AkinoKaede)
These changes may be useful to fix this package with Python 3.11
https://github.com/davisking/dlib/commit/65bce59a1512cf222dec01d3e0f29b612dd181f5
https://github.com/davisking/dlib/commit/b7834324b4b87d2dc3c878980295a9dc3290037e
Pinned Comments
petronny commented on 2023-11-28 04:57 (UTC)
Prebuilt binaries of this package can be found in arch4edu.