graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
14.85k stars 1.94k forks source link

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe' failed with exit code 1181 #960

Open linhcentrio opened 3 months ago

linhcentrio commented 3 months ago

(D:\Gaussian\gaussian-splatting\venv) D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence>SET DISTUTILS_USE_SDK=1

(D:\Gaussian\gaussian-splatting\venv) D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence>pip install -e . --no-build-isolation --no-deps Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Obtaining file:///D:/Gaussian/GaussianOcc/submodule/diff-gaussian-rasterization-confidence Preparing metadata (setup.py) ... done Installing collected packages: diff_gaussian_rasterization DEPRECATION: Legacy editable install of diff_gaussian_rasterization==0.0.0 from file:///D:/Gaussian/GaussianOcc/submodule/diff-gaussian-rasterization-confidence (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457 Running setup.py develop for diff_gaussian_rasterization error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
    running develop
    running egg_info
    writing diff_gaussian_rasterization.egg-info\PKG-INFO
    writing dependency_links to diff_gaussian_rasterization.egg-info\dependency_links.txt
    writing top-level names to diff_gaussian_rasterization.egg-info\top_level.txt
    reading manifest file 'diff_gaussian_rasterization.egg-info\SOURCES.txt'
    adding license file 'LICENSE.md'
    writing manifest file 'diff_gaussian_rasterization.egg-info\SOURCES.txt'
    running build_ext
    building 'diff_gaussian_rasterization._C' extension
    D:\Gaussian\gaussian-splatting\venv\lib\site-packages\setuptools\command\develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    D:\Gaussian\gaussian-splatting\venv\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    Emitting ninja build file D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\build.ninja...
    Compiling objects...
    Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
    1.11.1.git.kitware.jobserver-1
    "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Gaussian\gaussian-splatting\venv\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib\x64" /LIBPATH:D:\Gaussian\gaussian-splatting\venv\libs /LIBPATH:D:\Gaussian\gaussian-splatting\venv /LIBPATH:D:\Gaussian\gaussian-splatting\venv\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\lib\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__C D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/backward.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/forward.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/rasterizer_impl.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\ext.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\rasterize_points.obj /OUT:build\lib.win-amd64-cpython-38\diff_gaussian_rasterization\_C.cp38-win_amd64.pyd /IMPLIB:D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer\_C.cp38-win_amd64.lib
    LINK : fatal error LNK1181: cannot open input file 'D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer\backward.obj'
    error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe' failed with exit code 1181
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [43 lines of output] running develop running egg_info writing diff_gaussian_rasterization.egg-info\PKG-INFO writing dependency_links to diff_gaussian_rasterization.egg-info\dependency_links.txt writing top-level names to diff_gaussian_rasterization.egg-info\top_level.txt reading manifest file 'diff_gaussian_rasterization.egg-info\SOURCES.txt' adding license file 'LICENSE.md' writing manifest file 'diff_gaussian_rasterization.egg-info\SOURCES.txt' running build_ext building 'diff_gaussian_rasterization._C' extension D:\Gaussian\gaussian-splatting\venv\lib\site-packages\setuptools\command\develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
D:\Gaussian\gaussian-splatting\venv\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
Emitting ninja build file D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.11.1.git.kitware.jobserver-1
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Gaussian\gaussian-splatting\venv\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib\x64" /LIBPATH:D:\Gaussian\gaussian-splatting\venv\libs /LIBPATH:D:\Gaussian\gaussian-splatting\venv /LIBPATH:D:\Gaussian\gaussian-splatting\venv\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\lib\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__C D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/backward.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/forward.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer/rasterizer_impl.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\ext.obj D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\rasterize_points.obj /OUT:build\lib.win-amd64-cpython-38\diff_gaussian_rasterization\_C.cp38-win_amd64.pyd /IMPLIB:D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer\_C.cp38-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file 'D:\Gaussian\GaussianOcc\submodule\diff-gaussian-rasterization-confidence\build\temp.win-amd64-cpython-38\Release\cuda_rasterizer\backward.obj'
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe' failed with exit code 1181
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

MMMaverick commented 1 month ago

Have you resolved this issue? I'm now encountering the same problem with CUDA 11.8 and VS2019

wildchild756 commented 1 week ago

Did you solve this issue? im stuck with same error for 2 weeks