msracver / FCIS

Fully Convolutional Instance-aware Semantic Segmentation
MIT License
1.57k stars 415 forks source link

Failed to build on windows with CUDA 9.0 and VC 2015 #122

Open mailqq100 opened 6 years ago

mailqq100 commented 6 years ago

init.bat failed to build nms with output: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe --compiler-bindir "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN" --shared -LD:\Anaconda\envs\gluon\libs -LD:\Anaconda\envs\gluon\PCbuild\amd64 "-LD:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "-LD:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\ LIB\amd64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x64" "-LC:\Program Files (x86)\Windows Kits\N ETFXSDK\4.6.1\lib\um\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x64" "-LD:\Program Files (x86)\M icrosoft Visual Studio 14.0\VC\LIB" "-LD:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86" "-LC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86" -lcublas build\temp.win-amd64-3.6\Release\gpu_nms.ob j -o build\lib.win-amd64-3.6\gpu_nms.cp36-win_amd64.pyd --linker-options=/nologo,/INCREMENTAL:NO,/LTCG,/MANIFEST:EMBED,I D=2,/MANIFESTUAC:NO,/IMPLIB:build\temp.win-amd64-3.6\Release\gpu_nms.cp36-win_amd64.lib,/NODEFAULTLIB:libcmt.lib gpu_nms.obj LINK : fatal error LNK1181: cannot open input file 'ID=2.obj' error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe' failed with exit status 2

Nick198903 commented 6 years ago

I also met this error. Have you solved it?

ferakon commented 4 years ago

Same error, going to try CUDA 8~

ferakon commented 4 years ago

This error I still get with VS 2015 and CUDA 8. CUDA 7.5 won't work because it requires < VS 2013, which is too old to build the modules.

I think this error can be fixed by removing that "ID=2" somehow. A similar error is highlighted over at the py-faster-rcnn repo: https://github.com/MrGF/py-faster-rcnn-windows/issues/17#issuecomment-356194546

If anyone else has any success before I do, let me know.

ferakon commented 4 years ago

I fixed this by adding the following line:

# remove ID=2 elif ',ID=2' in c: del cmd[idx]

...to the bottom of the elif statements in: setup_windows_cuda.py in lib\nms (elif statement should be added within for loop that starts at line 85) setup_windows.py in lib\mask (elif statement should be added within for loop that starts at line 82)

Hope that helps people who are stuck!