PDA

View Full Version : Newbie Mac OS X problems



Vnuce
20th October 2009, 14:55
Hi,
Me again with the newbie questions. :)
I compiled my project, but still can not run it.

My first problem is that I don't have the QMYSQL driver, and don't know how to find/install it.
My second concern is this message I'm getting on every start of the app:
Unable to read symbols for "QtSvg.framework/Versions/4/QtSvg" (file not found).
Unable to read symbols from "QtSvg" (not yet mapped into memory).
Unable to read symbols for "QtSql.framework/Versions/4/QtSql" (file not found).
Unable to read symbols from "QtSql" (not yet mapped into memory).
Unable to read symbols for "QtXml.framework/Versions/4/QtXml" (file not found).
Unable to read symbols from "QtXml" (not yet mapped into memory).
Unable to read symbols for "QtGui.framework/Versions/4/QtGui" (file not found).
Unable to read symbols from "QtGui" (not yet mapped into memory).
Unable to read symbols for "QtCore.framework/Versions/4/QtCore" (file not found).
Unable to read symbols from "QtCore" (not yet mapped into memory).

Any help would be greatly appreciated. :)

wysota
20th October 2009, 18:40
Ad 1. What did you already try? Did you follow the manual and/or our wiki?

Ad 2. You're probably missing debug version of the libraries. That's nothing wrong unless you want to debug Qt code with a debugger.

Vnuce
20th October 2009, 18:52
I managed to compile qmysql plugin, but I don't know where should I put it?
I fail to find Qt's plugin directory.

I *believe* that would solve my problem?

wysota
20th October 2009, 19:47
Where did you look for it?

Vnuce
20th October 2009, 22:48
/usr and subfolders, /Library and subfolders, /Developer and subfolders...
Nothing that looks like the right place to put mysql plugin in...

Vnuce
21st October 2009, 13:43
Where did you look for it?

I found where the other SQL drivers are... I put the mysql driver there, but still no luck :(
Should I do something to make it load it?

wysota
21st October 2009, 13:56
No, if you placed your driver in plugins/sqldrivers, this should be enough (just remember to instantiate a Q(Core)Application object as this is the place where plugins are loaded).

Vnuce
22nd October 2009, 08:30
No, if you placed your driver in plugins/sqldrivers, this should be enough (just remember to instantiate a Q(Core)Application object as this is the place where plugins are loaded).

I thought it should be enough, too... but, it doesn't work :(
The QApplication object is initialized, that's for sure. The application works, on Linux, at least. I just can't get it to load the MySql driver on OSX.

wysota
22nd October 2009, 10:37
Do you have MySql client libraries installed? Run ldd on the driver and see if it can see all its dependencies.

Vnuce
22nd October 2009, 14:48
Yes, I have MySql libs installed.
I recompiled the driver, and it worked. It could be the location of the MySql libs, or maybe that I updated to 10.6.1 (along with XCode), or something completely different... The important thing is that it worked :)

Thanks for keeping me on the right track :)