Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with exiv2-0.28.0 #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tastytea
Copy link
Contributor

exiv2-0.28.0 replaced Exiv2::Image::AutoPtr with Exiv2::Image::UniquePtr¹ and Exiv2::AnyError with Exiv2::Error². this patch makes Viewnior build with 0.28.0 and 0.27.6.

i have tested opening a JPEG image and looking at its EXIF metadata with both versions of exiv2.

¹ include/exiv2/image.hpp
² include/exiv2/error.hpp

exiv2-0.28.0 removed Exiv2::Image::AutoPtr and added
Exiv2::Image::UniquePtr instead. since it's a typedef for
std::unique_ptr<Image>, i'm using that directly instead of adding a
condition on the exiv2 version.
exiv2-0.28.0 changed Exiv2::AnyError to Exiv2::Error.
@pinotree
Copy link

@hellosiyan would you please take a look at this MR or #134? This way Viewnior can be built (and work) against newer versions of the Exiv2 library. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants