YihangChen-ee / HAC

:house: [ECCV 2024] Pytorch implementation of 'HAC: Hash-grid Assisted Context for 3D Gaussian Splatting Compression'
Other
195 stars 11 forks source link

Building wheel for gridencoder (setup.py) ... error #12

Open Shell0222 opened 1 month ago

Shell0222 commented 1 month ago

Hello! This is a great job! I found such a problem during the replication process. How can I solve it?

Building wheel for gridencoder (setup.py) ... error

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for gridencoder Running setup.py clean for gridencoder Failed to build gridencoder ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (gridencoder)

YihangChen-ee commented 1 month ago

Hi, do you have full log for this error?

I recommend you use the same cuda and gcc version as ours. (ie, cuda 11.8, gcc 9.4.0)

2003jiahang commented 3 weeks ago

I have the same issue, i figure it out by changing the setup.py in the gridencoder I change the c++14 to c++17. My cuda is 12.4 and pip install torchaudio==2.1.0+cu121 torchvision==0.16.0+cu121 --index-url https://download.pytorch.org/whl/cu121 setup I make this change because I see home/liujiahang/miniconda3/envs/HAC_env/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:27:2: error: #error You need C++17 to compile PyTorch /home/liujiahang/miniconda3/envs/HAC_env/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: C++17 or later compatible compiler is required to use PyTorch. This means that I need the C++ version greater than or equal to 17

2003jiahang commented 3 weeks ago

@Shell0222