Package Details: dlib 19.24.8-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: algebra convolutional deep dlib learning linear machine networks neural
Licenses: custom
Submitter: pingplug
Maintainer: pingplug (swiftscythe, xantares)
Last Packager: xantares
Votes: 38
Popularity: 0.000005
First Submitted: 2015-08-19 09:02 (UTC)
Last Updated: 2025-04-01 19:56 (UTC)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

harbind commented on 2020-04-06 11:14 (UTC) (edited on 2020-04-06 11:46 (UTC) by harbind)

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 (UTC) (edited on 2020-04-04 14:40 (UTC) by sandsmark)

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 (UTC) (edited on 2020-04-04 14:41 (UTC) by sandsmark)

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 (UTC) (edited on 2019-04-25 09:36 (UTC) by xantares)

hi,

you have to replace blas by cblas in depends

pingplug commented on 2019-04-25 09:10 (UTC)

xantares:

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

xantares commented on 2019-04-25 07:30 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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

adsun commented on 2018-05-31 19:35 (UTC)

Please update sha256sums.