Android Studio错误:(147,17)错误:不推荐使用'DevMem2D_ <无符号字符>'[-Werror,-Wdeprecated-declarations]

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

当我添加以下任何一行时:

#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" 

到一个.cpp文件,它会给出以下错误:

Error:(147, 17) error: 'DevMem2D_' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(148, 17) error: 'DevMem2D_' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(149, 17) error: 'DevMem2D_' is deprecated [-Werror,-Wdeprecated-declarations]
Error:(150, 17) error: 'DevMem2D_' is deprecated [-Werror,-Wdeprecated-declarations]

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

进程'命令'/ home / dev / Android / Sdk / ndk-bundle / ndk-build''以非零退出值2结束

但是,当添加其他#包括...它工作正常。 仅供参考在Windows中完全罚款在Ubuntu的错误。

No Answers Yet

Related questions

Hot questions

Language

Popular Tags