Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC's link.exe could not build visions.obj #21

Open
zerovirus123 opened this issue Oct 20, 2020 · 2 comments
Open

MSVC's link.exe could not build visions.obj #21

zerovirus123 opened this issue Oct 20, 2020 · 2 comments

Comments

@zerovirus123
Copy link

I am building the project by running pip install -e detectron2. However I encountered this error.

    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Deployment\.conda\envs\sliding_windows_py37_copy\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'F:\\detectron2\\setup.py'"'"'; __file__='"'"'F:\\detectron2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: F:\detectron2\
    Complete output (22 lines):
    running develop
    running egg_info
    writing detectron2.egg-info\PKG-INFO
    writing dependency_links to detectron2.egg-info\dependency_links.txt
    writing requirements to detectron2.egg-info\requires.txt
    writing top-level names to detectron2.egg-info\top_level.txt
    reading manifest file 'detectron2.egg-info\SOURCES.txt'
    writing manifest file 'detectron2.egg-info\SOURCES.txt'
    running build_ext
    building 'detectron2._C' extension
    Emitting ninja build file F:\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.9.0
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Deployment\.conda\envs\sliding_windows_py37_copy\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib/x64" /LIBPATH:C:\Users\Deployment\.conda\envs\sliding_windows_py37_copy\libs /LIBPATH:C:\Users\Deployment\.conda\envs\sliding_windows_py37_copy\PCbuild\amd64 /LIBPATH:C:\Users\Deployment\.conda\envs\sliding_windows_py37_copy\Library\lib c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__C F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\vision.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\ROIAlign\ROIAlign_cpu.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cpu.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\ROIAlign\ROIAlign_cuda.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cuda.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cuda.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda_kernel.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.obj F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\cuda_version.obj /OUT:build\lib.win-amd64-3.7\detectron2\_C.cp37-win_amd64.pyd /IMPLIB:F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\_C.cp37-win_amd64.lib
    LINK : fatal error LNK1181: cannot open input file 'F:\detectron2\build\temp.win-amd64-3.7\Release\detectron2\detectron2\layers\csrc\vision.obj'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\Hostx64\\x86\\link.exe' failed with exit status 1181

The linker could not open visions.obj as it was not built. Am I missing out on some includes and dependencies? Thanks.

@YuHangLau
Copy link

hello, I meet the same question. Did you solve it ?

@C4712
Copy link

C4712 commented Aug 25, 2021

i also meet the problem.Did you solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants