Results 1 to 10 of 10

Thread: MySQL driver installation on Qt 4.7.0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Symbian S60 Maemo/MeeGo

    Default MySQL driver installation on Qt 4.7.0

    Hey Qtcentre,

    I'm currently working on an application which need acces to a MySQL database. I get the usual error with the missing driver for MySQL when trying to run the app in the simulator, and it wont run on the phone (n900) either.

    I did the following:

    Download and install MySQL with libraries
    Run Qt. 4.7 Command prompt
    cd c:\Qt\4.7.0\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:\\program files\\MySQL\\MySQL Server 5.1\\include" "LIBS+=C:\\program files\\MySQL\MySQL Server 5.1\\lib\\opt\\libmysql.lib" mysql.pro
    nmake

    Everything works until i write nmake, where i get the following error:
    'nmake' is not recognized as an internal or externa......
    I tried make and mingw32-make which gave the same error.

    I then saw a different approach, and tried to edit the path in environment variables under systems to c:\Qt\4.7.0\bin, but didn't understand the part about adding the destination to the compiler. (what compiler and where?)

    Im quite a neewb, so i'll appreciate anything easy to understand
    Last edited by FrankN; 30th November 2010 at 17:28.

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. QMYSQL database driver installation files
    By babygal in forum Newbie
    Replies: 28
    Last Post: 12th August 2010, 11:55
  3. Qt mysql driver installation problem
    By alphajoseph in forum Installation and Deployment
    Replies: 1
    Last Post: 8th February 2009, 11:56
  4. Mysql installation on Qt 4.4.1
    By eekhoorn12 in forum Installation and Deployment
    Replies: 6
    Last Post: 10th October 2008, 09:50
  5. driver installation
    By kernel_panic in forum Qt Programming
    Replies: 2
    Last Post: 6th September 2007, 10:20

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.