Open Schulz19 opened 3 years ago
别拿vckpg编译,直接使用VS2019.或者使用Cmake。
别拿vckpg编译,直接使用VS2019.或者使用Cmake。
yeah, theres alot of issues now with arch 35 etc aswell. you can grab a prebuilt binary of opencv or compile it yourself and add to path. cmake gui and vs 19 handles the rest
Hello,
during installation with windows powershell and vcpkg: .\vcpkg install darknet[full]:x64-windows
I got at this point an error message:
**CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message): Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j17 Working Directory: D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg See logs for more information: D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\install-x64-windows-dbg-out.log
Call Stack (most recent call first): scripts/cmake/vcpkg_build_cmake.cmake:105 (vcpkg_execute_build_process) scripts/cmake/vcpkg_install_cmake.cmake:45 (vcpkg_build_cmake) ports/opencv4/portfile.cmake:385 (vcpkg_install_cmake) scripts/ports.cmake:142 (include)
Error: Building package opencv4:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with
.\vcpkg update
, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: opencv4:x64-windows Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7eAdditionally, attach any relevant sections from the log files above.**
Error log:
**[1/1220] "C:/Program Files/CMake/bin/cmcldeps.exe" RC D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\cudev\vs_version.rc modules\cudev\CMakeFiles\opencv_cudev.dir\vs_version.rc.res.d modules\cudev\CMakeFiles\opencv_cudev.dir\vs_version.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WINDOW~4\10\bin\100190~1.0\x64\rc.exe -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-0a6ce0443d.clean\modules\cudev\src -I D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-0a6ce0443d.clean\modules\cudev\include -I D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\cudev -I D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-e92f755db3.clean\modules\core\include -I D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg -c65001 /DWIN32 -D_DEBUG /fo modules\cudev\CMakeFiles\opencv_cudev.dir\vs_version.rc.res D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\cudev\vs_version.rc Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
[2/1220] C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe /TP -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -D__OPENCV_BUILD=1 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-0a6ce0443d.clean\modules\cudev\src -ID:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-0a6ce0443d.clean\modules\cudev\include -Imodules\cudev -ID:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-e92f755db3.clean\modules\core\include -I. /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /GR /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4189 /wd4505 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /Fomodules\cudev\CMakeFiles\opencv_cudev.dir\src\stub.cpp.obj /Fdlib\opencv_cudevd.pdb /FS -c D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-0a6ce0443d.clean\modules\cudev\src\stub.cpp [3/1220] cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=modules\cudev\CMakeFiles\opencv_cudev.dir --rc=C:\PROGRA~2\WINDOW~4\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WINDOW~4\10\bin\100190~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\link.exe modules\cudev\CMakeFiles\opencv_cudev.dir\src\stub.cpp.obj modules\cudev\CMakeFiles\opencv_cudev.dir\vs_version.rc.res /out:bin\opencv_cudevd.dll /implib:lib\opencv_cudevd.lib /pdb:bin\opencv_cudevd.pdb /dll /version:4.5 /machine:x64 /nologo /debug /INCREMENTAL /NODEFAULTLIB:libc /DEBUG -LIBPATH:C:\PROGRA~1\NVIDIA~2\CUDA\v11.2\lib\x64 -LIBPATH:D:\darknet-master6\darknet-master\vcpkg\installed\x64-windows\lib cudart_static.lib nppc.lib nppial.lib nppicc.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cudnn.lib cufft.lib -LIBPATH:"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2/lib/x64" -LIBPATH:"D:/darknet-master6/darknet-master/vcpkg/installed/x64-windows/lib" cudart_static.lib nppc.lib nppial.lib nppicc.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cudnn.lib cufft.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." [4/1220] cmd.exe /C "cd /D D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\core && "C:\Program Files\CMake\bin\cmake.exe" -DMODULE_NAME=core -DCL_DIR=D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/src/4.5.1-e92f755db3.clean/modules/core/src/opencl -DOUTPUT=D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/opencl_kernels_core.cpp -P D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/src/4.5.1-e92f755db3.clean/cmake/cl2cpp.cmake" [5/1220] cmd.exe /C "cd /D D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\core\CMakeFiles\cuda_compile_1.dir\src\cuda && "C:\Program Files\CMake\bin\cmake.exe" -E make_directory D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && "C:\Program Files\CMake\bin\cmake.exe" -D verbose:BOOL=OFF -D build_configuration:STRING=Debug -D generated_file:STRING=D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj -D generated_cubin_file:STRING=D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj.cubin.txt -P D:/darknet-master6/darknet-master/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake" gpu_mat.cu nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). D:\darknet-master6\darknet-master\vcpkg\buildtrees\opencv4\src\4.5.1-e92f755db3.clean\modules\core\include\opencv2/core/types.hpp(530): warning: field of class type without a DLL interface used in a class with a DLL interface**
* nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). stereosgm.cu ninja: build stopped: subcommand failed.
Any solution available?