Package Details: dlib 19.20-1

Git Clone URL: https://aur.archlinux.org/dlib.git (read-only, click to copy)
Package Base: dlib
Description: A general purpose cross-platform C++ library designed using contract programming and modern C++ techniques
Upstream URL: http://dlib.net
Keywords: dlib
Licenses: custom
Submitter: pingplug
Maintainer: pingplug
Last Packager: pingplug
Votes: 33
Popularity: 0.99
First Submitted: 2015-08-19 09:02
Last Updated: 2020-06-10 06:52

Latest Comments

1 2 Next › Last »

harbind commented on 2020-04-06 11:14

I was coming here to suggest to change the source to the official site, but noticed that someone already did that. That sourceforge is slow at its best, quite often you get nothing out from it.

I can also verify that this package compiles and works fine on both armv7h and aarch64, if you want to update the arch array.

sandsmark commented on 2020-04-04 14:39

Another request: sourceforge is extremely slow (at least here), could you switch to either the official site (dlib.net) or github?

official is pretty straightforward, it's the same tarball:

  -source=("https://downloads.sourceforge.net/project/dclib/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
  +source=("http://dlib.net/files/${pkgname}-${pkgver}.tar.bz2")

Github only has tar.gz as far as I know, so it needs a different sha256sum:

  -source=("https://downloads.sourceforge.net/project/dclib/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
  -sha256sums=('1decfe883635ce51acd72869cebe870ab9b85eb094d417adc8f48aa7b8c60cd7')
  +source=("https://github.com/davisking/${pkgname}/archive/v${pkgver}.tar.gz")
  +sha256sums=('7af455bb422d3ae5ef369c51ee64e98fa68c39435b0fa23be2e5d593a3d45b87')

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

edit: putting it inline, in case ix.io becomes unavailable:

diff --git PKGBUILD PKGBUILD
index 378f43b..55ba9ce 100644
--- PKGBUILD
+++ PKGBUILD
@@ -23,20 +23,31 @@ sha256sums=('24772f9b2b99cf59a85fd1243ca1327cbf7340d83395b32a6c16a3a16136327b')

 build() {
   cd "${srcdir}"
-  mkdir -p build && cd build
-  cmake \
+  export CMAKE_ARGS="
     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
     -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
     -DBUILD_SHARED_LIBS:BOOL=ON \
     -DCUDA_HOST_COMPILER='/opt/cuda/bin/gcc' \
     -DCMAKE_BUILD_TYPE=Release \
-    "../${pkgname}-${pkgver}"
+  "
   if [[ -f "/usr/lib/ccache/bin/nvcc-ccache" ]] ; then
-    cmake \
+    CMAKE_ARGS+=" \
       -DCUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache \
       -DCUDA_HOST_COMPILER=/usr/lib/ccache/bin/gcc \
-      "../${pkgname}-${pkgver}"
+      "
   fi
+
+  mkdir -p build && cd build
+  cmake \
+    ${CMAKE_ARGS} \
+    "../${pkgname}-${pkgver}"
+  make
+
+  cd "${srcdir}"
+  mkdir -p build-imglab && cd build-imglab
+  cmake \
+    ${CMAKE_ARGS} \
+    "../${pkgname}-${pkgver}/tools/imglab"
   make
 }

@@ -44,6 +55,9 @@ package() {
   cd "${srcdir}/build"
   make DESTDIR=${pkgdir} install
   install -Dm644 "../${pkgname}-${pkgver}/dlib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  cd "${srcdir}/build-imglab"
+  make DESTDIR=${pkgdir} install
 }

 # vim:set ts=2 sw=2 et:

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.