c++ - Why does pkg-config --libs opencv return library locations and not the libraries themselves? -


i trying compile c++ program incorporates opencv. want use pkg-config make compilation easier. not work due fact pkg-config -libs opencv returns library locations , not libraries themselves. got:

/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 ... 

while expecting like

-l/usr/local/include/ -lopencv_contrib -lopencv_features2d ... 

have screwed up? if not, why has happened? , can fixed?

the output of pkg-config correct.

the gnu linker (ld) (i don't know if others too) allows write libraries full path, without -l or -l, in addition usual -l , -l options.

the error must in other place.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -