lxxue / FRNN

Fixed Radius Nearest Neighbor Search on GPU
181 stars 24 forks source link

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120 #14

Closed Ker-2311 closed 9 months ago

Ker-2311 commented 9 months ago

Hi, There is a problem in the FRNN installing. Could you give me some advice for this problem? Thank you

''' cd ../../ pip install -e .

D:\Anaconda\envs\SPT\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\link.exe' failed with exit code 1120 [end of output]

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

My environment is as follows: Python 3.8 CUDA 11.8 Pytorch 2.0.1

lxxue commented 9 months ago

Hi,

I am not familiar with the build environment on Windows. I did some quick search and this post about encoding might be useful for your case.

Ker-2311 commented 9 months ago

Thank you for your help. I have solved this problem. Just change all the long type to long long type.

lxxue commented 9 months ago

Did you clone an old version of FRNN? I thought in this PR #13 all the long types had been changed to int64_t for compatibility. Is there a missing one?

Ker-2311 commented 9 months ago

Yeah, I cloned the old one and I just found out now.