Package Details: dlib 19.17-2

Git Clone URL: https://aur.archlinux.org/dlib.git (read-only)
Package Base: dlib
Description: A general purpose cross-platform C++ library designed using contract programming and modern C++ techniques
Upstream URL: http://www.dlib.net
Keywords: dlib
Licenses: custom
Submitter: pingplug
Maintainer: pingplug
Last Packager: pingplug
Votes: 31
Popularity: 0.857251
First Submitted: 2015-08-19 09:02
Last Updated: 2019-05-20 12:34

Latest Comments

1 2 Next › Last »

sandsmark commented on 2019-08-07 16:25

Would be nice to install imglab as well. Not sure if this is the best solution, but it works:

http://ix.io/1QV8

xantares commented on 2019-04-25 09:36

hi,

you have to replace blas by cblas in depends

pingplug commented on 2019-04-25 09:10

xantares:

report empty dir issue (also missing cmake files) to upstream

xantares commented on 2019-04-25 07:30

hi again; here's the ouput of nacmap:

dlib W: Directory (usr/include/dlib/test/tools) is empty

...

dlib E: Dependency libx11 detected and not included (libraries ['usr/lib/libX11.so.6'] needed in files ['usr/lib/libdlib.so.19.17.0'])

dlib E: Dependency cblas detected and not included (libraries ['usr/lib/libcblas.so.3'] needed in files ['usr/lib/libdlib.so.19.17.0'])

dlib W: Dependency blas included but already satisfied

dlib W: Dependency included and not needed ('giflib')

dlib W: Dependency included and not needed ('sqlite')

=> replace blas by cblas, drop giflib, sqlite and add libx11 deps

axionl commented on 2018-07-19 06:35

Should this empty directories be removed?

dlib W: Directory (usr/include/dlib/cmake_utils/test_for_sse4) is empty dlib W: Directory (usr/include/dlib/all) is empty dlib W: Directory (usr/include/dlib/cmake_utils/test_for_cpp11) is empty dlib W: Directory (usr/include/dlib/test/blas_bindings) is empty dlib W: Directory (usr/include/dlib/test/gui) is empty dlib W: Directory (usr/include/dlib/external/libpng/arm) is empty dlib W: Directory (usr/include/dlib/test/tools) is empty dlib W: Directory (usr/include/dlib/cmake_utils/test_for_cudnn) is empty dlib W: Directory (usr/include/dlib/cmake_utils/test_for_cuda) is empty dlib W: Directory (usr/include/dlib/travis) is empty dlib W: Directory (usr/include/dlib/cmake_utils/test_for_neon) is empty dlib W: Directory (usr/include/dlib/cmake_utils/test_for_avx) is empty dlib W: Directory (usr/include/dlib/appveyor) is empty dlib W: Directory (usr/include/dlib/test/examples) is empty

pingplug commented on 2018-07-01 13:21

use this package if you want to speed up CUDA source compilation with ccache https://github.com/pingplug/PKGBUILDs/tree/master/others/ccache-ext

adsun commented on 2018-06-01 21:54

Never mind. I checked the build and it works fine. Sorry for the false alarm.

adsun commented on 2018-05-31 19:35

Please update sha256sums.

unclejimbo commented on 2018-05-04 04:47

Is this package constraining multi-threading to only one core?

When I compiled dlib from source, the multi-threading is normal.

Xyne commented on 2018-01-12 20:19

Hi,

Thank you for maintaining this package.

Given that the provided CMake configuration files build the shared library and that some projects that rely on Dlib require it, this package should build the object files. If they are truly deprecated then let upstream disable them in CMake. The "standard" or "vanilla" package is whatever upstream sets as default in CMake and that is generally what should be provided in Arch. Users who do not need the libs can disable them. If upstream changes the configuration, then users who need them can instead enable them.

libdlib should then be merged into this package if these changes are made.

Here's a PKGBUILD. Thanks!

# Maintainer: pingplug <pingplug@foxmail.com>
# Contributor: perlawk

pkgname=dlib
_pkgname=dlib
pkgver=19.8
pkgrel=2
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
arch=('i686' 'x86_64')
url="<http://www.dlib.net/>"
license=('Boost Software License')
depends=('glibc' 'blas' 'cuda' 'cudnn' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'neon' 'sqlite')
# optdepends=('blas: for BLAS support'
#             'cuda: for CUDA support'
#             'cudnn: for CUDNN support'
#             'giflib: for GIF support'
#             'lapack: for LAPACK support'
#             'libjpeg-turbo: for JPEG support'
#             'libpng: for PNG support'
#             'neon: for neon support'
#             'sqlite: for sqlite support')
source=("<https://downloads.sourceforge.net/project/dclib/>${_pkgname}/v${pkgver}/${_pkgname}-${pkgver}.tar.bz2")
sha256sums=('dbd31f7b97166e58f366c83fa5127e9fa44c492921558b61ce63a7d775be696b')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  mkdir -p -- build
  cd -- build
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
    ..
  make -j $(($(nproc) + 1))
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}/build"
  make DESTDIR="$pkgdir" install
  install -Dm644 ../dlib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

I have left the optdepends for future reference in anticipation of library deprecation. You can of course move any deps back to optdeps or to makedeps if the compiled library does not require them after installation. I didn't check.