Results 1 to 4 of 4

Thread: Qt4 win opensource + mysql plugin

  1. #1
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Qt4 win opensource + mysql plugin

    Hi,

    today I installed qt4.2.3 opensource + mingw on windows xp sp2 computer. After installation i built the mysql plugin as usually (currently i'm using qt+mingw+mysql plugin on my office pc and also my laptop).
    The plugin compiled and built successfully, and the plugin dll is placed in the $QTDIR\plugins\sqldrivers directory.
    After building the plugin i normally check the plugin availability with sql browser example.
    This time i noticed the only available drivers are the "builtin" ones: odbc and sqlite.
    Qt doesn't detect and load the plugin.

    I did a few plugin rebuilt, qt reinstall, in different combinations but the result is always the same...

    Any idea or solution?

    vr

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 win opensource + mysql plugin

    Quote Originally Posted by vr View Post
    Hi,
    I did a few plugin rebuilt, qt reinstall, in different combinations but the result is always the same...
    vr
    I use Mingw compiler e QT3-4 from 2 years a go ... i never successful build mysql driver after qt installation...

    I integrate mysql lib to Mingw lib && include dir and run perfect...
    and QtSql4.dll go to 737 KB


    Qt Code:
    1. mysql lib dir ....
    2. reimp -d libmysql.lib
    3. dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
    4. dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib c:\MINGW\lib\libmysql.a
    5. /* move mysql include to MINGW\include\*/
    6. /*
    7. cd qtdir
    8. configure -qt-sql-mysql -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-libpng -qt-libjpeg
    9.  
    10. */
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 win opensource + mysql plugin

    Very funny,

    i do almost the same:
    reimp -d libmysql.lib
    dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a

    and than in $qtdir\src\plugins\sqldrivers\mysql
    qmake -o Makefile "INCLUDEPATH+=C:\MYSQL\INCLUDE" "LIBS+=-LC:\MYSQL\LIB\OPT -lmysql" mysql.pro
    make

    and it always worked till now. This time i used the latest mysql version 5.0.41. Maybe it's "too fresh"?

    I'll check your solution!
    Bye

  4. #4
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 win opensource + mysql plugin

    Quote Originally Posted by vr View Post
    Very funny,
    and it always worked till now. This time i used the latest mysql version 5.0.41. Maybe it's "too fresh"?
    I'll check your solution!
    Bye
    Now you can read it on wiki...
    http://wiki.qtcentre.org/index.php?t...ws_using_MinGW

Similar Threads

  1. Step by Step MySQL Plugin... what's next step?
    By chaosgeorge in forum Qt Programming
    Replies: 20
    Last Post: 5th November 2006, 15:32
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  3. 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
  4. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 08:23

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.