1. 程式人生 > >pkg-config命令瞭解和使用

pkg-config命令瞭解和使用

最常用的有:

pkg-config 庫的名稱(比如,--libs

pkg-config 庫的名稱(比如,)--cflags

或者:

pkg-config 庫的名稱(比如,opencv--libs --cflags

1:pkg-config --libs --cflags   輸出:編譯和連結使用

-I/usr/local/include/opencv -I/usr/local/include  -L/usr/local/lib -lopencv_shape -lopencv_stitching -lopencv_objdetect -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core