Code: Select all
Consolidate compiler generated dependencies of target opencv-mobile-test
[ 50%] Building CXX object CMakeFiles/opencv-mobile-test.dir/main.cpp.o
/root/opencv-mobile-test/main.cpp: In function 'int main()':
/root/opencv-mobile-test/main.cpp:9:9: error: 'VideoCapture' is not a member of 'cv'
cv::VideoCapture cap;
^~~~~~~~~~~~
/root/opencv-mobile-test/main.cpp:10:5: error: 'cap' was not declared in this scope
cap.set(cv::CAP_PROP_FRAME_WIDTH, 320);
^~~
/root/opencv-mobile-test/main.cpp:10:17: error: 'CAP_PROP_FRAME_WIDTH' is not a member of 'cv'
cap.set(cv::CAP_PROP_FRAME_WIDTH, 320);
^~~~~~~~~~~~~~~~~~~~
/root/opencv-mobile-test/main.cpp:11:17: error: 'CAP_PROP_FRAME_HEIGHT' is not a member of 'cv'
cap.set(cv::CAP_PROP_FRAME_HEIGHT, 240);
^~~~~~~~~~~~~~~~~~~~~
/root/opencv-mobile-test/main.cpp:14:31: error: 'CAP_PROP_FRAME_WIDTH' is not a member of 'cv'
const int w = cap.get(cv::CAP_PROP_FRAME_WIDTH);
^~~~~~~~~~~~~~~~~~~~
/root/opencv-mobile-test/main.cpp:15:31: error: 'CAP_PROP_FRAME_HEIGHT' is not a member of 'cv'
const int h = cap.get(cv::CAP_PROP_FRAME_HEIGHT);
^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/opencv-mobile-test.dir/build.make:76: CMakeFiles/opencv-mobile-test.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/opencv-mobile-test.dir/all] Error 2
make: *** [Makefile:91: all] Error 2