conansherry / detectron2

detectron2 windows build
Apache License 2.0
225 stars 55 forks source link

无法打开输入文件(can't open)vision.obj #31

Open C4712 opened 3 years ago

C4712 commented 3 years ago

(ts_env) D:\project\public\detectron2>python setup.py build develop running build running build_py running build_ext building 'detectron2._C' extension Emitting ninja build file D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\conda\envs\ts_env\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib/x64" /LIBPATH:D:\conda\envs\ts_env\libs /LIBPATH:D:\conda\envs\ts_env\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__C D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\vision.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\cocoeval\cocoeval.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cpu.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cuda.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda_kernel.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cuda.obj D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\cuda_version.obj /OUT:build\lib.win-amd64-3.7\detectron2_C.cp37-win_amd64.pyd /IMPLIB:D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc_C.cp37-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“D:\project\public\detectron2\build\temp.win-amd64-3.7\Release\project\public\detectron2\detectron2\layers\csrc\vision.obj” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe' failed with exit status 1181

ghsticker commented 2 months ago

请问这个问题怎么解决的?