Results 1 to 16 of 16

Thread: MySQL driver - Very strange problem. PLEASE HELP ME. Thanks.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Feb 2010
    Location
    Finland
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 3 Times in 2 Posts

    Default Re: MySQL driver - Very strange problem. PLEASE HELP ME. Thanks.

    I also ran into many problems while trying to compile driver. I solved the problem by downloading mingw-utils 0.3. Add it to PATH variable
    Then few simple steps:

    cd e:\MySQL\lib\opt

    reimp -d libmysql.lib

    dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib E:\Qt\2010.02\mingw\lib\libmysql.a

    reimp libmysql.lib

    cd e:\Qt\2010.02\qt\src\plugins\sqldrivers\mysql

    qmake "INCLUDEPATH+=E:\MySQL\include" "LIBS+=E:\MYSQL\lib\opt\libmysql.lib" mysql.pro

    mingw32-make

    NOTICE that reimp is used twice

  2. The following user says thank you to viheaho for this useful post:

    marx8926 (4th April 2010)

Similar Threads

  1. Very Strange problem
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 30th April 2008, 09:20
  2. Strange shortcut problem
    By blukske in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2007, 10:26
  3. My Mysql 5 and Qt 4.2.2 Problem (Driver not loaded)
    By fengtian.we in forum Qt Programming
    Replies: 4
    Last Post: 9th February 2007, 08:11
  4. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45

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
  •  
Qt is a trademark of The Qt Company.