gsplat icon indicating copy to clipboard operation
gsplat copied to clipboard

Failed install the gsplat

Open mingqiJ opened this issue 7 months ago • 4 comments

When I use the pip install git+https://github.com/nerfstudio-project/gsplat.git to install the gsplat. It takes error:

Traceback (most recent call last):
      File "/home/anaconda3/envs/gsplat118/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
        subprocess.run(
      File "/home/anaconda3/envs/gsplat118/lib/python3.8/subprocess.py", line 516, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '10']' returned non-zero exit status 1.

But when I use ninja --version, it said I already have: 1.11.1.git.kitware.jobserver-1

Do you know why it is? If I changed the cpp_extension.py from ['ninja', '-v'] to ['ninja', '--version']. It takes error:

g++: error: /tmp/pip-req-build-r6lwswgw/build/temp.linux-x86_64-cpython-38/gsplat/cuda_legacy/csrc/backward.o: No such file or directory
      g++: error: /tmp/pip-req-build-r6lwswgw/build/temp.linux-x86_64-cpython-38/gsplat/cuda_legacy/csrc/bindings.o: No such file or directory
      g++: error: /tmp/pip-req-build-r6lwswgw/build/temp.linux-x86_64-cpython-38/gsplat/cuda_legacy/csrc/ext.o: No such file or directory
      g++: error: /tmp/pip-req-build-r6lwswgw/build/temp.linux-x86_64-cpython-38/gsplat/cuda_legacy/csrc/forward.o: No such file or directory
      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gsplat
  Running setup.py clean for gsplat
Failed to build gsplat
ERROR: Could not build wheels for gsplat, which is required to install pyproject.toml-based projects

Is there any solution to fix this? My nvcc is 11.8. And gcc/g++ is 10.5.0

mingqiJ avatar Jul 05 '24 06:07 mingqiJ