CTPN
CTPN copied to clipboard
/usr/bin/ld: .build_release/examples/cpp_classification/classification.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi'
[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
uncomment USE_PKG_CONFIG := 1 把USE_PKG_CONFIG := 1这一行取消注释