Im using ubuntu, and used https://github.com/nezticle/RaspberryPi-BuildRoot to build Qt5 for rpi (as that sdk env builds quite new sha1 hash of Qt5 automaticly).