since you have a -cuda package id as well as one without, what's the purpose of setting _build_cpu and _build_cuda? Shouldn't the installation of the appropriate package suffice?
Search Criteria
Package Details: python-dlib-cuda 20.0-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: | 15 |
| Popularity: | 0.000197 |
| First Submitted: | 2016-10-27 15:05 (UTC) |
| Last Updated: | 2025-05-30 11:54 (UTC) |
Dependencies (19)
- cblas (blis-cblas-openmpAUR, blis-cblasAUR, aocl-blis-aoccAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blas-mklAUR, blas-openblas-gitAUR, aocl-blisAUR, openblas-lapackAUR, blas-gitAUR, blas-openblas)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR, cuda-12.5AUR, cuda-12.9AUR)
- cudnn (cudnn9.10-cuda12.9AUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-cudaAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-full-gitAUR, ffmpeg-amd-fullAUR, ffmpeg-amd-full-gitAUR)
- giflib (giflib-gitAUR)
- lapack (aocl-libflame-aoccAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas-gitAUR, openblas-lapackAUR, lapack-gitAUR, blas-openblas)
- libjpeg-turbo (mozjpeg-gitAUR, mozjpegAUR, libjpeg-turbo-gitAUR)
- libjxl (libjxl-gitAUR, libjxl-metricsAUR, libjxl-metrics-gitAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libx11 (libx11-gitAUR, libx11-mr293AUR)
- python
- boost (boost-gitAUR) (make)
- ccache-extAUR (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR, cuda-12.5AUR, cuda-12.9AUR) (make)
- cudnn (cudnn9.10-cuda12.9AUR) (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)
envolution commented on 2024-10-23 06:05 (UTC)
zyldragoon commented on 2024-09-22 14:54 (UTC)
Due to the recent libjxl 0.11 version update, you need to recompile this package to use it
@petronny maybe considering update the pkgrel number to remind user update
SelfRef commented on 2024-07-21 17:59 (UTC) (edited on 2024-07-21 18:03 (UTC) by SelfRef)
The _build_cpu and _build_cuda could be gotten from some global variables if set, and fallback to package default values. It's inconvenient to set the values every time in PKGBUILD.
Or could be split into two packages, depends on need of CUDA.
brianc commented on 2024-07-01 22:05 (UTC) (edited on 2024-07-01 22:07 (UTC) by brianc)
The CUDA version cannot be built as of cuda 12.5.0-1 that remove the symlinks hardcoded for CUDA compilers in the PKGBUILD.
See: https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/issues/8
I got around the issue by removing the hardcoded environment variables from lines 44-48 of the PKGBUILD
8bitrosso commented on 2024-06-18 00:27 (UTC) (edited on 2024-06-18 00:29 (UTC) by 8bitrosso)
Came here from howdy install errors. Had to build and install python-dlib manually. Do yay -G python-dlib and edit PKGBUILD.
Then set _build_cpu to 1 and _build_cuda to 0 (unless you have an nvidia gpu then set to 1). Also edit options to options=(... !lto). Then compile with makepkg -si.
Hope this helps anyone.
VictorGamerLOL commented on 2024-04-03 23:16 (UTC)
For some reason most recent version wants to compile it with CUDA even tho I am on an AMD system. I have python-dlib not python-dlib-cuda installed.
MarsSeed commented on 2024-03-30 13:36 (UTC)
The options=(!lto) setting in a PKGBUILD always overrides the LTO switch for that particular build, regardless of what any makepkg.conf contains.
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.
nursoda commented on 2024-03-13 14:06 (UTC)
@petronny Please update the PKGBUILD as pointed out by Encrypt-Keeper.
coyotepunk05 commented on 2024-02-23 09:43 (UTC)
Disabling LTO in /etc/makepkg.conf gets rid of the error. Thanks.
Pinned Comments
petronny commented on 2024-03-30 13:11 (UTC) (edited on 2024-03-30 13:13 (UTC) by petronny)
Set
_build_cpuand_build_cudato 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.