Results 1 to 3 of 3

Thread: Issues creating MySql Plugin on Windows

  1. #1
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Issues creating MySql Plugin on Windows

    Good morning everyone,

    I've been having some problems getting the MySql plugin up and running on Windows after trying both the suggestions listed on the wiki page here, and also the recommended guide on the Trolltech site. I'm using the Open Source version of Qt SDK 2009.02 and MySQL v5.0, when using 2009.01 it would create the necessary files in the plugin folder, but never load them, and with 2009.02 it just doesn't seem to be able to create them at all.

    Has anyone else run across this? If so has anyone found anyway to get around it?

    EDIT:

    I rolled back to 2009.01, which does create the necessary files (qmysql.dll etc), I've cleared the plugin cache with regedit several times, rebooted a few times and still no joy. I'm half tempted to just install a fresh version of XP with just Qt and Mysql and see if that works
    Last edited by NicholasSmith; 27th April 2009 at 14:17.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Issues creating MySql Plugin on Windows

    What exactly did you do and what does QSqlDatabase::drivers() return? Did you remember about compiling the driver in the same mode (debug/release) as your Qt libraries? Do you have a QApplication or QCoreApplication object created before trying to access the database? This is the place where plugins are loaded into Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Issues creating MySql Plugin on Windows

    I completely forgot to mark this as done, it turned out to be the stupidest error in the world in the end.

    I already had a version of libmysql.dll in my windows32 path, and even though I'd set C:\Mysql\bin as the first directory in PATH to be checked it was using the older version, I dumped the newer version into windows32 and it worked.

Similar Threads

  1. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  2. Qt4 win opensource + mysql plugin
    By vr in forum Installation and Deployment
    Replies: 3
    Last Post: 25th May 2007, 09:01
  3. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  4. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36

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.