smallcorgi / Faster-RCNN_TF

Faster-RCNN in Tensorflow
MIT License
2.34k stars 1.12k forks source link

can't make in Faster-RCNN-TF/lib #234

Open chunguGuo opened 7 years ago

chunguGuo commented 7 years ago

when I make in document Faster-RCNN-TF/lib , I get warnings and a error:

python setup.py build_ext --inplace running build_ext cythoning utils/bbox.pyx to utils/bbox.c building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/utils {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/forever/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/forever/anaconda2/include/python2.7 -c utils/bbox.c -o build/temp.linux-x86_64-2.7/utils/bbox.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/forever/anaconda2/compiler_compat -L/home/forever/anaconda2/lib -Wl,-rpath=/home/forever/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/bbox.o -L/home/forever/anaconda2/lib -lpython2.7 -o /home/forever/Desktop/Faster-RCNN_TF/lib/utils/cython_bbox.so cythoning utils/nms.pyx to utils/nms.c building 'utils.cython_nms' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/forever/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/forever/anaconda2/include/python2.7 -c utils/nms.c -o build/temp.linux-x86_64-2.7/utils/nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/forever/anaconda2/compiler_compat -L/home/forever/anaconda2/lib -Wl,-rpath=/home/forever/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/nms.o -L/home/forever/anaconda2/lib -lpython2.7 -o /home/forever/Desktop/Faster-RCNN_TF/lib/utils/cython_nms.so cythoning nms/cpu_nms.pyx to nms/cpu_nms.c building 'nms.cpu_nms' extension creating build/temp.linux-x86_64-2.7/nms {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/forever/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/forever/anaconda2/include/python2.7 -c nms/cpu_nms.c -o build/temp.linux-x86_64-2.7/nms/cpu_nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/forever/anaconda2/compiler_compat -L/home/forever/anaconda2/lib -Wl,-rpath=/home/forever/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/cpu_nms.o -L/home/forever/anaconda2/lib -lpython2.7 -o /home/forever/Desktop/Faster-RCNN_TF/lib/nms/cpu_nms.so cythoning nms/gpu_nms.pyx to nms/gpu_nms.cpp building 'nms.gpu_nms' extension {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} /usr/local/cuda-8.0/bin/nvcc -I/home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/home/forever/anaconda2/include/python2.7 -c nms/nms_kernel.cu -o build/temp.linux-x86_64-2.7/nms/nms_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC' ptxas info : 0 bytes gmem ptxas info : Compiling entry function '_Z10nms_kernelifPKfPy' for 'sm_35' ptxas info : Function properties for _Z10nms_kernelifPKfPy 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 25 registers, 1280 bytes smem, 344 bytes cmem[0], 8 bytes cmem[2] {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} gcc -pthread -B /home/forever/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/home/forever/anaconda2/include/python2.7 -c nms/gpu_nms.cpp -o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -Wno-unused-function cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from nms/gpu_nms.cpp:499: /home/forever/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

warning "Using deprecated NumPy API, disable it by " \

^ g++ -pthread -shared -B /home/forever/anaconda2/compiler_compat -L/home/forever/anaconda2/lib -Wl,-rpath=/home/forever/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/nms_kernel.o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -L/usr/local/cuda-8.0/lib64 -L/home/forever/anaconda2/lib -R/usr/local/cuda-8.0/lib64 -lcudart -lpython2.7 -o /home/forever/Desktop/Faster-RCNN_TF/lib/nms/gpu_nms.so g++: error: unrecognized command line option ‘-R’ error: command 'g++' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1

chunguGuo commented 7 years ago

how can I solve this problem?

TracesChen commented 6 years ago

I also met this problem. Is there a solution?

TracesChen commented 6 years ago

@chunguGuo You've solved the problem.

DetectionIIT commented 6 years ago

I also met this, have you solved?