thank you sir for your help
I came to know that in order to compile my files, I should rather remove -lopencv_ts from opencv.pc but, I am not able to do that. Can I get some to do that.
What image are you using, from where did you download it? How are you trying to remove -lopencv_ts? Please post a screenshot of opencv.pc.