CTPN icon indicating copy to clipboard operation
CTPN copied to clipboard

/usr/bin/ld: .build_release/examples/cpp_classification/classification.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi'

Open ZhangXinNan opened this issue 7 years ago • 1 comments

[zhangxin]$ make
CXX/LD -o .build_release/examples/cpp_classification/classification.bin
/usr/bin/ld: .build_release/examples/cpp_classification/classification.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi'
/usr/bin/ld: note: '_ZN2cv6imreadERKNS_6StringEi' is defined in DSO /usr/local/lib/libopencv_imgcodecs.so.3.2 so try adding it to the linker command line
/usr/local/lib/libopencv_imgcodecs.so.3.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [.build_release/examples/cpp_classification/classification.bin] Error 1

ZhangXinNan avatar May 11 '17 04:05 ZhangXinNan

uncomment USE_PKG_CONFIG := 1 把USE_PKG_CONFIG := 1这一行取消注释

ZhangXinNan avatar May 11 '17 04:05 ZhangXinNan