Results 1 to 2 of 2

Thread: MySql plugin on Mac OS X

  1. #1
    Join Date
    Oct 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default MySql plugin on Mac OS X

    Hi all,

    I have problems with MySql plugin support for Qt 4.7.1 on my Mac.

    Using:
    - Qt open source version 4.7.1
    - MySql version 5.5.8 (osx10.6-x86_64)
    - Mac OS X version 10.6.5 (w. XCode 3.2.4 installed)

    Building Qt with the default ./configure script and installing to the default location works fine.

    Manually building the MySql plugin driver also (seemingly) works fine and installs correctly to /usr/local/Trolltech/Qt-4.7.1/ plugins/sqldrivers/ (libs created are libqsqlmysql.dylib and libqsqlmysql_debug.dylib).

    But how do I get Qt to recognize that the plugin driver now is available and useable?
    I.e. "QMYSQL" still does not show after a call to QSqlDatabase::drivers()...

    Regards,
    Thomas

  2. #2
    Join Date
    Oct 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: MySql plugin on Mac OS X

    My bad, the problem was solved by removing libqsqlmysql_debug.dylib from $QTDIR/plugins/sqldrivers
    Qt now loads the QMYSQL driver and connecting to the database works just fine...

    I guess I was missing out on something in the ./configure script when building Qt to make it fall over by finding the _debug lib?

    Regards,
    Thomas

Similar Threads

  1. MySql Plugin again!
    By .:saeed:. in forum Newbie
    Replies: 4
    Last Post: 31st January 2011, 22:58
  2. MySql plugin
    By hubipet in forum Installation and Deployment
    Replies: 0
    Last Post: 7th August 2010, 12:23
  3. plugin in mysql n qt
    By kazal in forum Qt Programming
    Replies: 10
    Last Post: 24th June 2010, 12:02
  4. after plugin Mysql n Qt..??
    By kazal in forum Newbie
    Replies: 0
    Last Post: 23rd June 2010, 10:44
  5. MySQL plugin
    By ksqt in forum Installation and Deployment
    Replies: 12
    Last Post: 24th September 2009, 14:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.