I found the problem and solved it.
It turns out that Qt 4.4.3 uses only 32-bit while the MySQL I am using is using 64-bit.
The problem became obvious when I tried to compile Qt as a framework with the flag -arch x86_64 turned on. The compile just stops at qcursor. I turned on the flag because I was double-checking my MySQL version and found I am using the x86_64:
/usr/local/mysql -> mysql-5.1.30-osx10.5-x86_64
So, I downloaded the normal x86 version from MySQL.com, compile Qt using
-I/usr/local/mysql/include and -L/usr/local/mysql/lib flags
with MySQL driver as a plugin (default), everything went smoothly.
Right now, the link points to
/usr/local/mysql -> mysql-5.1.31-osx10.5-x86
Off-topic:
I hope all these 32 and 64 bit binaries to be solved in Snow Leopard, as I have read an article saying Leopard still has binaries mixed with 32 and 64 bits. One of the problems I am having is the default PHP not working with its image libraries, because of the same issue.
Bookmarks