ubuntu18.04
CUDA 10.0
Cudnn 7.5.0
gcc 7.3
when i make the caffe-faster-rcnn, i get the problem
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/finetune_net.bin
CXX/LD -o .build_release/tools/caffe.bin
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/compute_image_mean.bin' failed
make: * [.build_release/tools/compute_image_mean.bin] Error 1
make: 正在等待未完成的任务....
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/convert_imageset.bin' failed
make: [.build_release/tools/convert_imageset.bin] Error 1
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed
make: [.build_release/tools/upgrade_solver_proto_text.bin] Error 1
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/extract_features.bin' failed
make: [.build_release/tools/extract_features.bin] Error 1
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed
make: [.build_release/tools/upgrade_net_proto_binary.bin] Error 1
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/upgrade_net_proto_text.bin' failed
make: [.build_release/tools/upgrade_net_proto_text.bin] Error 1
.build_release/lib/libcaffe.so:对‘__cudaPushCallConfiguration’未定义的引用
.build_release/lib/libcaffe.so:对‘__cudaPopCallConfiguration’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:607: recipe for target '.build_release/tools/caffe.bin' failed
make: * [.build_release/tools/caffe.bin] Error 1
here is my makefile.config
USE_CUDNN := 1
OPENCV_VERSION := 3
CUDA_DIR := /usr/local/cuda
CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_50,code=compute_50
BLAS := atlas
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/lib/python2.7/dist-packages/numpy/core/include
# PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
# $(ANACONDA_HOME)/include/python2.7 \
# $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
# PYTHON_INCLUDE := /usr/include/python3.5m \
PYTHON_LIB := /usr/lib
WITH_PYTHON_LAYER := 1
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
pkg-config to specify OpenCV library paths.BUILD_DIR := build
DISTRIBUTE_DIR := distribute
TEST_GPUID := 0
Q ?= @
can anybody help me ?
i solved this problem by use cmake!
@svendon can you please explain to me how did you solve it using cmake? Can you please provide some solution steps.
@kingman21 Have you solve this problem now? i am confused with it and try several methods but all failed.
Most helpful comment
@svendon can you please explain to me how did you solve it using cmake? Can you please provide some solution steps.