Results 1 to 5 of 5

Thread: Mysql driver installing problem

  1. #1
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Mysql driver installing problem

    Hello,

    I'm trying to install mysql driver using next methods:

    cd %QTDIR%\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro
    nmake


    Everything works fine till nmake, then it displays the error `name` is not recognized as an internal or external command.

    I'm using c++ express 2010 and windows 7 64bit.

    I've tried running C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat but it displays same error again.
    I've tried setting Environment Variables: Variable: nmake Value:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe but same error again.

    Make does not work also.

    I've spent whole day searching on how to fix this but no luck, whatsoever.
    I hope someone of you guys could help me out. Thanks in advance!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Mysql driver installing problem

    The error message implies you are typing "name" instead of "nmake" and that there is no command of that name.. Are you typing "name" instead of "nmake"? Does issuing the command:
    Qt Code:
    1. nmake /?
    To copy to clipboard, switch view to plain text mode 
    output a help page for nmake? If so, then nmake is both found and working.

    Are you saying that running the environment setup script gives you the "name" error? If so the issue has nothing to do with Qt, and everything to do with a broken Microsoft environment.

    I have no idea what you expected the environment variable to achieve.

  3. #3
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: Mysql driver installing problem

    Are you perchance - and I apologize for asking such a silly question - failing to replace <version> with the actual version number?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Mysql driver installing problem

    I hadn't noticed that, nice pickup

  5. #5
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mysql driver installing problem

    I've mistyped `name` I ment nmake

Similar Threads

  1. MySql driver problem
    By stilgar in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2010, 10:26
  2. Replies: 7
    Last Post: 13th August 2009, 16:11
  3. MySQL driver - Very strange problem. PLEASE HELP ME. Thanks.
    By diego in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd June 2009, 01:56
  4. Qt mysql driver installation problem
    By alphajoseph in forum Installation and Deployment
    Replies: 1
    Last Post: 8th February 2009, 11:56
  5. Qt4 and mysql(driver problem)
    By knut in forum Installation and Deployment
    Replies: 20
    Last Post: 27th December 2007, 14:47

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.