Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in make phase #30

Open
GuangfuWang opened this issue Dec 8, 2019 · 2 comments
Open

error in make phase #30

GuangfuWang opened this issue Dec 8, 2019 · 2 comments

Comments

@GuangfuWang
Copy link

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> >’

@sachinkum0009
Copy link

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

@greatwallet
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants