Epiphqny/VisTR

error: command 'g++' failed with exit status 1

StiphyJay opened this issue · 1 comments

Hello. Thanks for you open-source code. However, when i run the command in
python setup.py build_ext --inplace.
I meet the problems in here:

(pytorch15) sifan@fudan:~/slam-package/vistr/models/dcn$ python setup.py build_ext --inplace
running build_ext
building '_C' extension
creating /home/sifan/slam-package/vistr/models/dcn/build
creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7
creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable
Emitting ninja build file /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /home/sifan/anaconda3/envs/pytorch15/compiler_compat -L/home/sifan/anaconda3/envs/pytorch15/lib -Wl,-rpath=/home/sifan/anaconda3/envs/pytorch15/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o -L/home/sifan/anaconda3/envs/pytorch15/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.7/_C.cpython-37m-x86_64-linux-gnu.so
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o: No such file or directory
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o: No such file or directory
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o: No such file or directory
error: command 'g++' failed with exit status 1

I don't know how to solve this problem. Could you give me some help? Thank you very much!

I have the same problem. Have you solved it?