6/22/2018

Ubuntu C++ OpenCV version Check

version check
 $ pkg-config --modversion opencv

Package check
 $ pkg-config --libs opencv

path check
 $ pkg-config --cflags opencv

for example:
...
19:42 ~ $ pkg-config --modversion opencv                                                                                                 
2.4.9
19:42 ~ $ pkg-config --libs opencv                                                                                                       
/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -ltbb -lrt -lpthread -lm -ldl  
19:42 ~ $ pkg-config --cflags opencv                                                                                                     
-I/usr/local/include/opencv -I/usr/local/include 
...

No comments:

Post a Comment