You are mixing new and old Qt versions. See for example:
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1497:13: error: ‘class QImage’ has no member named ‘setDevicePixelRatio’
IIRC setDevicePixelRatio was added to QImage as of version 5.6 or 5.5
|