Kesalahan Android Studio: (147, 17) kesalahan: 'DevMem2D_ <unsigned char>' sudah ditinggalkan [-Werror, -Wdeprecated-declarations]

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

Ketika saya menambahkan salah satu dari baris ini:

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

menjadi file .cpp, itu memberikan kesalahan berikut:

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'. 

Proses 'perintah' / home / dev / Android / Sdk / ndk-bundle / ndk-build '' selesai dengan nilai keluar non-nol 2

Namun ketika menambahkan #nasuk lainnya ... itu berfungsi dengan baik. FYI benar-benar baik di windows dengan memiliki kesalahan di ubuntu.

No Answers Yet

Related questions

Hot questions

Language

Popular Tags