Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: I just don´t get the MySQL Driver Compiled

  1. #21
    Join Date
    Feb 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I just don´t get the MySQL Driver Compiled

    Creating library file: c:\Qt\2010.02.1\qt\plugins\sqldrivers\libqsqlmysql 4.a
    mingw32-make[1]: Leaving directory `C:/Qt/2010.02.1/qt/src/plugins/sqldrivers/my
    sql'

    what the fuck Oo


    hm... he said he created it but there is no *.a file

    the file is created but i wonder, its in sqldrivers\ but not in sqldrivers\mysql

    ive tested it.


    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC

    edit : the qsqlmysql4.dll is created in C:\Qt\2010.02.1\qt\plugins\sqldrivers
    Last edited by alex04721; 5th March 2010 at 09:02.

  2. #22
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I just don´t get the MySQL Driver Compiled


    the file is created but i wonder, its in sqldrivers\ but not in sqldrivers\mysql

    ive tested it.
    regarding the .a and .dll... I think the .a is an intermediate step and the archiver will create a dll from it. Yes, the destination is a bit different than the structure of the src folder - this is not that surprising to me.

    the qsqlmysql4.dll is created in C:\Qt\2010.02.1\qt\plugins\sqldrivers
    ok, we're getting closer.
    Now when you start the Qt prompt, make sure you have the correct path in there, otherwise Qt won't be able to locate the plugins.
    Also, make sure you are running the release version of your app, OR make sure you also build the debug version of the qslqmysql dll, which is called qsqlmysqld4.dll.

    And make sure the mysql client lib is in your path.
    Last edited by schnitzel; 5th March 2010 at 17:55. Reason: correction

  3. #23
    Join Date
    Feb 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I just don´t get the MySQL Driver Compiled

    i do not exactly know whaht you mean. I am usually working with the QT Creator. I compiled my mysql app with the QT Creator in Release Mode so CONFIG+=release is set. But the plugin still isn´t found.

  4. #24
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I just don´t get the MySQL Driver Compiled

    just for a test, create a folder and put the following in it:
    QtGui4.dll
    QtCore4.dll
    QtSql4.dll
    libgcc_s_dw2-1.dll
    mingwm10.dll
    <yourapp>.exe
    libmysql.dll
    plugins <--- create this folder and copy qslqmysql.dll into it

    Then start a Qt command prompt and try running your program.

    btw: you do have the following line in your .pro file right?
    QT += sql

  5. #25
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I just don´t get the MySQL Driver Compiled

    sorry, duplicate post
    Last edited by schnitzel; 8th March 2010 at 17:21. Reason: duplicate post

Similar Threads

  1. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 15:19
  2. cant compile mysql driver
    By IsoArska in forum Newbie
    Replies: 18
    Last Post: 30th November 2009, 22:51
  3. Statically compiled Qt 4.1.4 and mySql
    By Djony in forum Installation and Deployment
    Replies: 1
    Last Post: 26th January 2007, 07:13
  4. Deployment of QT4 App that uses the MySql driver
    By kroenecker in forum Installation and Deployment
    Replies: 5
    Last Post: 20th June 2006, 08:52

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.