not sure whether the opencv opkg package you installed puts the opencv.pc correctly.
Maybe try "pkg-config --libs opencv" directly on the console first.
Apart from that - when I ran opencv on Galileo I just put the lib path "-L ..." and the libraries directly which should work anyways.
kindly can you tell the steps in detail when i use this pkg-config --libs opencv" it gives me this error :-
Also the command to run on cpp using opencv is not clear.
Intel Galileo Gen 2 Eurobot
hi i tried this command
g++ -Wall -g -o cam cam.cpp -I /usr/include/opencv2 -L /usr/bin -lopencv_core -lopencv_highgui -lopencv_imgproc
it gives me no error then after this imorder to compile i write :
there is no result
Apparently I don't have the SD card image you have (I use the eglibc based one from Intel(R) IoT devkit).
Nevertheless, I'd suggest compiling w/o the pkg-config / pkg-libs flags but rather directly giving the libraries (-lopencv..)