[mythtv] android compile problems

Peter Bennett pb.mythtv at gmail.com
Mon Jun 8 16:07:32 UTC 2020


Hi David

Compiling fixes/31 for android 64 bit I am getting the following errors

imagemetadata.cpp:281:19: error: no type named 'AutoPtr' in 'Exiv2::Image'
     Exiv2::Image::AutoPtr m_image;
     ~~~~~~~~~~~~~~^

I see you added the following comment:

// Clang8 warns that 'AutoPtr' is deprecated. It was apparently
// deprecated in glibc-2.27, and the exiv2 library hasn't been
// updated yet.
Exiv2::Image::AutoPtr m_image;

Perhaps the exiv2 library has now been updated? Do you know more about 
what is going on here?

The other error is

imagemetadata.cpp:704:10: error: cannot initialize return object of type 
'ImageMetaData *' with an rvalue of type 'PictureMetaData *'
{ return new PictureMetaData(filePath); }
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Perhaps this needs to be changed to some sort of <cast> syntax. Old 
style cast no longer working? Don't know why this errors for android but 
not for linux.

Peter



More information about the mythtv-dev mailing list