Closed muralikodali closed 1 year ago
If you're building on linux try to install libexiv2-dev: sudo apt install libexiv2-dev
I am on archlinux. please suggest the proper package to install ?
try just exiv2
exiv2 is already installed
could you post the output of cmake ..
command that you use to build the sources?
please check the attached file for the cmake output.
Ok, I've tried to build the project in archlinux in VirtualBox and reproduced your problem. It seems arch uses newer exiv2 library than ubuntu. And in new library author's replaced AutoPtr with UniquePtr: https://github.com/Exiv2/exiv2/commit/0bbaa6eff3c93dfc5242af4069ccff56f48ba5fb
So all you need to do is to edit the src/core/filters/output/ImageMetadataCopier.cpp
:
Exiv2::AutoPtr
with Exiv2::UniquePtr
(there are 6 of them, i guess)dst_image->setIccProfile(*src_image->iccProfile());
with 2 lines:
Exiv2::DataBuf profile = src_image->iccProfile();
dst_image->setIccProfile(std::move(profile));
Providing that the code compiles successfully.
I'll patch the sources when I'll have more spare time and think out how to distinguish new exiv2 lib from the old one.
thanks for your suggestion. After editing src/core/filters/output/ImageMetadataCopier.cpp as suggested by you, program complied successfully.
👍
building from source giving the following error: