PDA

View Full Version : Mac: Debugging Qt and plugins



jyavenard
20th April 2012, 06:24
Hi there.

Using QtSDK 1.2.1 on a mac.

I'm trying to identify an issue with my application, and as such trying to use Qt debug libraries.
Following the documentation there:

http://qt-project.org/doc/qt-4.8/debug.html
I set export DYLD_IMAGE_SUFFIX=_debug

When doing so, I can see that the Qt debug libraries are properly loaded.
However, it can't find the mysql plugins.

mysql plugin is installed, for both standard and debug:
jyaimac:plugins jyavenard$ ls -l sqldrivers/
total 4976
-rwxr-xr-x 1 jyavenard staff 646992 20 Apr 13:39 libqsqlite.dylib
-rwxr-xr-x 1 jyavenard staff 958048 20 Apr 13:39 libqsqlite_debug.dylib
-rwxr-xr-x 1 jyavenard staff 93376 20 Apr 15:02 libqsqlmysql.dylib
-rwxr-xr-x 1 jyavenard staff 187752 20 Apr 15:01 libqsqlmysql_debug.dylib
-rwxr-xr-x 1 jyavenard staff 169032 20 Apr 13:39 libqsqlodbc.dylib
-rwxr-xr-x 1 jyavenard staff 210144 20 Apr 13:39 libqsqlodbc_debug.dylib
-rwxr-xr-x 1 jyavenard staff 111176 20 Apr 13:39 libqsqlpsql.dylib
-rwxr-xr-x 1 jyavenard staff 159088 20 Apr 13:39 libqsqlpsql_debug.dylib

If I unset DYLD_IMAGE_SUFFIX, then everything works fine...

What is the proper way of not only running debug version of Qt and still have access to plugins ?

Thanks in advance.