Multiple errors with Qt, qsql_mysql, while building ParaView on MacOS

This has the same solution as this question: ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. While building ParaView to execute Qt custom apps