happinesslz / EPNetV2

EPNet++: Cascade Bi-directional Fusion for Multi-Modal 3D Object Detection (TPAMI-2022)
MIT License
56 stars 5 forks source link

error: command '/usr/bin/g++' failed with exit code 1 #8

Open MrYu001 opened 1 year ago

MrYu001 commented 1 year ago

Hey bro! what a perfect work! When i run this repository, and run the "cd pointnet2_lib/pointnet2. python setup.py install " to build the pointnet2, an error arised, that shows "ball_query.o group_point.o interpolate.o sampling.o" not exist, and gave the error "error: command 'usr/bin/g++ failed withe exit code 1". i think this error may be caused by the wrong version of g++, so i want to known the g++ version you used, thank you !

faziii0 commented 1 year ago

Hi I got same error and I downgrade gcc to 10 the error is gone but still didn't run the entire code.

sudo apt-get install -y gcc-10 sudo apt-get install -y g++-10

link gcc version

cd /usr/bin sudo rm gcc sudo ln -s gcc-10 gcc sudo rm g++ sudo ln -s g++-10 g++

check gcc --version g++ --version

HydrogenWasser commented 1 year ago

i think it is all because of the version of CUDA and torch. it seems that the torch version has to be 1.2 so that the setup code can run, other version, like 1.9, dosent work, even if my CUDA version(11.1) and torch version(1.9.1) are matched.