I am not so family with the compiling staff and got an error below when I run the "sh make.sh". Pls help. Thanks a lot.
(py27) Xiaoke@apollo:~/repos/faster-rcnn/faster-rcnn.pytorch/lib$ sh make.sh
running build_ext
skipping 'model/utils/bbox.c' Cython extension (up-to-date)
building 'model.utils.cython_bbox' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/model
creating build/temp.linux-x86_64-2.7/model/utils
{'gcc': ['-Wno-cpp', '-Wno-unused-function']}
gcc -pthread -B /data/apollo/a/Xiaoke/miniconda2/envs/py27/compiler_compat -Wl,--sysroot=/ -fno-st
rict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/apollo/a/Xiaoke
54/miniconda2/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/data/apollo/a/Xiaoke/miniconda2/envs/py27/include/python2.7 -c model/utils/bbox.c -o build/temp.linux-x86_64-2.7/model/utils/bbox.o -Wno-cpp -Wno-unused-function
gcc -pthread -shared -B /data/apollo/a/Xiaoke/miniconda2/envs/py27/compiler_compat -L/data/apollo/a/Xiaoke/miniconda2/envs/py27/lib -Wl,-rpath=/data/apollo/a/Xiaoke4/miniconda2/envs/py27/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-2.7/model/utils/bbox.o -L/data/apollo/a/Xiaoke/miniconda2/envs/py27/lib -lpython2.7 -o /data/apollo/a/Xiaoke/repos/faster-rcnn/faster-rcnn.pytorch/lib/model/utils/cython_bbox.so
/data/apollo/a/Xiaoke/miniconda2/envs/py27/compiler_compat/ld: cannot find -lpthread
/data/apollo/a/Xiaoke/miniconda2/envs/py27/compiler_compat/ld: cannot find -lc
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Compiling nms kernels by nvcc...
I am using the conda env:
linux 14.04
CUDA 8.0
Python 2.7.14 |Anaconda, Inc.| (default, Mar 12 2018, 12:37:12)
[GCC 7.2.0] on linux2
Thanks.
@liketheflower hi, you should install anaconda instead of miniconda.
Thanks for your quick feedback. I will try anaconda to see whether it works.
It works! Thanks a lot.
But I run this make.sh in anaconda, but I have a same question, I have no idea to deal with this problem
@Bigwode Have you found any solutions?
maybe you don't have this file : .//layers/roi_pooling/src/cuda/roi_pooling_kernel.cu.o
Most helpful comment
But I run this make.sh in anaconda, but I have a same question, I have no idea to deal with this problem