{"action":"opened","issue":{"url":"https://api.github.com/repos/Visu4link/pastec/issues/39","repository_url":"https://api.github.com/repos/Visu4link/pastec","labels_url":"https://api.github.com/repos/Visu4link/pastec/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/Visu4link/pastec/issues/39/comments","events_url":"https://api.github.com/repos/Visu4link/pastec/issues/39/events","html_url":"https://github.com/Visu4link/pastec/issues/39","id":152689499,"number":39,"title":"error: invalid cast to abstract class type ‘cv::ORB’","user":{"login":"svenstaro","id":1664,"avatar_url":"https://avatars.githubusercontent.com/u/1664?v=3","gravatar_id":"","url":"https://api.github.com/users/svenstaro","html_url":"https://github.com/svenstaro","followers_url":"https://api.github.com/users/svenstaro/followers","following_url":"https://api.github.com/users/svenstaro/following{/other_user}","gists_url":"https://api.github.com/users/svenstaro/gists{/gist_id}","starred_url":"https://api.github.com/users/svenstaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenstaro/subscriptions","organizations_url":"https://api.github.com/users/svenstaro/orgs","repos_url":"https://api.github.com/users/svenstaro/repos","events_url":"https://api.github.com/users/svenstaro/events{/privacy}","received_events_url":"https://api.github.com/users/svenstaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T02:47:57Z","updated_at":"2016-05-03T02:47:57Z","closed_at":null,"body":"While compiling this on Arch Linux against opencv 3.1.0 I get this:\r\n\r\n```\r\n[svenstaro:~/src/pastec/build] dist-ver(+2/-2) ± make\r\n[  9%] Building CXX object CMakeFiles/pastec.dir/src/orb/orbfeatureextractor.cpp.o\r\n/home/svenstaro/src/pastec/src/orb/orbfeatureextractor.cpp: In member function ‘virtual u_int32_t ORBFeatureExtractor::processNewImage(unsigned int, unsigned int, char*, unsigned int&)’:\r\n/home/svenstaro/src/pastec/src/orb/orbfeatureextractor.cpp:53:24: error: invalid cast to abstract class type ‘cv::ORB’\r\n     ORB(2000, 1.02, 100)(img, noArray(), keypoints, descriptors);\r\n                        ^\r\nIn file included from /usr/include/opencv2/features2d/features2d.hpp:48:0,\r\n                 from /home/svenstaro/src/pastec/src/orb/orbfeatureextractor.cpp:28:\r\n/usr/include/opencv2/features2d.hpp:254:20: note:   because the following virtual functions are pure within ‘cv::ORB’:\r\n class CV_EXPORTS_W ORB : public Feature2D\r\n                    ^\r\n/usr/include/opencv2/features2d.hpp:292:26: note: \tvirtual void cv::ORB::setMaxFeatures(int)\r\n     CV_WRAP virtual void setMaxFeatures(int maxFeatures) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:293:25: note: \tvirtual int cv::ORB::getMaxFeatures() const\r\n     CV_WRAP virtual int getMaxFeatures() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:295:26: note: \tvirtual void cv::ORB::setScaleFactor(double)\r\n     CV_WRAP virtual void setScaleFactor(double scaleFactor) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:296:28: note: \tvirtual double cv::ORB::getScaleFactor() const\r\n     CV_WRAP virtual double getScaleFactor() const = 0;\r\n                            ^\r\n/usr/include/opencv2/features2d.hpp:298:26: note: \tvirtual void cv::ORB::setNLevels(int)\r\n     CV_WRAP virtual void setNLevels(int nlevels) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:299:25: note: \tvirtual int cv::ORB::getNLevels() const\r\n     CV_WRAP virtual int getNLevels() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:301:26: note: \tvirtual void cv::ORB::setEdgeThreshold(int)\r\n     CV_WRAP virtual void setEdgeThreshold(int edgeThreshold) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:302:25: note: \tvirtual int cv::ORB::getEdgeThreshold() const\r\n     CV_WRAP virtual int getEdgeThreshold() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:304:26: note: \tvirtual void cv::ORB::setFirstLevel(int)\r\n     CV_WRAP virtual void setFirstLevel(int firstLevel) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:305:25: note: \tvirtual int cv::ORB::getFirstLevel() const\r\n     CV_WRAP virtual int getFirstLevel() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:307:26: note: \tvirtual void cv::ORB::setWTA_K(int)\r\n     CV_WRAP virtual void setWTA_K(int wta_k) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:308:25: note: \tvirtual int cv::ORB::getWTA_K() const\r\n     CV_WRAP virtual int getWTA_K() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:310:26: note: \tvirtual void cv::ORB::setScoreType(int)\r\n     CV_WRAP virtual void setScoreType(int scoreType) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:311:25: note: \tvirtual int cv::ORB::getScoreType() const\r\n     CV_WRAP virtual int getScoreType() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:313:26: note: \tvirtual void cv::ORB::setPatchSize(int)\r\n     CV_WRAP virtual void setPatchSize(int patchSize) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:314:25: note: \tvirtual int cv::ORB::getPatchSize() const\r\n     CV_WRAP virtual int getPatchSize() const = 0;\r\n                         ^\r\n/usr/include/opencv2/features2d.hpp:316:26: note: \tvirtual void cv::ORB::setFastThreshold(int)\r\n     CV_WRAP virtual void setFastThreshold(int fastThreshold) = 0;\r\n                          ^\r\n/usr/include/opencv2/features2d.hpp:317:25: note: \tvirtual int cv::ORB::getFastThreshold() const\r\n     CV_WRAP virtual int getFastThreshold() const = 0;\r\n                         ^\r\nCMakeFiles/pastec.dir/build.make:206: recipe for target 'CMakeFiles/pastec.dir/src/orb/orbfeatureextractor.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/pastec.dir/src/orb/orbfeatureextractor.cpp.o] Error 1\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pastec.dir/all' failed\r\nmake[1]: *** [CMakeFiles/pastec.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n"}}