{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/6403","repository_url":"https://api.github.com/repos/Itseez/opencv","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/6403/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/6403/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/6403/events","html_url":"https://github.com/Itseez/opencv/issues/6403","id":148309543,"number":6403,"title":"OpenCV build fails on ubuntu with contrib modules","user":{"login":"StevenPuttemans","id":4621239,"avatar_url":"https://avatars.githubusercontent.com/u/4621239?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenPuttemans","html_url":"https://github.com/StevenPuttemans","followers_url":"https://api.github.com/users/StevenPuttemans/followers","following_url":"https://api.github.com/users/StevenPuttemans/following{/other_user}","gists_url":"https://api.github.com/users/StevenPuttemans/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenPuttemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenPuttemans/subscriptions","organizations_url":"https://api.github.com/users/StevenPuttemans/orgs","repos_url":"https://api.github.com/users/StevenPuttemans/repos","events_url":"https://api.github.com/users/StevenPuttemans/events{/privacy}","received_events_url":"https://api.github.com/users/StevenPuttemans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2016-04-14T09:55:23Z","updated_at":"2016-04-14T14:26:44Z","closed_at":null,"body":"### Please state the information for your system\r\n- OpenCV version: latest master branch for both repos\r\n- Host OS: Linux (Ubuntu 14.04)\r\n- Compiler & CMake: GCC 4.8.5 & CMake 3.4.0-rc1\r\n\r\n### In which part of the OpenCV library you got the issue?\r\nBuilding the repository with extra contrib modules\r\n\r\n### Expected behaviour \r\nThe nightly buildbot succeeded in building just fine: http://pullrequest.opencv.org/buildbot/builders/master-contrib_coverage-lin64-debug\r\n\r\n### Actual behaviour\r\nIt is breaking down at the waldboost code, exactly what I am aiming to build\r\n\r\n```\r\n[ 20%] Built target pch_Generate_opencv_perf_videoio\r\nIn file included from /home/spu/Documents/github/opencv_compl/build/modules/xobjdetect/precomp.hpp:77:0:\r\n/home/spu/Documents/github/opencv_contrib/modules/xobjdetect/src/waldboost.hpp:53:7: error: redefinition of ‘class cv::xobjdetect::WaldBoost’\r\n class WaldBoost {\r\n       ^\r\nIn file included from /home/spu/Documents/github/opencv_compl/build/modules/xobjdetect/precomp.hpp:48:0:\r\n/usr/local/include/opencv2/xobjdetect.hpp:136:18: error: previous definition of ‘class cv::xobjdetect::WaldBoost’\r\n class CV_EXPORTS WaldBoost : public Algorithm\r\n                  ^\r\nIn file included from /home/spu/Documents/github/opencv_compl/build/modules/xobjdetect/precomp.hpp:78:0:\r\n/home/spu/Documents/github/opencv_contrib/modules/xobjdetect/src/wbdetector.hpp:56:42: error: expected class-name before ‘{’ token\r\n class WBDetectorImpl : public WBDetector {\r\n                                          ^\r\n/home/spu/Documents/github/opencv_contrib/modules/xobjdetect/src/wbdetector.hpp:71:15: error: cannot declare field ‘cv::xobjdetect::WBDetectorImpl::boost_’ to be of abstract type ‘cv::xobjdetect::WaldBoost’\r\n     WaldBoost boost_;\r\n               ^\r\nIn file included from /home/spu/Documents/github/opencv_compl/build/modules/xobjdetect/precomp.hpp:48:0:\r\n/usr/local/include/opencv2/xobjdetect.hpp:136:18: note:   because the following virtual functions are pure within ‘cv::xobjdetect::WaldBoost’:\r\n class CV_EXPORTS WaldBoost : public Algorithm\r\n                  ^\r\n/usr/local/include/opencv2/xobjdetect.hpp:146:30: note: \tvirtual std::vector<int> cv::xobjdetect::WaldBoost::train(cv::Mat&, const cv::Mat&, bool)\r\n     virtual std::vector<int> train(Mat& data,\r\n                              ^\r\n/usr/local/include/opencv2/xobjdetect.hpp:154:19: note: \tvirtual float cv::xobjdetect::WaldBoost::predict(const cv::Ptr<cv::xobjdetect::FeatureEvaluator>&) const\r\n     virtual float predict(\r\n```\r\n\r\n@alalek could you maybe take a look why it runs fine on the buildbot but not here? I am building with `make -j 24` but also tried single core and it is not a difference, same error."},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/209969170","html_url":"https://github.com/Itseez/opencv/issues/6403#issuecomment-209969170","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/6403","id":209969170,"user":{"login":"alalek","id":4981219,"avatar_url":"https://avatars.githubusercontent.com/u/4981219?v=3","gravatar_id":"","url":"https://api.github.com/users/alalek","html_url":"https://github.com/alalek","followers_url":"https://api.github.com/users/alalek/followers","following_url":"https://api.github.com/users/alalek/following{/other_user}","gists_url":"https://api.github.com/users/alalek/gists{/gist_id}","starred_url":"https://api.github.com/users/alalek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alalek/subscriptions","organizations_url":"https://api.github.com/users/alalek/orgs","repos_url":"https://api.github.com/users/alalek/repos","events_url":"https://api.github.com/users/alalek/events{/privacy}","received_events_url":"https://api.github.com/users/alalek/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T14:26:44Z","updated_at":"2016-04-14T14:26:44Z","body":"Problem is not with eigen, it is with contrib modules directories which are passed via `-isystem`.\r\nCould you take a look on this fix: https://github.com/alalek/opencv/commits/issue_6403"}}