Android Studio Error:(147, 17) error: 'DevMem2D_<unsigned char>' is deprecated [-Werror,-Wdeprecated-declarations]

Mahdi Askarirad 07/30/2017. 0 answers, 20 views
c++ android-studio android-studio opencv android-ndk android-ndk opencv-stitching

When I'm adding any of these lines:

#include "opencv2/stitching/detail/autocalib.hpp"
#include "opencv2/stitching/detail/matchers.hpp"
#include "opencv2/stitching/detail/motion_estimators.hpp"
#include "opencv2/stitching/detail/seam_finders.hpp"
#include "opencv2/stitching/detail/warpers.hpp"
#include "opencv2/stitching/warpers.hpp"

into a .cpp file, it gives the following errors:

Error:(147, 17) error: 'DevMem2D_<unsigned char>' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(148, 17) error: 'DevMem2D_<unsigned char>' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(149, 17) error: 'DevMem2D_<float>' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(150, 17) error: 'DevMem2D_<int>' is deprecated [-Werror,-Wdeprecated-declarations]

Error:Execution failed for task ':app:ndkBuild'.

Process 'command '/home/dev/Android/Sdk/ndk-bundle/ndk-build'' finished with non-zero exit value 2

However when adding other #include... it's working fine. FYI its totally fine in windows by have error in ubuntu.

No Answers Yet

Related questions

Hot questions

Language

Popular Tags