{"action":"created","issue":{"url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/46","repository_url":"https://api.github.com/repos/andrewssobral/bgslibrary","labels_url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/46/comments","events_url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/46/events","html_url":"https://github.com/andrewssobral/bgslibrary/issues/46","id":154902987,"number":46,"title":"cmake on linux shows OpenCV version is not compatible: 3.1.0","user":{"login":"muglikar","id":332364,"avatar_url":"https://avatars.githubusercontent.com/u/332364?v=3","gravatar_id":"","url":"https://api.github.com/users/muglikar","html_url":"https://github.com/muglikar","followers_url":"https://api.github.com/users/muglikar/followers","following_url":"https://api.github.com/users/muglikar/following{/other_user}","gists_url":"https://api.github.com/users/muglikar/gists{/gist_id}","starred_url":"https://api.github.com/users/muglikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muglikar/subscriptions","organizations_url":"https://api.github.com/users/muglikar/orgs","repos_url":"https://api.github.com/users/muglikar/repos","events_url":"https://api.github.com/users/muglikar/events{/privacy}","received_events_url":"https://api.github.com/users/muglikar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-15T11:11:00Z","updated_at":"2016-05-15T11:14:31Z","closed_at":null,"body":"cmake on linux shows OpenCV version is not compatible: 3.1.0\r\n\r\nCMake Error at CMakeLists.txt:28 (message):\r\n  OpenCV version is not compatible: 3.1.0\r\n"},"comment":{"url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/comments/219279241","html_url":"https://github.com/andrewssobral/bgslibrary/issues/46#issuecomment-219279241","issue_url":"https://api.github.com/repos/andrewssobral/bgslibrary/issues/46","id":219279241,"user":{"login":"muglikar","id":332364,"avatar_url":"https://avatars.githubusercontent.com/u/332364?v=3","gravatar_id":"","url":"https://api.github.com/users/muglikar","html_url":"https://github.com/muglikar","followers_url":"https://api.github.com/users/muglikar/followers","following_url":"https://api.github.com/users/muglikar/following{/other_user}","gists_url":"https://api.github.com/users/muglikar/gists{/gist_id}","starred_url":"https://api.github.com/users/muglikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muglikar/subscriptions","organizations_url":"https://api.github.com/users/muglikar/orgs","repos_url":"https://api.github.com/users/muglikar/repos","events_url":"https://api.github.com/users/muglikar/events{/privacy}","received_events_url":"https://api.github.com/users/muglikar/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T11:14:31Z","updated_at":"2016-05-15T11:14:31Z","body":"Commenting the lines related to OpenCV version not compatible in CMakeLists.txt gives this error:\r\n\r\n#if(${OpenCV_VERSION} VERSION_EQUAL 3 OR ${OpenCV_VERSION} VERSION_GREATER 3)\r\n#  message (FATAL_ERROR \"OpenCV version is not compatible: ${OpenCV_VERSION}\")\r\n#endif()\r\n\r\nNew Error Now after using 'make':\r\n\r\n[  1%] Building CXX object CMakeFiles/bgs.dir/FrameProcessor.cpp.o\r\nIn file included from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.h:29:0,\r\n                 from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.cpp:17:\r\n/home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/package_bgs/MixtureOfGaussianV1BGS.h:30:7: error: ‘BackgroundSubtractorMOG’ in namespace ‘cv’ does not name a type\r\n   cv::BackgroundSubtractorMOG mog;\r\n       ^\r\nIn file included from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.h:30:0,\r\n                 from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.cpp:17:\r\n/home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/package_bgs/MixtureOfGaussianV2BGS.h:30:32: error: cannot declare field ‘MixtureOfGaussianV2BGS::mog’ to be of abstract type ‘cv::BackgroundSubtractorMOG2’\r\n   cv::BackgroundSubtractorMOG2 mog;\r\n                                ^\r\nIn file included from /usr/local/include/opencv2/video.hpp:57:0,\r\n                 from /usr/local/include/opencv2/opencv.hpp:49,\r\n                 from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/IFrameProcessor.h:19,\r\n                 from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.h:20,\r\n                 from /home/anand/Documents/opencv/ext_projects/vehicleVolume/bgslibrary/FrameProcessor.cpp:17:\r\n/usr/local/include/opencv2/video/background_segm.hpp:90:20: note:   because the following virtual functions are pure within ‘cv::BackgroundSubtractorMOG2’:\r\n class CV_EXPORTS_W BackgroundSubtractorMOG2 : public BackgroundSubtractor\r\n                    ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:72:26: note: \tvirtual void cv::BackgroundSubtractor::apply(cv::InputArray, cv::OutputArray, double)\r\n     CV_WRAP virtual void apply(InputArray image, OutputArray fgmask, double learningRate=-1) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:81:26: note: \tvirtual void cv::BackgroundSubtractor::getBackgroundImage(cv::OutputArray) const\r\n     CV_WRAP virtual void getBackgroundImage(OutputArray backgroundImage) const = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:95:25: note: \tvirtual int cv::BackgroundSubtractorMOG2::getHistory() const\r\n     CV_WRAP virtual int getHistory() const = 0;\r\n                         ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:98:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setHistory(int)\r\n     CV_WRAP virtual void setHistory(int history) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:102:25: note: \tvirtual int cv::BackgroundSubtractorMOG2::getNMixtures() const\r\n     CV_WRAP virtual int getNMixtures() const = 0;\r\n                         ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:107:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setNMixtures(int)\r\n     CV_WRAP virtual void setNMixtures(int nmixtures) = 0;//needs reinitialization!\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:115:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getBackgroundRatio() const\r\n     CV_WRAP virtual double getBackgroundRatio() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:118:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setBackgroundRatio(double)\r\n     CV_WRAP virtual void setBackgroundRatio(double ratio) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:125:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getVarThreshold() const\r\n     CV_WRAP virtual double getVarThreshold() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:128:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setVarThreshold(double)\r\n     CV_WRAP virtual void setVarThreshold(double varThreshold) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:138:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getVarThresholdGen() const\r\n     CV_WRAP virtual double getVarThresholdGen() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:141:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setVarThresholdGen(double)\r\n     CV_WRAP virtual void setVarThresholdGen(double varThresholdGen) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:145:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getVarInit() const\r\n     CV_WRAP virtual double getVarInit() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:148:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setVarInit(double)\r\n     CV_WRAP virtual void setVarInit(double varInit) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:150:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getVarMin() const\r\n     CV_WRAP virtual double getVarMin() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:151:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setVarMin(double)\r\n     CV_WRAP virtual void setVarMin(double varMin) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:153:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getVarMax() const\r\n     CV_WRAP virtual double getVarMax() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:154:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setVarMax(double)\r\n     CV_WRAP virtual void setVarMax(double varMax) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:162:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getComplexityReductionThreshold() const\r\n     CV_WRAP virtual double getComplexityReductionThreshold() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:165:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setComplexityReductionThreshold(double)\r\n     CV_WRAP virtual void setComplexityReductionThreshold(double ct) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:172:26: note: \tvirtual bool cv::BackgroundSubtractorMOG2::getDetectShadows() const\r\n     CV_WRAP virtual bool getDetectShadows() const = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:175:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setDetectShadows(bool)\r\n     CV_WRAP virtual void setDetectShadows(bool detectShadows) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:182:25: note: \tvirtual int cv::BackgroundSubtractorMOG2::getShadowValue() const\r\n     CV_WRAP virtual int getShadowValue() const = 0;\r\n                         ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:185:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setShadowValue(int)\r\n     CV_WRAP virtual void setShadowValue(int value) = 0;\r\n                          ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:194:28: note: \tvirtual double cv::BackgroundSubtractorMOG2::getShadowThreshold() const\r\n     CV_WRAP virtual double getShadowThreshold() const = 0;\r\n                            ^\r\n/usr/local/include/opencv2/video/background_segm.hpp:197:26: note: \tvirtual void cv::BackgroundSubtractorMOG2::setShadowThreshold(double)\r\n     CV_WRAP virtual void setShadowThreshold(double threshold) = 0;\r\n                          ^\r\nCMakeFiles/bgs.dir/build.make:54: recipe for target 'CMakeFiles/bgs.dir/FrameProcessor.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/bgs.dir/FrameProcessor.cpp.o] Error 1\r\nCMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/bgs.dir/all' failed\r\nmake[1]: *** [CMakeFiles/bgs.dir/all] Error 2\r\nMakefile:117: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n\r\n "}}