@MarsSeed: No.
Search Criteria
Package Details: python-dlib-cuda 19.24.6-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-dlib.git (read-only, click to copy) |
---|---|
Package Base: | python-dlib |
Description: | Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques. |
Upstream URL: | http://www.dlib.net/ |
Licenses: | boost |
Conflicts: | python-dlib |
Provides: | python-dlib |
Submitter: | u1bmoW1r16 |
Maintainer: | petronny (AutoUpdateBot) |
Last Packager: | petronny |
Votes: | 16 |
Popularity: | 0.133642 |
First Submitted: | 2016-10-27 15:05 (UTC) |
Last Updated: | 2024-08-10 03:07 (UTC) |
Dependencies (19)
- cblas (blis-cblas-openmpAUR, blis-cblasAUR, aocl-blis-aoccAUR, blas-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blis-gitAUR, blisAUR, openblas-lapackAUR, blas-mklAUR, aocl-blisAUR, blas-openblas)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR)
- cudnn
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-ffplayoutAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-amd-full-gitAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR)
- giflib (giflib-gitAUR)
- lapack (aocl-libflame-aoccAUR, lapack-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, openblas-lapackAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas)
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libjxl (libjxl-metrics-gitAUR, libjxl-gitAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libx11 (libx11-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- boost (boost-gitAUR) (make)
- ccache-extAUR (make)
- cmake (cmake-gitAUR) (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR) (make)
- cudnn (make)
- python-setuptools (make)
- sqlite (sqlite-fossilAUR) (make)
- sqlite (sqlite-fossilAUR) (optional)
Required by (6)
- howdy (requires python-dlib)
- howdy-beta-git (requires python-dlib)
- howdy-bin (requires python-dlib)
- howdy-git (requires python-dlib)
- openface-git (requires python-dlib)
- python-face_recognition (requires python-dlib)
Sources (1)
Eeems commented on 2024-02-12 00:55 (UTC)
MarsSeed commented on 2024-02-12 00:01 (UTC)
@Eeems, please don't build it "on your system", but in a clean chroot environment.
Eeems commented on 2024-02-11 23:18 (UTC)
@MarsSeed I'm not sure why you are marking this as out-of-date. The package is at the latest upstream version for me. If you are having issues building the package, that's not the same as it being out-of-date.
On top of that, I can't replicate your error. A fresh build of the package works with no issue on my system.
MarsSeed commented on 2024-01-26 18:21 (UTC)
Fails to build (line #3 shows the cause of the error):
[100%] Linking CXX shared module
/tmp/makepkg/python-dlib/src/dlib-19.24.2-cuda/build/lib.linux-x86_64-cpython-311/_dlib_pybind11.cpython-311-x86_64-linux-gnu.so
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
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:522:
/tmp/makepkg/python-dlib/src/dlib-19.24.2-cuda/build/lib.linux-x86_64-cpython-311/_dlib_pybind11.cpython-311-x86_64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:118: CMakeFiles/_dlib_pybind11.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Traceback (most recent call last):
File "/tmp/makepkg/python-dlib/src/dlib-19.24.2-cuda/setup.py", line 222, in <module>
setup(
File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/makepkg/python-dlib/src/dlib-19.24.2-cuda/setup.py", line 134, in run
self.build_extension(ext)
File "/tmp/makepkg/python-dlib/src/dlib-19.24.2-cuda/setup.py", line 174, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j4']' returned non-zero exit
status 2.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: python-dlib
petronny commented on 2023-11-28 04:57 (UTC)
Prebuilt binaries of this package can be found in arch4edu.
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
}
Pinned Comments
petronny commented on 2024-03-30 13:11 (UTC) (edited on 2024-03-30 13:13 (UTC) by petronny)
Set
_build_cpu
and_build_cuda
to 1 and 0 to build or not build the CPU or CUDA version.If
options=(!lto)
has no effect, please check if it's still enabled in/etc/makepkg.conf
.petronny commented on 2023-11-28 04:57 (UTC)
Prebuilt binaries of this package can be found in arch4edu.