The thread is quite old but could be very useful for someone.
If you followed these steps http://doc.qt.nokia.com/4.0/sql-driv...x-and-mac-os-x and had no errors/warnings,
using Qt sources and development package of MySQL , the size of the result lib it's ok (for the release one).
Point 7 : instead of a direct copy it's better a make install to be sure of the destination path.
Before the point 8 and after the install there's another step : you've to change the result lib with this cmd (you'll find it in the last rows of the script mentioned by TCB13) :
install_name_tool -change libmysqlclient.18.dylib $MYSQL_LIB/libmysqlclient.18.dylib $QT_PLUGIN_PATH/sqldrivers/libqsqlmysql.dylib
install_name_tool -change libmysqlclient.18.dylib $MYSQL_LIB/libmysqlclient.18.dylib $QT_PLUGIN_PATH/sqldrivers/libqsqlmysql.dylib
To copy to clipboard, switch view to plain text mode
where
MYSQL_LIB=/usr/local/mysql/lib
MYSQL_LIB=/usr/local/mysql/lib
To copy to clipboard, switch view to plain text mode
(normally the dft installation path for MySQL, again see the script)
and
QT_PLUGIN_PATH=`qmake -query QT_INSTALL_PLUGINS`
QT_PLUGIN_PATH=`qmake -query QT_INSTALL_PLUGINS`
To copy to clipboard, switch view to plain text mode
.
MySQL client lib could change on the basis of MySQL api version (check the existent in the previous path).
After that everything'll work fine.
Bookmarks