When I try to run the below lines..
cd $QTDIR/src/plugins/sqldrivers/mysql
DTPC-184N:mysql user$ qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient" mysql.pro
WARNING: /Applications/QT/5.4/Src/qtbase/src/plugins/sqldrivers/qsqldriverbase.pri:4: Unable to find file for inclusion qt_plugin
Project MESSAGE: Warning: unknown QT: core-private
Project MESSAGE: Warning: unknown QT: sql-private
Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
Failure to open file: /Applications/QT/5.4/Src/qtbase/src/plugins/sqldrivers/mysql//Makefile
Unable to generate makefile for: mysql.pro

how to make this qmake work. because of this, when I try to connect db, getting error as "QSqlError("2049", "QMYSQL: Unable to connect", "Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)")"

I tried to resolve this 'connection using old....' by setting in workbench for the db as
set global secure_auth = off;
set session old_passwords = 'OFF';

still getting the same issue.