user/kphotoalbum: FTBFS: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
Found on ppc64:
[100%] Building CXX object CMakeFiles/kphotoalbum.dir/Utilities/VideoUtil.cpp.o
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp: In member function ‘void Exif::Info::writeInfoToFile(const DB::FileName&, const QString&)’:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:204:19: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(QFile::encodeName(srcName.absolute()).data());
^~~~~~~
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:205:5: error: ‘image’ was not declared in this scope
image->readMetadata();
^~~~~
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:205:5: note: suggested alternative: ‘QImage’
image->readMetadata();
^~~~~
QImage
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp: In member function ‘Exif::Metadata Exif::Info::metadata(const DB::FileName&)’:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:240:23: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(QFile::encodeName(fileName.absolute()).data());
^~~~~~~
In file included from /usr/include/QtCore/qchar.h:43,
from /usr/include/QtCore/qhash.h:44,
from /usr/include/QtCore/qset.h:43,
from /usr/include/QtCore/QSet:1,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Utilities/StringSet.h:24,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.h:20,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:18:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:241:18: error: ‘image’ was not declared in this scope
Q_ASSERT(image.get() != 0);
^~~~~
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:241:18: note: suggested alternative: ‘QImage’
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Info.cpp:236:57: warning: unused parameter ‘fileName’ [-Wunused-parameter]
Exif::Metadata Exif::Info::metadata(const DB::FileName &fileName)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~
make[2]: *** [CMakeFiles/kphotoalbum.dir/build.make:2694: CMakeFiles/kphotoalbum.dir/Exif/Info.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp: In member function ‘bool Exif::Database::add(const DB::FileName&)’:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp:245:23: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data());
^~~~~~~
In file included from /usr/include/QtCore/qflags.h:40,
from /usr/include/QtCore/QFlags:1,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/DB/ExifMode.h:21,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/DB/FileInfo.h:22,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.h:21,
from /root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp:18:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp:246:18: error: ‘image’ was not declared in this scope
Q_ASSERT(image.get() != nullptr);
^~~~~
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp:246:18: note: suggested alternative: ‘QImage’
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp: In member function ‘bool Exif::Database::add(const DB::FileNameList&)’:
/root/packages/user/kphotoalbum/src/kphotoalbum-5.7.0/Exif/Database.cpp:273:27: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fileName.absolute().toLocal8Bit().data());
^~~~~~~****