Package Details: darkhelp-git 1.9.6-1

Git Clone URL: https://aur.archlinux.org/darkhelp-git.git (read-only, click to copy)
Package Base: darkhelp-git
Description: DarkHelp: C++ helper class for Darknet's C API
Upstream URL: https://github.com/stephanecharette/DarkHelp
Licenses: MIT
Submitter: Seed
Maintainer: Seed
Last Packager: Seed
Votes: 1
Popularity: 0.079934
First Submitted: 2025-02-28 07:30 (UTC)
Last Updated: 2025-03-18 21:13 (UTC)

Latest Comments

conan commented on 2025-07-03 02:50 (UTC)

I downloaded the PKGBUILD and modified it to add a patch that removes the -Werror from the compilation flags. Now it builds. Also I had to install vtk and hdf5 packages to fix linker issues during build, those should be made hard dependencies. Also I installed cuda and cudnn, but sadly I don't recall if I was having linker issues those two solved too.

The modified PKGBUILD excerpt:

source=("git+https://github.com/stephanecharette/DarkHelp.git"
        "remove_compiler_param.patch")
sha256sums=('SKIP' 'SKIP')

pkgver() {
  cd "$srcdir/DarkHelp"
  cat version.txt | cut -d '-' -f 1
}

prepare() {
  cd "$srcdir/DarkHelp"
  # Apply the patch
  patch -p1 < "$srcdir/remove_compiler_param.patch"
}

And the diff for file CM_definitions.cmake:

--- CM_definitions-original.cmake   2025-07-02 23:22:02.223895268 -0300
+++ CM_definitions.cmake    2025-07-02 23:23:42.515822924 -0300
@@ -12,5 +12,5 @@
    ADD_COMPILE_DEFINITIONS ( _CRT_SECURE_NO_WARNINGS ) # don't complain about localtime()
    SET ( CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
 ELSE ()
-   ADD_COMPILE_OPTIONS ( -Wall -Wextra -Werror -Wno-unused-parameter )
+   ADD_COMPILE_OPTIONS ( -Wall -Wextra -Wno-unused-parameter )
 ENDIF ()

BTW, the other related package you maintain, darkmark-git, has the exact same problem.

conan commented on 2025-07-02 12:07 (UTC)

This is failing to build with the following message:

In file included from /usr/include/darknet.hpp:17,
                 from /home/flc/.cache/yay/darkhelp-git/src/DarkHelp/src-lib/DarkHelpNN.cpp:7:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src-lib/CMakeFiles/dh.dir/build.make:93: src-lib/CMakeFiles/dh.dir/DarkHelpNN.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:243: src-lib/CMakeFiles/dh.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: darkhelp-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
darkhelp-git - exit status 4