Qt requires Xcode to be installed on the system. You can get it from:
Qt for macOS is tested and compatible with several versions of GCC (GNU Compiler Collection) and Clang (as available from Xcode). For a list of tested configurations, refer to the Reference Configuration section of the supported platforms page.
Qt 5 does not support OS X on PowerPC.