Either Qt packages are redundant or --with-gui=no is unwanted.
Which one?
Either Qt packages are redundant or --with-gui=no is unwanted.
Which one?
It can not build with the gui, because the qt5 version shipped in trusty is too old. I think it can be removed.