Hi,
I am trying to run simple program of Opencv for opening camera.
But after compiling i am getting linking error

:-1: error: LNK1104: cannot open file 'G:\Opencv-2.4.5\Opencv\build\x86\libs.obj'
I have checked libs folder but there is no libs.obj file present there

This my .pro file

Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2014-02-13T12:51:19
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT += core gui
  8.  
  9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  10.  
  11. TARGET = Project
  12. TEMPLATE = app
  13.  
  14.  
  15. SOURCES += main.cpp\
  16. mainwindow.cpp
  17.  
  18. HEADERS += mainwindow.h
  19.  
  20. FORMS += mainwindow.ui
  21.  
  22. INCLUDEPATH += G:\\Opencv-2.4.5\\Opencv\\build\\include
  23.  
  24. LIBS +=G:\\Opencv-2.4.5\\Opencv\\build\\x86\\libs \
  25. -lopencv_calib3d245 \
  26. -lopencv_calib3d245d \
  27. -lopencv_contrib245 \
  28. -lopencv_contrib245d \
  29. -lopencv_core245 \
  30. -lopencv_core245d \
  31. -lopencv_features2d245 \
  32. -lopencv_features2d245d \
  33. -lopencv_gpu245 \
  34. -lopencv_gpu245d \
  35. -lopencv_highgui245 \
  36. -lopencv_highgui245d \
  37. -lopencv_imgproc245 \
  38. -lopencv_imgproc245d \
  39. -lopencv_video245 \
  40. -lopencv_video245d
To copy to clipboard, switch view to plain text mode 

This is the code I have written

Qt Code:
  1. #include "mainwindow.h"
  2. #include <QApplication>
  3. #include <opencv/cv.h>
  4. #include <opencv/highgui.h>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc, argv);
  9. MainWindow w;
  10. w.show();
  11. CvCapture *capture = 0;
  12. IplImage *frame = 0;
  13. int key = 0;
  14.  
  15. /* initialize camera */
  16. capture = cvCaptureFromCAM( 0 );
  17.  
  18. /* always check */
  19. if ( !capture ) {
  20. fprintf( stderr, "Cannot open initialize webcam!\n" );
  21. return 1; }
  22.  
  23. cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 640);
  24. cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, 480);
  25.  
  26. cvSetCaptureProperty(capture, CV_CAP_PROP_FPS, 8);
  27.  
  28. /* create a window for the video */
  29. cvNamedWindow( "result", CV_WINDOW_AUTOSIZE );
  30.  
  31. while( key != 'q' ) {
  32. /* get a frame */
  33. frame = cvQueryFrame( capture );
  34.  
  35. /* always check */
  36. if( !frame ) break;
  37.  
  38. /* display current frame */
  39. cvShowImage("Left", frame);
  40.  
  41. /* exit if user press 'q' */
  42. key = cvWaitKey( 1 ); }
  43.  
  44. /* free memory */
  45. cvDestroyWindow( "result" );
  46. cvReleaseCapture( &capture );
  47. return a.exec();
  48. }
To copy to clipboard, switch view to plain text mode 

Snapshot of error

error.jpg

Can anybody help me please?