tianzhi0549 / FCOS

FCOS: Fully Convolutional One-Stage Object Detection (ICCV'19)
https://arxiv.org/abs/1904.01355
Other
3.28k stars 630 forks source link

compile error in win10 #356

Open goldentimecoolk opened 3 years ago

goldentimecoolk commented 3 years ago
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\anaconda3\envs\yol
o\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\lib/x64" /LIBPATH:C:\Users\Administrator\anaconda3\envs\yolo\libs /LIBPATH:C:\Users\Administrator\anaconda3\envs\yolo\PCbuild\amd64 "/LIBP
ATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program
 Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" "/LIBPATH:C:\Program Files\mingw-w64\x86_64-5.4.0-win32-seh-rt_v5-rev0\mingw64\lib" c10.lib torch.lib tor
ch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda_cu.lib torch_cuda_cpp.lib /EXPORT:PyInit__C E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\vision.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\
csrc\cpu\nms_cpu.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cpu\ROIAlign_cpu.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\deform_conv_cuda.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release
\fcos_core\csrc\cuda\deform_conv_kernel_cuda.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\deform_pool_cuda.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\deform_pool_kernel_cuda.obj E:\co
de\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\ml_nms.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\nms.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\ROIAlign_cuda.obj E:\co
de\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\ROIPool_cuda.obj E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\cuda\SigmoidFocalLoss_cuda.obj /OUT:build\lib.win-amd64-3.8\fcos_core\_C.cp38-win_amd64.pyd /IMP
LIB:E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\_C.cp38-win_amd64.lib
LINK : fatal error LNK1181: 无法打开输入文件“E:\code\FCOS\build\temp.win-amd64-3.8\Release\fcos_core\csrc\vision.obj”
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

The problem is the vision.obj cannot be produced, which may result from compiling tools or some dependencies. How to solve it? Thank you.