命令行opencv中缺少DSO

时间:2016-01-12 08:27:21

标签: opencv g++

我跑了这个命令

g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/local/lib/ -g -o binary DisplayImage.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_stitching

我收到此错误

/usr/bin/ld: /tmp/ccB73ml3.o: undefined reference to symbol
'_ZN2cv6imreadERKNS_6StringEi'

//usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO
missing from command line

我不知道链接应该是什么顺序

0 个答案:

没有答案