PDA

View Full Version : Mysql driver installing problem



xtra
5th March 2012, 23:05
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!

ChrisW67
6th March 2012, 01:44
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:


nmake /?
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.

Urthas
6th March 2012, 02:19
Are you perchance - and I apologize for asking such a silly question - failing to replace <version> with the actual version number?

ChrisW67
6th March 2012, 05:14
:) I hadn't noticed that, nice pickup

xtra
6th March 2012, 12:24
I've mistyped `name` I ment nmake