[Solved] How to use Sailfish MDM in a SailfishApp

Try to omit

CONFIG += link_pkgconfig

in your .pro file. Keep just

PKGCONFIG += sailfishmdm

link_pkgconfig is already added as an effect of adding sailfishapp and there is a nasty bug in qmake that adding link_pkgconfig multiple times makes later changes to PKGCONFIG ineffective or so (IIRC).

4 Likes