Open
Description
I am trying to build the current darknet source (checked out today - but has been this way for a while) on Linux (openSUSE Tumbleweed). When it is compiling, it ends with this error:
> make -j4 package
[ 4%] Building CXX object src-lib/CMakeFiles/darknetobjlib.dir/avgpool_layer.cpp.o
[ 4%] Building CXX object src-lib/CMakeFiles/darknetobjlib.dir/amd_rocm.cpp.o
[ 4%] Building CUDA object src-lib/CMakeFiles/darknetobjlib.dir/activation_kernels.cu.o
[ 4%] Building CUDA object src-lib/CMakeFiles/darknetobjlib.dir/avgpool_layer_kernels.cu.o
In file included from /home/roger/source/RSofT_RICS/darknet-master-2025-06-18/darknet/src-lib/darknet_internal.hpp:51:0,
from /home/roger/source/RSofT_RICS/darknet-master-2025-06-18/darknet/src-lib/activation_kernels.cu:1:
/home/roger/source/RSofT_RICS/darknet-master-2025-06-18/darknet/src-lib/darknet.hpp:18:10: fatal error: filesystem: No such file or directory
#include <filesystem>
^~~~~~~~~~~~
compilation terminated.
From what I have read it is perhaps because of the c++ standard supported in the compiler. I am using
Name : gcc-c++
Version : 14
Release : 3.1
I think it supports -std=c++17, but that may not be the default. And I don't even know if this is the reason for the error.