Closed zjjdes closed 3 years ago
Hi @zjjdes Thanks for your interest. I haven't met such problems before. It seems like the object file is corrupted somehow. Could you first remove the *.o
in cpp_wrappers and then rerun compile.sh
?
@XuyangBai Thanks for your reply. I tried removing the build folder and compiling again, no luck. My guess is that the problem is in the following two lines:
build/temp.linux-x86_64-3.6/cpp_wrappers/cpp_utils/cloud/cloud.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status
So I think I still have issues with the GCC version. The original installation guide of KPConv suggests Ubuntu 16.04, which includes gcc 5.4 by default. I tried using gcc 5.5 but it did not work. Can I ask which version of gcc you used to successfully compile this?
Hi @zjjdes I use gcc 6.5 with Ubuntu 18.04
@XuyangBai Thanks for your swift reply! I think I just found the solution here. I followed this guide and ran the script again, this time the aforementioned errors did not occur, and it generated grid_subsampling.cpython-36m-x86_64-linux-gnu.so
in cpp_subsampling/grid_subsampling
. Does this mean it has been successfully compiled? If so, please feel free to close the issue, and thanks again for your help.
Hi @zjjdes yes, it should be successfully compiled now. You can try the training or evaluation code to verify.
Hi there,
Firstly thanks for the excellent work. I'm having trouble compiling the
grid_subsampling
extention (compile_wrappers.sh
). The error log is here:My environment:
I suspected the version of GCC might be the cause, so I tried changing both the versions of GCC in the system and in CUDA to 5.5 but the problem persists.
Could you please advise how to solve this issue? Thanks.