Hanqer / deep-hough-transform

Jittor and Pytorch code for paper "Deep Hough Transform for Semantic Line Detection" (ECCV 2020, PAMI 2021)
338 stars 71 forks source link

Failed to compile the C++ module due to incompatible gcc version. #11

Closed carlsummer closed 3 years ago

carlsummer commented 3 years ago

image

carlsummer commented 3 years ago

creating build/lib.linux-x86_64-3.8 g++ -pthread -shared -B /home/deploy/anaconda3/envs/yolov5_py38_cu102_conda/compiler_compat -L/home/deploy/anaconda3/envs/yolov5_py38_cu102_conda/lib -Wl,-rpath=/home/deploy/anaconda3/envs/yolov5_py38_cu102_conda/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/deploy/workspaces/CreepageDistance/models/_cdht/build/temp.linux-x86_64-3.8/deep_hough_cuda.o /home/deploy/workspaces/CreepageDistance/models/_cdht/build/temp.linux-x86_64-3.8/deep_hough_cuda_kernel.o -L/home/deploy/anaconda3/envs/yolov5_py38_cu102_conda/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda-10.2/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.8/deep_hough.cpython-38-x86_64-linux-gnu.so g++: error: /home/deploy/workspaces/CreepageDistance/models/_cdht/build/temp.linux-x86_64-3.8/deep_hough_cuda.o: No such file or directory g++: error: /home/deploy/workspaces/CreepageDistance/models/_cdht/build/temp.linux-x86_64-3.8/deep_hough_cuda_kernel.o: No such file or directory error: command 'g++' failed with exit status 1

Hanqer commented 3 years ago

Hi, I can't reproduce this error. Could you provide your g++ version, torch version? Or maybe you can create a new clean environment to try again?

zeakey commented 3 years ago

@carlsummer The warning clearly tells you that the compiler you are using does not match the one used to compile PyTorch.

On my side I successfully compiled using gcc 6.5.0.

carlsummer commented 3 years ago

I don‘t know why,but, I solve it for switch conda envs

HassanBinHaroon commented 2 years ago

Take a look at the following repository too.

https://github.com/HassanBinHaroon/deep-hough-transform