[Qt-interest] Qt 4.7, MySQL plugin OS X. stuck.
Mohd Razmi
mohdrazmi at gmail.com
Mon Sep 27 14:46:48 CEST 2010
Hello, i've experienced the same situation and managed to solve it
- add CONFIG += x86 in the mysql.pro file
- add -soec macx=g++ in the qmake command line.
eg :
qmake -spec macx-g++ -o Makefile "INCLUDEPATH+=/usr/local/mysql/include"
"LIBS+=-L/usr/local/mysql/lib -lmysqlclient_r" mysql.pro
- make -f release
Then you can copy the libsqlmysql.dylib into the plugins directory
cp libqsqlmysql.dylib
/Developer/Applications/Qt/plugins/sqldrivers/libqsqlmysql.dylib
More information about the Qt-interest-old
mailing list