Followed these directions to integrate the new OpenCV:
http://www.barbato.us/2011/12/20/ope...eator-windows/

However, i'm getting errors
error.jpg


Qt Code:
  1. #include <iostream>
  2. #include <opencv2/opencv.hpp>
  3. //#include <opencv2/highgui/highgui.hpp>
  4. //#include <opencv2/core/core.hpp>
  5. #include <opencv/cv.h>
  6. #include <opencv/highgui.h>
  7.  
  8. using namespace cv;
  9.  
  10. int main(int, char**)
  11. {
  12. VideoCapture cap(0); // open the default camera
  13. if(!cap.isOpened()) // check if we succeeded
  14. return -1;
  15.  
  16. // the camera will be deinitialized automatically in VideoCapture destructor
  17. return 0;
  18. }
To copy to clipboard, switch view to plain text mode