alianse777/darknet-rust

Darknet sys fails to build

Closed this issue · 3 comments

Hi, when I try to build the yolo v3 example file, the thread panics. The error I get is Cannot open include file: 'sys/time.h': No such file or directory [C:\Users\Filip Mattsson\Downloads\rust-darknet\target\debug\build\darknet-sys-2b3d282f1cd2812c\out\build\darknet.vcxproj].

Is there any solution to this issue?

What is your build environment?
Can you compile https://github.com/AlexeyAB/darknet standalone?

Closing due to inactivity.

Hi, I have the same issue despite successfully having compiled https://github.com/AlexeyAB/darknet standalone and used it to train a custom network.
Here's my compiler output:

error: failed to run custom build command for `darknet-sys v0.4.0`

Caused by:
  process didn't exit successfully: `E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-58a103363463cc63\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=DARKNET_SRC
  cargo:rerun-if-env-changed=DARKNET_INCLUDE_PATH
  cargo:rerun-if-env-changed=CUDA_PATH
  cargo:rerun-if-env-changed=CUDA_ARCHITECTURES
  cargo:rerun-if-env-changed=E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\bindings.rs
  process: "C:\\Users\\Zagitta\\scoop\\persist\\rustup\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\darknet-sys-0.4.0\\darknet"

 <!------ snip copying ------>

  CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
  CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
  CMAKE_GENERATOR_x86_64_pc_windows_msvc = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
  CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-pc-windows-msvc = None
  CMAKE_x86_64_pc_windows_msvc = None
  HOST_CMAKE = None
  CMAKE = None
  running: "cmake" "E:\\Programming\\Projects\\iron-pole\\target\\debug\\build\\darknet-sys-8bbd4d0a82d1f095\\out\\darknet" "-G" "Visual Studio 16 2019" "-Thost=x64" "-Ax64" "-DBUILD_SHARED_LIBS=OFF" "-DENABLE_CUDA=OFF" "-DENABLE_CUDNN=OFF" "-DENABLE_OPENCV=OFF" "-DCUDA_ARCHITECTURES=Auto" "-DCMAKE_REQUIRE_FIND_PACKAGE_OpenMP=ON" "-DCMAKE_INSTALL_PREFIX=E:\\Programming\\Projects\\iron-pole\\target\\debug\\build\\darknet-sys-8bbd4d0a82d1f095\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Debug"
  -- vcpkg not found, toolchain not defined, using integrated libs on win32
  -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
  -- The C compiler identification is MSVC 19.28.29336.0
  -- The CXX compiler identification is MSVC 19.28.29336.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- Looking for pthread_create in pthreads
  -- Looking for pthread_create in pthreads - not found
  -- Looking for pthread_create in pthread
  -- Looking for pthread_create in pthread - not found
  -- Found Threads: TRUE
  -- Found PThreads4W: E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/darknet/3rdparty/pthreads/lib/pthreadVC2.lib
  -- PThreads4W_DLL_DIR: E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/darknet/3rdparty/pthreads/include/../bin
  -- Found Stb: E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/darknet/3rdparty/stb/include
  -- Found OpenMP_C: -openmp (found version "2.0")
  -- Found OpenMP_CXX: -openmp (found version "2.0")
  -- Found OpenMP: TRUE (found version "2.0")
  -- ZED SDK not enabled, since it requires CUDA
  -- Configuring done (14.7s)
  -- Generating done (0.0s)
  -- Build files have been written to: E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/build
  running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--parallel" "32"
  Change Dir: 'E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/build'

  Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe" install.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /m:32 /v:n
  Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

  Build started 08/12/2023 22.53.37.
       1>Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" on node 1 (default targets).
       1>Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (1) is building "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
       2>PrepareForBuild:
           Creating directory "x64\Debug\ZERO_CHECK\".
           Creating directory "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\".
         InitializeBuildStatus:
           Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
         CustomBuild:
           1>Checking Build System
         FinalizeBuildStatus:
           Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
           Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
       2>Done Building Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ZERO_CHECK.vcxproj" (default targets).
       1>Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (1) is building "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (3) on node 2 (default targets).
       3>Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (3) is building "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj" (5) on node 1 (default targets).
       5>PrepareForBuild:
           Creating directory "darknet.dir\Debug\".
           Creating directory "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\Debug\".
           Creating directory "darknet.dir\Debug\darknet.tlog\".
         InitializeBuildStatus:
           Creating "darknet.dir\Debug\darknet.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       3>Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (3) is building "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj" (4) on node 2 (default targets).
       4>PrepareForBuild:
           Creating directory "dark.dir\Debug\".
           Creating directory "dark.dir\Debug\dark.tlog\".
         InitializeBuildStatus:
           Creating "dark.dir\Debug\dark.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       5>CustomBuild:
           Building Custom Rule E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/darknet/CMakeLists.txt
       4>CustomBuild:
           Building Custom Rule E:/Programming/Projects/iron-pole/target/debug/build/darknet-sys-8bbd4d0a82d1f095/out/darknet/CMakeLists.txt
       5>VcpkgTripletSelection:
           Using triplet "x64-windows" from "C:\Users\Zagitta\scoop\apps\vcpkg\current\installed\x64-windows\"
           Using normalized configuration "Release"
         ClCompile:
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\stb\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\pthreads\include" /I"C:\Users\Zagitta\scoop\apps\vcpkg\current\installed\x64-windows\include" /nologo /W1 /WX- /diagnostics:column /O2 /D _MBCS /D USE_CMAKE_LIBS /D _CRT_RAND_S /D NOMINMAX /D _USE_MATH_DEFINES /D _TIMESPEC_DEFINED /D "CMAKE_INTDIR=\"Debug\"" /Gm- /MDd /GS /fp:fast /Zc:wchar_t /Zc:forScope /Zc:inline /openmp /Fo"darknet.dir\Debug\\" /Fd"darknet.dir\Debug\vc142.pdb" /Gd /TC /wd4013 /wd4018 /wd4028 /wd4047 /wd4068 /wd4090 /wd4101 /wd4113 /wd4133 /wd4190 /wd4244 /wd4267 /wd4305 /wd4477 /wd4996 /wd4819 /errorReport:queue  -Brepro -Brepro "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\darknet.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\activation_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\activations.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\avgpool_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\batchnorm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\blas.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\box.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\captcha.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cifar.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\coco.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\col2im.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\compare.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\connected_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\conv_lstm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\convolutional_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cost_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cpu_gemm.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\crnn_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\crop_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dark_cuda.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\data.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\deconvolutional_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\demo.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\detection_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\detector.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dice.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dropout_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gaussian_yolo_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gemm.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\getopt.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gettimeofday.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\go.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gru_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\im2col.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\image.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\list.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\local_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\lstm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\matrix.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\maxpool_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\network.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\nightmare.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\normalization_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\option_list.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\parser.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\region_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\reorg_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\reorg_old_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\representation_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn_vid.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\route_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\sam_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\scale_channels_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\shortcut_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\softmax_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\super.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\swag.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\tag.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\tree.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\upsample_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\utils.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\voxel.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\writing.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo_layer.c"
       4>VcpkgTripletSelection:
           Using triplet "x64-windows" from "C:\Users\Zagitta\scoop\apps\vcpkg\current\installed\x64-windows\"
           Using normalized configuration "Release"
         ClCompile:
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\stb\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\pthreads\include" /I"C:\Users\Zagitta\scoop\apps\vcpkg\current\installed\x64-windows\include" /nologo /W1 /WX- /diagnostics:column /O2 /D _MBCS /D USE_CMAKE_LIBS /D _CRT_RAND_S /D NOMINMAX /D _USE_MATH_DEFINES /D _CRT_SECURE_NO_WARNINGS /D _TIMESPEC_DEFINED /D "CMAKE_INTDIR=\"Debug\"" /Gm- /MDd /GS /fp:fast /Zc:wchar_t /Zc:forScope /Zc:inline /openmp /Fo"dark.dir\Debug\\" /Fd"dark.dir\Debug\dark.pdb" /Gd /TP /wd4013 /wd4018 /wd4028 /wd4047 /wd4068 /wd4090 /wd4101 /wd4113 /wd4133 /wd4190 /wd4244 /wd4267 /wd4305 /wd4477 /wd4996 /wd4819 /errorReport:queue  -Brepro -Brepro "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo_v2_class.cpp" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\http_stream.cpp" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\image_opencv.cpp"
       5>ClCompile:
           darknet.c
           activation_layer.c
           activations.c
           art.c
       5>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c(11,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj]      
           avgpool_layer.c
       4>ClCompile:
           yolo_v2_class.cpp
       5>ClCompile:
           batchnorm_layer.c
           blas.c
           box.c
           captcha.c
           cifar.c
           classifier.c
       5>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c(13,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj]
           coco.c
           col2im.c
           compare.c
           connected_layer.c
       4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(748,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(708): message : see reference to function template instantiation 'bbox_t *std::vector<bbox_t,std::allocator<bbox_t>>::_Emplace_reallocate<const _Ty&>(bbox_t *const ,const _Ty &)' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
                   with
                   [
                       _Ty=bbox_t
                   ]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(708): message : see reference to function template instantiation 'bbox_t *std::vector<bbox_t,std::allocator<bbox_t>>::_Emplace_reallocate<const _Ty&>(bbox_t *const ,const _Ty &)' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
                   with
                   [
                       _Ty=bbox_t
                   ]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(717): message : see reference to function template instantiation 'void std::vector<bbox_t,std::allocator<bbox_t>>::emplace_back<const _Ty&>(const _Ty &)' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
                   with
                   [
                       _Ty=bbox_t
                   ]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(716): message : while compiling class template member function 'void std::vector<bbox_t,std::allocator<bbox_t>>::push_back(const _Ty &)' [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
                   with
                   [
                       _Ty=bbox_t
                   ]
         E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo_v2_class.cpp(342): message : see reference to function template instantiation 'void std::vector<bbox_t,std::allocator<bbox_t>>::push_back(const _Ty &)' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
                   with
                   [
                       _Ty=bbox_t
                   ]
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\deque(594): message : see reference to class template instantiation 'std::vector<bbox_t,std::allocator<bbox_t>>' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
         E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\include\yolo_v2_class.hpp(72): message : see reference to class template instantiation 'std::deque<std::vector<bbox_t,std::allocator<bbox_t>>,std::allocator<std::vector<bbox_t,std::allocator<bbox_t>>>>' being compiled 
[E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
         ClCompile:
           conv_lstm_layer.c
       4>ClCompile:
           http_stream.cpp
       5>ClCompile:
           convolutional_layer.c
           cost_layer.c
           cpu_gemm.c
           crnn_layer.c
           Generating Code...
       4>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\http_stream.cpp(302,9): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           image_opencv.cpp
       4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\ostream(746,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
         E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\image_opencv.cpp(1563): message : see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)' being compiled [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           Generating Code...
         ClCompile:
           Compiling...
           crop_layer.c
           dark_cuda.c
       4>ClCompile:
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\CL.exe /c /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\stb\include" /I"E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\3rdparty\pthreads\include" /I"C:\Users\Zagitta\scoop\apps\vcpkg\current\installed\x64-windows\include" /nologo /W1 /WX- /diagnostics:column /O2 /D _MBCS /D USE_CMAKE_LIBS /D _CRT_RAND_S /D NOMINMAX /D _USE_MATH_DEFINES /D _CRT_SECURE_NO_WARNINGS /D _TIMESPEC_DEFINED /D "CMAKE_INTDIR=\"Debug\"" /Gm- /MDd /GS /fp:fast /Zc:wchar_t /Zc:forScope /Zc:inline /openmp /Fo"dark.dir\Debug\\" /Fd"dark.dir\Debug\dark.pdb" /Gd /TC /wd4013 /wd4018 /wd4028 /wd4047 /wd4068 /wd4090 /wd4101 /wd4113 /wd4133 /wd4190 /wd4244 /wd4267 /wd4305 /wd4477 /wd4996 /wd4819 /errorReport:queue  -Brepro -Brepro "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\activation_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\activations.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\avgpool_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\batchnorm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\blas.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\box.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\captcha.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cifar.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\coco.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\col2im.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\compare.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\connected_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\conv_lstm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\convolutional_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cost_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\cpu_gemm.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\crnn_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\crop_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dark_cuda.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\data.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\deconvolutional_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\demo.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\detection_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\detector.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dice.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\dropout_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gaussian_yolo_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gemm.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\getopt.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gettimeofday.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\go.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\gru_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\im2col.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\image.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\list.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\local_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\lstm_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\matrix.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\maxpool_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\network.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\nightmare.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\normalization_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\option_list.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\parser.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\region_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\reorg_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\reorg_old_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\representation_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\rnn_vid.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\route_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\sam_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\scale_channels_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\shortcut_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\softmax_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\super.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\swag.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\tag.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\tree.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\upsample_layer.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\utils.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\voxel.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\writing.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo.c" "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\yolo_layer.c"
       5>ClCompile:
           data.c
           deconvolutional_layer.c
           demo.c
       5>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\demo.c(15,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj]     
           detection_layer.c
           detector.c
           dice.c
       4>ClCompile:
           activation_layer.c
       5>ClCompile:
           dropout_layer.c
           gaussian_yolo_layer.c
       4>ClCompile:
           activations.c
       5>ClCompile:
           gemm.c
       4>ClCompile:
           art.c
       4>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c(11,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           avgpool_layer.c
       5>ClCompile:
           getopt.c
       4>ClCompile:
           batchnorm_layer.c
           blas.c
           box.c
           captcha.c
       5>ClCompile:
           gettimeofday.c
       4>ClCompile:
           cifar.c
           classifier.c
       4>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c(13,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]  
           coco.c
       5>ClCompile:
           go.c
       4>ClCompile:
           col2im.c
           compare.c
       5>ClCompile:
           gru_layer.c
       4>ClCompile:
           connected_layer.c
       5>ClCompile:
           im2col.c
       4>ClCompile:
           conv_lstm_layer.c
       5>ClCompile:
           image.c
       4>ClCompile:
           convolutional_layer.c
           cost_layer.c
       5>ClCompile:
           layer.c
       4>ClCompile:
           cpu_gemm.c
           crnn_layer.c
       5>ClCompile:
           list.c
       4>ClCompile:
           crop_layer.c
       5>ClCompile:
           local_layer.c
       4>ClCompile:
           Generating Code...
       5>ClCompile:
           Generating Code...
       4>ClCompile:
           Compiling...
           dark_cuda.c
           data.c
           deconvolutional_layer.c
           demo.c
       4>E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\demo.c(15,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]        
           detection_layer.c
           detector.c
           dice.c
           dropout_layer.c
           gaussian_yolo_layer.c
           gemm.c
           getopt.c
           gettimeofday.c
           go.c
           gru_layer.c
           im2col.c
           image.c
           layer.c
           list.c
           local_layer.c
           lstm_layer.c
           Generating Code...
       5>ClCompile:
           Compiling...
           lstm_layer.c
           matrix.c
           maxpool_layer.c
           network.c
           nightmare.c
           normalization_layer.c
           option_list.c
           parser.c
           region_layer.c
           reorg_layer.c
           reorg_old_layer.c
           representation_layer.c
           rnn.c
           rnn_layer.c
           rnn_vid.c
           route_layer.c
           sam_layer.c
           scale_channels_layer.c
           shortcut_layer.c
           softmax_layer.c
           Generating Code...
           Compiling...
           super.c
           swag.c
           tag.c
           tree.c
           upsample_layer.c
           utils.c
       4>ClCompile:
           Compiling...
           matrix.c
           maxpool_layer.c
           network.c
           nightmare.c
           normalization_layer.c
           option_list.c
       5>ClCompile:
           voxel.c
       4>ClCompile:
           parser.c
       5>ClCompile:
           writing.c
       4>ClCompile:
           region_layer.c
       5>ClCompile:
           yolo.c
       4>ClCompile:
           reorg_layer.c
       5>ClCompile:
           yolo_layer.c
       4>ClCompile:
           reorg_old_layer.c
       5>ClCompile:
           Generating Code...
       4>ClCompile:
           representation_layer.c
           rnn.c
           rnn_layer.c
           rnn_vid.c
           route_layer.c
           sam_layer.c
           scale_channels_layer.c
           shortcut_layer.c
           softmax_layer.c
           super.c
           Generating Code...
       5>Done Building Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj" (default targets) -- FAILED.
       4>ClCompile:
           Compiling...
           swag.c
           tag.c
           tree.c
           upsample_layer.c
           utils.c
           voxel.c
           writing.c
           yolo.c
           yolo_layer.c
           Generating Code...
       4>Done Building Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj" (default targets) -- FAILED.
       3>Done Building Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
       1>Done Building Project "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (default targets) -- FAILED.

  Build FAILED.

         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (default target) (1) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (default target) (3) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj" (default target) (4) ->
         (ClCompile target) ->
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vector(748,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\http_stream.cpp(302,9): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\ostream(746,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]


         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (default target) (1) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (default target) (3) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj" (default target) (5) ->
         (ClCompile target) ->
           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c(11,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj]    
           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c(13,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\darknet.vcxproj]
                                                                                                                                                                                                                                                                                               f095\out\build\darknet.vcxproj]   
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\install.vcxproj" (default target) (1) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\ALL_BUILD.vcxproj" (default target) (3) ->
         "E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj" (default target) (4) ->
           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\art.c(11,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]
           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\classifier.c(13,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d095\out\build\dark.vcxproj]       0a82d1f095\out\build\dark.vcxproj]           E:\Programming\Projects\iron-pole\target\debug\build\darknet-sys-8bbd4d0a82d1f095\out\darknet\src\demo.c(15,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [E:\Programming\Projects\iron-pole\target\de0a82d1f095\out\build\dark.vcxproj]bug\build\darknet-sys-8bbd4d0a82d1f095\out\build\dark.vcxproj]                                                                                                                                                                                                                                 f095\out\build\dark.vcxproj]      

      3 Warning(s)
      6 Error(s)

  Time Elapsed 00:00:11.75


  --- stderr
  Darknet_VERSION: 0.2.5.4
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_ASM_FLAGS
      CMAKE_ASM_FLAGS_DEBUG
      CUDA_ARCHITECTURES


  thread 'main' panicked at '
  command did not execute successfully, got: exit code: 1

  build script failed, must exit now', C:\Users\Zagitta\scoop\persist\rustup\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.50\src\lib.rs:1098:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Looking at the source files that fails the error is clearly windows related darknet/src/classifier.c:

#ifdef WIN32
#include <time.h>
#include "gettimeofday.h"
#else
#include <sys/time.h>
#endif

Not entirely sure why WIN32 isn't defined when compiling with MSVC but I'm guessing it's something not being configured right with cmake.
These are the args passed to cmake when using .\build.ps1 -UseVCPKG -EnableOPENCV -EnableCUDA -EnableCUDNN from the above repo to build:

-G "Ninja"  -DCMAKE_BUILD_TYPE=Release  -DCMAKE_INSTALL_PREFIX=E:\Programming\Sandbox\darknet   -DENABLE_VCPKG_INTEGRATION:BOOL=ON -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON -DVCPKG_BUILD_OPENCV_WITH_CUDA:BOOL=OFF -DENABLE_DEPLOY_CUSTOM_CMAKE_MODULES:BOOL=ON -DVCPKG_INSTALL_OPTIONS=--clean-buildtrees-after-build -S ..

which is clearly quite different to the args it's called with when building darknet-rust with default features:

"-G" "Visual Studio 16 2019" "-Thost=x64" "-Ax64" "-DBUILD_SHARED_LIBS=OFF" "-DENABLE_CUDA=OFF" "-DENABLE_CUDNN=OFF" "-DENABLE_OPENCV=OFF" "-DCUDA_ARCHITECTURES=Auto" "-DCMAKE_REQUIRE_FIND_PACKAGE_OpenMP=ON" "-DCMAKE_INSTALL_PREFIX=E:\\Programming\\Projects\\iron-pole\\target\\debug\\build\\darknet-sys-8bbd4d0a82d1f095\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Debug" 

After some trial and error stripped the above command line down and got it compiling by removing CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, CMAKE_ASM_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS_DEBUG and CMAKE_ASM_FLAGS_DEBUG.

However those seem to be coming from the cmake crate with no obvious way to disable them entirely so I'm not really sure how to fix it...
Any ideas @alianse777 ?