Should I build Qt 5.10 from source on Linux?

Assuming you have a recent version of Ubuntu, downloading Qt 5.10 should work well.

Make sure you install (at least) the following components:

These two pages are also useful resources: