fastfusion icon indicating copy to clipboard operation
fastfusion copied to clipboard

error in make phase

Open GuangfuWang opened this issue 5 years ago • 2 comments

when i try to run make cmd in Ubuntu 16.04,the following errors are shown. I do not know why this happen. My OpenCV version is 3.4.8 /home/ubuntu/fastfusion/src/auxiliary/plywriter.cpp: In function ‘bool writePLYBinary(const string&, const cv::Mat&, cv::Mat, const cv::Mat&, const cv::Mat&)’: /home/ubuntu/fastfusion/src/auxiliary/plywriter.cpp:172:63: error: ‘type’ is not a member of ‘cv::DataType<cv::Vec<float, 3> >’ cv::Mat _posImage(disparityImage.rows,disparityImage.cols,cv::DataType<cv:: ^ /home/ubuntu/fastfusion/src/auxiliary/plywriter.cpp: In function ‘bool writePLY(const string&, const cv::Mat&, cv::Mat, const cv::Mat&, const cv::Mat&)’: /home/ubuntu/fastfusion/src/auxiliary/plywriter.cpp:380:63: error: ‘type’ is not a member of ‘cv::DataType<cv::Vec<float, 3> >’

GuangfuWang avatar Dec 08 '19 13:12 GuangfuWang

Same error on my Ubuntu 16.04. Does anyone has solution for it?

sachinkum0009 avatar Jan 14 '20 13:01 sachinkum0009

Add #define OPENCV_TRAITS_ENABLE_DEPRECATED in fastfusion/src/auxiliary/plywriter.h before #include<opencv2/opencv.hpp> should work.

If similar error happens afterwards in another file, do the same thing in the corresponding header file.

greatwallet avatar Mar 19 '20 17:03 greatwallet