r4dl / StopThePop

Original reference implementation of "StopThePop: Sorted Gaussian Splatting for View-Consistent Real-time Rendering"
https://r4dl.github.io/StopThePop/
Other
149 stars 8 forks source link

Encountered error while trying to install package. ╰─> diff_gaussian_rasterization #4

Closed YingjianYu closed 3 months ago

YingjianYu commented 4 months ago

When I installed the diff_gaussian_rasterization, I encounted the following error information and the installation failed. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing /home/sot/projects/win_projects/StopThePop-Rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff_gaussian_rasterization Building wheel for diff_gaussian_rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [2057 lines of output] ........ RuntimeError: Error compiling objects for extension [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff_gaussian_rasterization Running setup.py clean for diff_gaussian_rasterization Failed to build diff_gaussian_rasterization Installing collected packages: diff_gaussian_rasterization Running setup.py install for diff_gaussian_rasterization ... error error: subprocess-exited-with-error

× Running setup.py install for diff_gaussian_rasterization did not run successfully. │ exit code: 1 ╰─> [2072 lines of output] running install /home/sot/anaconda3/envs/stopthepop/lib/python3.7/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.
          ********************************************************************************

  !!

................... RuntimeError: Error compiling objects for extension [end of output]

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

× Encountered error while trying to install package. ╰─> diff_gaussian_rasterization

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

r4dl commented 3 months ago

Hi, we can't help you out with the given details. Are there any errors reported during compilation?

YingjianYu commented 3 months ago

Hi, the errors reported during compilation are in the attached file. output.txt

steimich96 commented 3 months ago

Which CUDA and gcc version are you using?

Also, please try setting some extra compile arguments here to enable C++17 features:

            extra_compile_args={
                "cxx": ["-std=c++17"],
                "nvcc":
                [
                    "-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "third_party/glm/"),
                    "-std=c++17"
                ]
            }

Please let us know if that worked for you.

YingjianYu commented 3 months ago

Which CUDA and gcc version are you using?

Also, please try setting some extra compile arguments here to enable C++17 features:

            extra_compile_args={
                "cxx": ["-std=c++17"],
                "nvcc":
                [
                    "-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "third_party/glm/"),
                    "-std=c++17"
                ]
            }

Please let us know if that worked for you.

I am using CUDA 11.3 and gcc 9.4. Still failed. CUDA 11.3 supports GCC 10.0.0 at the highest level . That is to say, cuda11.3 does not support c++17, and further compilation cannot be successful. Due to the complexity of changing the CUDA version, could you provide a program that does not require such a high C++version?

steimich96 commented 3 months ago

We have currently no plans to backport this to older CUDA versions. You will sadly have to do this yourself or update your CUDA version.

YingjianYu commented 3 months ago

I updated my cudatoolkit to 11.6 and g++ (gcc) to 11.4, which support the c++ 17, but I still can't install the diff-gaussian-rasterization.

steimich96 commented 3 months ago

That is strange. You can try deleting the submodules/diff-gaussian-rasterization/build folder before rebuilding.

YingjianYu commented 3 months ago

Thanks. Could you please tell me what version of cuda toolkit and g++ you use?

trThanhnguyen commented 1 day ago

Hi @YingjianYu , have you solved this issue? I'm encountering the same problem. I used CUDA 11.6 and g++-9. Thank you in advance.