Opened 10 years ago
Closed 9 years ago
#43963 closed defect (fixed)
opencv@2.4.8 compile warning
Reported by: | manand1982@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | kurthindenburg (Kurt Hindenburg) | |
Port: | opencv |
Description
I'm using OSx mavericks and whenever I include opencv.hpp and compile the code, I get the warnings mentioned below. I use cmake to generate make files and build my project. I do not want to suppress warnings as it helps me in figuring out other issues in my code. Is there a way to remove the opencv warning?
In file included from /opt/local/include/opencv2/opencv.hpp:56: /opt/local/include/opencv2/ml/ml.hpp:961:18: warning: 'CvForestTree::train' hides overloaded virtual functions [-Woverloaded-virtual] virtual bool train( CvDTreeTrainData* trainData, const CvMat... ^ /opt/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3) virtual bool train( CvMLData* trainData, CvDTreeParams params... ^ /opt/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3) CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag, ^ /opt/local/include/opencv2/ml/ml.hpp:1149:18: warning: 'CvBoostTree::train' hides overloaded virtual functions [-Woverloaded-virtual] virtual bool train( CvDTreeTrainData* trainData, ^ /opt/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3) virtual bool train( CvMLData* trainData, CvDTreeParams params... ^ /opt/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3) CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag, ^
Change History (4)
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)
it has been updated several times since this report - can you do a sync and see if the latest works for you?
comment:4 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → fixed |
---|---|
Status: | new → closed |
If you still have issues after updating, please reopen this ticket.
Note: See
TracTickets for help on using
tickets.
You should probably report this bug to the developers of opencv so they can fix it. Then they can release a new version of opencv, and then we can update the MacPorts opencv port to that version.