Fix build with opencv 3.4

Authored by arojas on Dec 25 2017, 12:05 AM.



There are API changes in opencv 3.4 face module: the "load" and "save" functions have been renamed to "read" and "write". Additionally, the opencv_face library is not implicitly linked anymore, it needs to be explicitely searched for.

Test Plan

Builds with opencv 3.3 and 3.4

Diff Detail

R482 digiKam
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
arojas requested review of this revision.Dec 25 2017, 12:05 AM
arojas created this revision.
arojas edited reviewers, added: mqualmann; removed: qmarteen.
cgilles accepted this revision.Dec 25 2017, 7:23 AM

The patch is fine for me and can be applied to git master.

Note : For future digiKam 6.0.0, it will be time to drop OpenCV 2.X support.

Gilles Caulier

This revision is now accepted and ready to land.Dec 25 2017, 7:23 AM
mqualmann accepted this revision.Dec 25 2017, 7:41 AM
This revision was automatically updated to reflect the committed changes.