Help on how to cross compile QT5 Libraries

I am trying to cross compile the QT libraries for the DE10 -Nano and am having a heck of a time.

I have tried way too many ./configure options.

If anyone has successfully built the QT5 libraries and used QT creator to cross-compile a minimal app, I’d appreciate it. This is in conjunction with the Terasic Ubuntu LXDE/Altera VIP Frame_Reader demos.

Resources I’ve found:
An old version of the Terasic QT demo’s which does give a cross compile configuration. However its for QT4, which is what I might just use…The DE10 QT demo gives precompiled libraries which just work.

This forum thread:
https://lists.rocketboards.org/pipermail/rfi/2015-March/002898.html

I have not attempted QT4 from the DE1 manual and the initial attempt at the forum link was a ‘no xcb found’ halting compile scenario.

I’m attempting to build libraries on Ubuntu 16.04 LTS.

Any pointers appreciated. I’ll update this if I figure it out.
The main problem I have is the XCB module and even understanding if it’s need/ed and/or what it does.

I’d also love the script that Terasic used to build QT5.5. So far I’ve been unable to back out their options from their pre-built library tar.

Thanks!