Compiling Opencv 3.0 beta with CUDA 6.5

asked 2015-04-20 12:24:22 -0600

Hello,

I'm trying to compile opencv 3.0 with cuda support.

Got an error:

/home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp: In member function ‘virtual void ORB_test::run()’:
/home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp:342:17: error: no matching function for call to ‘cv::ORB::ORB(int)’
     ORB orb(4000);
                 ^
/home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp:342:17: note: candidates are:
In file included from /home/ubuntu/opencv-3.0.0-beta/modules/calib3d/include/opencv2/calib3d.hpp:48:0,
                 from /home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp:4:
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:163:20: note: cv::ORB::ORB()
 class CV_EXPORTS_W ORB : public Feature2D
                    ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:163:20: note:   candidate expects 0 arguments, 1 provided
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:163:20: note: cv::ORB::ORB(const cv::ORB&)
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:163:20: note:   no known conversion for argument 1 from ‘int’ to ‘const cv::ORB&’
/home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp:342:9: error: cannot declare variable ‘orb’ to be of abstract type ‘cv::ORB’
     ORB orb(4000);
         ^
In file included from /home/ubuntu/opencv-3.0.0-beta/modules/calib3d/include/opencv2/calib3d.hpp:48:0,
                 from /home/ubuntu/opencv-3.0.0-beta/samples/gpu/performance/tests.cpp:4:
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:163:20: note:   because the following virtual functions are pure within ‘cv::ORB’:
 class CV_EXPORTS_W ORB : public Feature2D
                    ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:171:26: note:  virtual void cv::ORB::setMaxFeatures(int)
     CV_WRAP virtual void setMaxFeatures(int maxFeatures) = 0;
                          ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:172:25: note:  virtual int cv::ORB::getMaxFeatures() const
     CV_WRAP virtual int getMaxFeatures() const = 0;
                         ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:174:26: note:  virtual void cv::ORB::setScaleFactor(double)
     CV_WRAP virtual void setScaleFactor(double scaleFactor) = 0;
                          ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:175:28: note:  virtual double cv::ORB::getScaleFactor() const
     CV_WRAP virtual double getScaleFactor() const = 0;
                            ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:177:26: note:  virtual void cv::ORB::setNLevels(int)
     CV_WRAP virtual void setNLevels(int nlevels) = 0;
                          ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:178:25: note:  virtual int cv::ORB::getNLevels() const
     CV_WRAP virtual int getNLevels() const = 0;
                         ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:180:26: note:  virtual void cv::ORB::setEdgeThreshold(int)
     CV_WRAP virtual void setEdgeThreshold(int edgeThreshold) = 0;
                          ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:181:25: note:  virtual int cv::ORB::getEdgeThreshold() const
     CV_WRAP virtual int getEdgeThreshold() const = 0;
                         ^
/home/ubuntu/opencv-3.0.0-beta/modules/features2d/include/opencv2/features2d.hpp:183:26 ...
(more)
edit retag flag offensive close merge delete

Comments

Lets start by downloading the latest 3.0 github repository. There have been tons of fixes since the beta release.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-04-21 03:02:56 -0600 )edit