Skip to content

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

@b-sia

Description

@b-sia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions