Qt-interest Archive, January 2008
MySQL and Darwin/Mac OSX (plugin not loaded)
Message 1 in thread
I'm having troubles using the MySQL plugin with Darwin/Mac OSX. I have it
working just fine for my application in Windows and Linux. When I load my app
in Mac OS X, I get the following error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
I configured qt with -sql-mysql -sql-sqlite -plugin-sql-mysql -plugin-sql-sqlite
-I /usr/local/mysql-5.0/include/ -L /usr/local/mysql-5.0/lib/. As you can
probably tell, I have the binary download of mysql-5.0 untarred in /usr/local/.
I also am compiling with QT_DEBUG_COMPONENT defined in hopes it would have
given me more information. I also have QT += sql in my .pro file. Again, this
works just fine in Linux and Windows. I have several dylib's in
/usr/local/Trolltech/Qt-4.3.3/plugins/sqldrivers/.
$ ls
libqsqlite.dylib libqsqlmysql_debug.dylib
libqsqlite_debug.dylib libqsqlodbc.dylib
libqsqlmysql.dylib libqsqlodbc_debug.dylib
How can I debug this? Is there a way to get a more specific error than just
that it wasn't loaded? Any suggestions on how to fix it?
Thanks in advance for the help,
Michael
--
[ signature omitted ]