Post by Patrick StinsonI am trying to create the minimum Qt build for QtWidgets, QtQuickControls,QtLocation, and QtPurchasing. But when I configure with the following

Build everything. Thatâs the easiest.

Definitely the easiest. Definitely time consuming. No matter how much effort I put into keeping my deps clean with a copy-and-paste build instructions, I always end up re-building enough to want it to happen quickly and in a pinch.

Anyway, your problem was skipping qtdeclarative. You can see the dependenciesin the .gitmodules file.

Thanks for the tip on .gitmodules. I knew it had to be somewhere. Some problems with it:

I had a look and qtdeclarative is only recommended for qtlocation and qtpurchasing. I did notice that qtandroidextras is a dependency for qtpurchasing, and qtpurchasing builds and installs after removing â-skip qtandroidextrasâ:

Project ERROR: Unknown module(s) in QT: location

Which is odd considering I am building on macOS. But OK, maybe the dependency list ignores the current platform.

But the question remains: Why doesnât qtlocation build when it only has qtbase as a dependency? So I removed â-skip qtdeclarativeâ from the configure line, but still no change:

Project ERROR: Unknown module(s) in QT: location

Then I removed â-skip qtserialportâ to satisfy the ârecommendsâ entries for qtlocation and that did it. So in the end for qtlocation and qtpurchasing on macOS I had to remove qtandroidextras, qtserialport, qtdeclarative