Quote Originally Posted by Zlatomir View Post
The -l lib name option needs to be on the same line as the -L so you need a \, and also the debug/release are not supposed to be linked together, so the syntax should become something like:
Qt Code:
  1. CONFIG( debug, debug|release ) {
  2. #debug libs
  3. LIBS += -LLIBS +=-LC:/opencv/build/x86/vc11/staticlib\
  4. -lopencv_core246d\
  5. -lopencv_highgui246d
  6. }
  7. else {
  8. #release libs
  9. LIBS += -LLIBS +=-LC:/opencv/build/x86/vc11/staticlib\
  10. -lopencv_core246\
  11. -lopencv_highgui246
  12. }
To copy to clipboard, switch view to plain text mode 
well thanks buddy , now I have a new problem:

LNK1181: cannot open input file 'opencv_core246.lib'

when I compile in release mode and when I compile in debug mode it shows the same problem except for the debug file:

LNK1181: cannot open input file 'opencv_core246d.lib'