Yes using Qt5 as frameworks was tricky. I remember someone on IRC was doing that. It is a matter of making sure that the configure script can find the pkg-tool .pc files. But he also had to edit the .pc files to fix the include path, as somehow that was wrong in the framework release.