Fix build with exiv2-0.27
AbandonedPublic

Authored by asturmlechner on Dec 30 2018, 1:09 PM.

Details

Reviewers
krop
Group Reviewers
Gwenview
Summary

Include exiv2.hpp instead of individual headers:

Headers are subject to refactoring upstream, using exiv2.hpp per recommendation.

Enable exceptions globally - otherwise, lots of the following error:

In file included from /usr/include/exiv2/types.hpp:34,
                 from /usr/include/exiv2/image.hpp:28,
                 from gwenview-18.12.0/lib/cms/cmsprofile.h:33,
                 from gwenview-18.12.0/lib/cms/cmsprofile.cpp:22:
/usr/include/exiv2/slice.hpp: In constructor ‘Exiv2::Internal::SliceBase::SliceBase(size_t, size_t)’:
/usr/include/exiv2/slice.hpp:99:77: error: exception handling disabled, use -fexceptions to enable
                     throw std::out_of_range("Begin must be smaller than end");
                                                                             ^
Test Plan

Built fine with exiv2-0.27

Diff Detail

Repository
R260 Gwenview
Branch
Applications/18.12
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6474
Build 6492: arc lint + arc unit
asturmlechner created this revision.Dec 30 2018, 1:09 PM
Restricted Application added a project: Gwenview. · View Herald TranscriptDec 30 2018, 1:09 PM
asturmlechner requested review of this revision.Dec 30 2018, 1:09 PM
asturmlechner edited the summary of this revision. (Show Details)Dec 30 2018, 1:11 PM
asturmlechner abandoned this revision.Dec 30 2018, 3:19 PM

Abandoned in favor of better D17872