{"action":"created","issue":{"url":"https://api.github.com/repos/opencv/opencv_contrib/issues/1149","repository_url":"https://api.github.com/repos/opencv/opencv_contrib","labels_url":"https://api.github.com/repos/opencv/opencv_contrib/issues/1149/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv_contrib/issues/1149/comments","events_url":"https://api.github.com/repos/opencv/opencv_contrib/issues/1149/events","html_url":"https://github.com/opencv/opencv_contrib/issues/1149","id":226173894,"number":1149,"title":"ERROR: ocv_download() unsupported arguments:","user":{"login":"Usernamezhx","id":14010625,"avatar_url":"https://avatars0.githubusercontent.com/u/14010625?v=3","gravatar_id":"","url":"https://api.github.com/users/Usernamezhx","html_url":"https://github.com/Usernamezhx","followers_url":"https://api.github.com/users/Usernamezhx/followers","following_url":"https://api.github.com/users/Usernamezhx/following{/other_user}","gists_url":"https://api.github.com/users/Usernamezhx/gists{/gist_id}","starred_url":"https://api.github.com/users/Usernamezhx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usernamezhx/subscriptions","organizations_url":"https://api.github.com/users/Usernamezhx/orgs","repos_url":"https://api.github.com/users/Usernamezhx/repos","events_url":"https://api.github.com/users/Usernamezhx/events{/privacy}","received_events_url":"https://api.github.com/users/Usernamezhx/received_events","type":"User","site_admin":false},"labels":[{"id":271954572,"url":"https://api.github.com/repos/opencv/opencv_contrib/labels/invalid","name":"invalid","color":"000000","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-04T04:14:10Z","updated_at":"2017-05-04T08:46:00Z","closed_at":"2017-05-04T07:54:55Z","body":"I want to install the opencv_contrib .\r\n**and then i input the command line :** \r\n`cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_IPP=OFF -D OPENCV_EXTRA_MODULES=/root/opencv-build/opencv-master/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=/usr/local ..`\r\n\r\n**The cmake will show that:**\r\n`-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags\r\nCMake Error at cmake/OpenCVDownload.cmake:56 (message):\r\n  ERROR: ocv_download() unsupported arguments:\r\n  PACKAGE;v3.1.0/protobuf-cpp-3.1.0.tar.gz;HASH;bd5e3eed635a8d32e2b99658633815ef;URL;https://github.com/google/protobuf/releases/download/;DOWNLOAD_DIR;/root/opencv-build/opencv-master/opencv_contrib/modules/dnn/.download\r\nCall Stack (most recent call first):\r\n  opencv_contrib/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download)\r\n  opencv_contrib/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download)\r\n  opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include)\r\n  opencv_contrib/modules/dnn/CMakeLists.txt:35 (include)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/root/opencv-build/opencv-master/build/CMakeFiles/CMakeOutput.log\".\r\nSee also \"/root/opencv-build/opencv-master/build/CMakeFiles/CMakeError.log\".\r\n`\r\n System information (version)\r\n- OpenCV => 3.1\r\n- Operating System / Platform => centos7\r\n- Compiler => gcc\r\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n\r\n**the next is the cmake erro log:**\r\n\r\n\r\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\nDetermining if the include file sys/videoio.h exists failed with the following output:\r\nChange Dir: /root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:/usr/bin/gmake \"cmTryCompileExec3578117361/fast\"\r\n/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3578117361.dir/build.make CMakeFiles/cmTryCompileExec3578117361.dir/build\r\ngmake[1]: Entering directory `/root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp'\r\n/usr/bin/cmake -E cmake_progress_report /root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1\r\nBuilding C object CMakeFiles/cmTryCompileExec3578117361.dir/CheckIncludeFile.c.o\r\n/usr/bin/cc   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTryCompileExec3578117361.dir/CheckIncludeFile.c.o   -c /root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c\r\n/root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory\r\n #include <sys/videoio.h>\r\n                         ^\r\ncompilation terminated.\r\ngmake[1]: *** [CMakeFiles/cmTryCompileExec3578117361.dir/CheckIncludeFile.c.o] Error 1\r\ngmake[1]: Leaving directory `/root/opencv-build/opencv-master/build/CMakeFiles/CMakeTmp'\r\ngmake: *** [cmTryCompileExec3578117361/fast] Error 2\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opencv/opencv_contrib/issues/comments/299128501","html_url":"https://github.com/opencv/opencv_contrib/issues/1149#issuecomment-299128501","issue_url":"https://api.github.com/repos/opencv/opencv_contrib/issues/1149","id":299128501,"user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars3.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T08:46:00Z","updated_at":"2017-05-04T08:46:00Z","body":"_opencv_contrib@3.0.0_ is not compatible with _opencv@3.2.0_, as I said you have to sync both repositories to the same tag (3.2.0, 3.1.0, 3.0.0 or master) and then do a clean build (in empty build directory)."}}
{"actor":{"display_login":"mshabunin"}}