[Qt-interest] Qt 4.7, MySQL plugin OS X. stuck.
hello
helloalias at me.com
Tue Sep 7 02:21:50 CEST 2010
Hello.
I just downloaded 4.7 (I was using 4.6 on a mac desktop. I now am on a new macbook pro which which is using the carbon 4.6 Qt just fine including mysql).
I ran my tests against my app and 4.7 and everything compiled and worked. Except when I ran my app that calls the mysql database (locally) Qt said it could not load the mysql driver.
I understand Qt does not compile the mysql plugin on install due to licensing issues, but I copied my mysql plugin from my 4.6 install and it did not work (I can see why, a whole different version, I was just hoping it would work.)
So I have spent a day trying to get the mysql plugin for 10.6 OSX to compile. Of course I looked at the docs which told me to do this:
cd $QTDIR/src/plugins/sqldrivers/mysql
(note. I had to re-download the qt source here since I used the installer from Qt. which could be problem #1. I did not have the source. Also note there was no .pro file in this directory so I had to make on up which could be another problem.) So I downloaded the Qt 4.7 source to continue to try to compile the mysql plug in.)
I followed the instructions:
qmake -o Makefile "INCLUDEPATH+=/usr/local/mysql/include" "LIBS+=-L/usr/local/mysql/lib -lmysqlclient" mysql.pro
Note. My install is different so I have to add "mysql" to the paths above.
It should be noted that I also used the installer to install MySql on 10.6. And looking around something posted that this may not include the "developer" libraries libmysqclient.so ?? (this might be problem number two.)
So running the make above does outputs an xcode file that produces 56 errors when I try to compile it in xcode 3.x
then I took out the -o makefile:
qmake "INCLUDEPATH+=/usr/local/mysql/include" "LIBS+=-L/usr/local/mysql/lib -lmysqlclient" mysql.pro
and I got another xcode file that would not compile and instead gave me 56 errors.
So I still have not gotten the mysql plugin to compile on Qt 4.7 and OS X 10.6. My old driver does not work and I am stuck in not upgrading to 10.7 until I can get a mysql plugin to compile for me.
The manual says I need "Depending on your Linux distribution you may need to install a package which is usually called "mysql-devel"."
But I am on OS X. But gotta figure I am not the only one using OS X, QT and who used the mysql installer (which does not install libmysqlclient.so?)
Anyone else run into this?
I am stuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100907/3efee223/attachment.html
More information about the Qt-interest-old
mailing list