How make request on mysql with QT - c++

I Use My SQL and i developped my application on QT. I see many answer about my question but, the question was old and, i have an other probleme less speake.
my code it's just this :
#include <stdlib.h>
#include <stdio.h>
#include <QtSql>
int main(int argc, char *argv[])
{
printf("Hello wordl ! \n");
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setDatabaseName("meropyDatabase");
db.setUserName("User");
db.setPassword("ApplicationUser21!");
bool ok = db.open();
printf("Data base : %d \n",ok);
//QSqlQuery query;
db.exec("INSERT INTO Users (FirstName,LastName,IDCompany,EmailAddress) VALUES ('Jean','MICKEL',1,'jean.mickel#hotmail.fr')");
printf("erreur : %s \n",db.lastError().text().toStdString().c_str());
return 0;
}
And i have this error message :
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
QSqlQuery::exec: database not open
Hello wordl !
Data base : 0
erreur : Driver not loaded Driver not loaded
Today, i don't understand what make i for take work this...
For the option available drivers MYSQL is not here
I try to add different dll but not change....
I have juste change when i use QSQLITE but, it's connect on my database but it's don't find the table...
i use QT 5.15 and MySQL 8.0
In try to test this tuto : https://doc.qt.io/qt-5/sql-driver.html for window,
the first step it's ok, i discover the correcly directory,
But, for the second step : "qmake MYSQL_INCDIR="C:\Program Files\MySQL\Connector C++ 8.0\include" MYSQL_LIBDIR="C:\Program Files\MySQL\Connector C++ 8.0\lib64""
I have this message:
Running configuration tests...
Done running configuration tests.
Configure summary:
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt is now configured for building. Just run 'nmake'.
Once everything is built, you must run 'nmake install'.
Qt will be installed into 'C:\Qt\5.15.2\msvc2019_64'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
and nmake or mingw32-make don't work
for n make i have this error :
rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DNDEBUG -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_OMIT_COMPLETE -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_JSON1 -DSQLITE_OMIT_LOAD_EXTENSION -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DNDEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\release\qsqlite_resource.res qsqlite_resource.rc
qsqlite_resource.rc(1) : fatal error RC1015: cannot open include file 'windows.h'.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.EXE"' : code retour '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\Hostx64\x64\nmake.exe"' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : code retour '0x2'
Stop.
En effect, i don't find the file windows.h or the other file for QT...

Related

QT MYSQL drive build, undefined reference to `mysql_get_client_version#0'

I am trying to build the QMYSQL drive, I followed Document (https://doc.qt.io/qt-5/sql-driver.html#how-to-build-the-qmysql-plugin-on-windows)
it recommond me runned the code :
cd %QTDIR%\qtbase\src\plugins\sqldrivers
qmake -- MYSQL_INCDIR=C:/MySQL/include "MYSQL_LIBDIR=C:/MYSQL/MySQL Server <version>/lib/opt"
nmake sub-mysql
There is no "Libs & Include Files" Module in mysql "Custom Install", so I select the folder from the sql serves.
I run the code on cmd:
cd C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers
qmake -- "MYSQL_INCDIR=C:/MySql/MySQL Server 8.0/include" "MYSQL_LIBDIR=C:/MySql/MySQL Server 8.0/lib"
the result is :
info: creating stash file C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers\.qmake.stash
Running configuration tests...
Checking for DB2 (IBM)... no
Checking for InterBase... no
Checking for MySQL... no
Checking for OCI (Oracle)... no
Checking for ODBC... yes
Checking for PostgreSQL... no
Checking for SQLite (version 2)... no
Checking for TDS (Sybase)... no
Done running configuration tests.
Configure summary:
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... yes
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt is now configured for building. Just run 'mingw32-make'.
Once everything is built, you must run 'mingw32-make install'.
Qt will be installed into 'C:\Qt\5.12.6\mingw73_32'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
it seems like does not detected mysql. what should I do to build the mysql drive.
I checked the the config log for qmake:
Trying source 5 (type inline) of library mysql ...
+ cd /d C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers\config.tests\mysql && C:\Qt\5.12.6\mingw73_32\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_LIBDIR += C:\\openssl\\lib C:\\Utils\\my_sql\\mysql-5.6.11-win32\\lib C:\\Utils\\postgresql\\pgsql\\lib" "INCLUDEPATH += C:\\openssl\\include C:\\Utils\\my_sql\\mysql-5.6.11-win32\\include C:\\Utils\\postgresql\\pgsql\\include" "QMAKE_USE += mysql" "QMAKE_LIBS_MYSQL = \"C:/MySql/MySQL Server 8.0/lib/libmysql.lib\"" "QMAKE_INCDIR_MYSQL = \"C:/MySql/MySQL Server 8.0/include\"" C:/Qt/5.12.6/Src/qtbase/src/plugins/sqldrivers/config.tests/mysql
> Info: creating stash file C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers\config.tests\.qmake.stash
+ cd /d C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers\config.tests\mysql && set MAKEFLAGS=& mingw32-make
> g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -I. -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.6.11-win32\include -IC:\Utils\postgresql\pgsql\include -I"C:\MySql\MySQL Server 8.0\include" -IC:\Qt\5.12.6\mingw73_32\mkspecs\win32-g++ -o main.o main.cpp
> g++ -Wl,-s -Wl,-subsystem,console -mthreads -o mysql.exe main.o -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.6.11-win32\lib -LC:\Utils\postgresql\pgsql\lib "C:\MySql\MySQL Server 8.0\lib\libmysql.lib"
> c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: main.o:main.cpp:(.text.startup+0xc): undefined reference to `mysql_get_client_version#0'
> collect2.exe: error: ld returned 1 exit status
> mingw32-make: *** [Makefile:66: mysql.exe] Error 1
I think here is my problem,
undefined reference to `mysql_get_client_version#0'
but I do not know how to solve it.I am sure there is a "mysql.h" file in "include" folder with a method
unsigned long STDCALL mysql_get_client_version(void);
I solved it.
I solved It the qmake is 86X, and server is 64X. change a 64X qmake worked
this doc is better then old one.
https://doc-snapshots.qt.io/qt5-5.14/sql-driver.html#how-to-build-the-qmysql-plugin-on-windows

Qt Can't find std library for a project

I have a project in Qt which was working. Then once I shut down creator, opened it back up and rebuilt the project, Qt now says it can't find any of the std library headers. The error message is:
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h:45: error:
C1083: Cannot open include file: 'cstddef': No such file or directory
(Along with all the other std library headers I used)
I am building with vs 2015, and it would seem like Qt is not setting up the VS environment, but here's the thing, my other projects (in the same directory) build just fine. I have tried deleting the .pro files and the build files, re configuring the project, as well as reinstalling Qt, and running Qt from the command line. All to no avail.
I would just like to know what/where in the Qt environment is VS setup and what could cause only one project to behave this way? I assumed it would be in the Makefile, but I couldn't see anything when I went through it.
The entire compile output is:
10:13:03: Running steps for project QARD_Viewer...
10:13:03: Configuration unchanged, skipping qmake step.
10:13:03: Starting: "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"
"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f Makefile.Release
cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc -DUNICODE -DWIN32 -DWIN64 -DQWT_DLL -DQT_NO_DEBUG -DQT_WEBENGINE_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I..\QARD_Viewer -I. -I"D:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../PXGFtoFile/AARD Backup" -ID:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../SIMD_vectors/SIMD_vectors -I"D:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../PCL Proc Server/Common files" -ID:\Devlibs\boost_1_62_0 -ID:\Devlibs\Qwt-6.1.3\include -I..\..\Deployment\Code\PXGF_socket\PXGF_socket -I..\..\Deployment\Code\QardDetector\cfarLib -I..\..\Deployment\Code\coordHandling\coordHandling -I"..\..\Deployment\Code\PXGFtoFile\AARD Backup" -I"..\..\Deployment\Code\PCL Proc Server\Common files" -I..\..\Deployment\Code\SIMD_vectors\SIMD_vectors -I..\..\Deployment\Code\pxgf_rpk_client\pxgf_rpk_client -I..\..\Deployment\Code\QardDetector\QardDetector -ID:\Devlibs\Qt\5.7\msvc2015_64\include -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngine -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngineWidgets -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngineCore -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtQuick -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtSvg -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWidgets -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtGui -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtANGLE -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebChannel -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtQml -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtNetwork -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore -Irelease -I. -ID:\Devlibs\Qt\5.7\msvc2015_64\mkspecs\win32-msvc2015 -Forelease\ #C:\Users\JSendell\AppData\Local\Temp\nm6F02.tmp
main.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
mainwindow.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
ardplot_t.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
qread.cpp
..\..\Deployment\Code\PCL Proc Server\Common files\QARDHeader.h(3): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory
cfarplotter.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
detectiondisplay.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
geocode_data_manager.cpp
D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
cacfdetector.cpp
..\..\Deployment\Code\QardDetector\cfarLib\caCfarDetector.h(2): fatal error C1083: Cannot open include file: 'numeric': No such file or directory
label_connected.cpp
d:\users\jsendall\documents\pcl\gui\qard_viewer\label_connected.h(3): fatal error C1083: Cannot open include file: 'vector': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.
10:13:04: The process "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" exited with code 2.
Error while building/deploying project QARD_Viewer (kit: Desktop Qt 5.7.0 MSVC2015_64bit)
When executing step "Make"
10:13:04: Elapsed time: 00:01.

How to build mysql driver for qt?

I read a lot of instructions and tutorials how to do that, and I tried many of that, but 6 hours have gone and it's all the same. Please help...
I know, there are some similar questions on stackoverflow but answers on them doesn't help.
Problem:
I want to build Mysql driver for my qt program. According to instructions I did:
1) set mysql=C:\PROGRA~1\MySQL\MYSQLS~1.6 (full path is C:\Program Files\MySQL\MySQL Server 5.6)
2)
cd C:\Qt_Sources\5.2.1\Src\qtbase\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=%mysql%\include" "LIBS+=%mysql%\lib\libmysql.lib" mysql.pro
mingw32-make
mingw32-make from (C:\MinGW\bin)
After this I got:
mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory 'C:/Qt_Sources/5.2.1/Src/qtbase/src/plugins/
sqldrivers/mysql'
Makefile.Release:65: *** missing separator. Stop.
mingw32-make[1]: Leaving directory 'C:/Qt_Sources/5.2.1/Src/qtbase/src/plugins/s
qldrivers/mysql'
Makefile:40: recipe for target 'release-all' failed
mingw32-make: *** [release-all] Error 2
Also I tried nmake from (C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin) and result is:
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\nmake.exe" -
f Makefile.Release all
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -DUNICO
DE -DWIN32 -DQT_EDITION=QT_EDITION_DESKTOP -DQT_EVAL -DQT_NO_CAST_TO_ASCII -DQT_
NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQ
T_CORE_LIB -DNDEBUG -I"%mysql%\include" -I"C:\Qt\5.2.1\msvc2012\include\QtSql\5.
2.1" -I"C:\Qt\5.2.1\msvc2012\include\QtSql\5.2.1\QtSql" -I"C:\Qt\5.2.1\msvc2012\
include" -I"C:\Qt\5.2.1\msvc2012\include\QtSql" -I"C:\Qt\5.2.1\msvc2012\include\
QtCore\5.2.1" -I"C:\Qt\5.2.1\msvc2012\include\QtCore\5.2.1\QtCore" -I"C:\Qt\5.2.
1\msvc2012\include\QtCore" -I".moc\release" -I"..\..\..\..\mkspecs\win32-msvc201
2" -Fo.obj\release\ #C:\Users\GOODSP~1\AppData\Local\Temp\nmD5C6.tmp
NMAKE : fatal error U1077: 'cl' : return code '0xc0000135'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\bin\nmake.exe"' : return code '0x2'
Stop.
Please explain what I did wrong...
Yes, I finally resolve this issue...
I used qmake for another qt version, for me I think I used qmake from msvc2012, and tried to make it by mingw32-make and nmake (but nmake from visual studio 2011.. maybe this is the problem).
And solution is:
Use qmake from mingw48_32 directory (for me it's: C:\Qt\5.2.1\mingw48_32. Install qt sources with mingw, if you don't have it). After that all works fine with mingw32-make.

Compiler error when building Qt

I am trying to build Qt myself. I checked out everything and want to run configure now. The Visual Studio 2013 compiler is in PATH but I get this error
C:\Users\Philipp\Desktop\Qt>configure -developer-build -opensource -nomake examp
les -nomake tests -opengl desktop
+ cd qtbase
+ C:\Users\Philipp\Desktop\Qt\qtbase\configure.bat -top-level -developer-build -
opensource -nomake examples -nomake tests -opengl desktop
Please wait while bootstrapping configure ...
<srcbase> = C:/Users/Philipp/Desktop/Qt/qtbase
<outbase> = C:/Users/Philipp/Desktop/Qt/qtbase
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -Yc -nologo -Zm200 -Zc:wchar_t -MT -W3 -GR -EHsc -w34100 -w34189
-DUNICODE -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPO
NENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -D_CRT
_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED -DQT_BUILD_CONFIGURE -DCOMMERCIAL_VERSION
-I"..\..\include" -I"..\..\include\QtCore" -I"..\..\include\QtCore\5.2.0" -I"..
\..\include\QtCore\5.2.0\QtCore" -I"C:\Users\Philipp\Desktop\Qt\qtbase\tools\sha
red" -I"C:\Users\Philipp\Desktop\Qt\qtbase\mkspecs\win32-msvc2008" -Fpconfigure_
pch.pch -Foconfigure_pch.obj -TP C:\Users\Philipp\Desktop\Qt\qtbase\tools\config
ure\configure_pch.h
configure_pch.h
c:\users\philipp\desktop\qt\qtbase\include\qtcore\../../src/corelib/global/qglob
al.h(46) : fatal error C1083: Cannot open include file: 'stddef.h': No such file
or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\bin\cl.EXE"' : return code '0x2'
Stop.
Does anyone know how to solve this?
Compiler itself in the PATH variable is not enough, it needs to know where include files and libraries are located.
Check vc++ has PATH variables it uses defined (at least both INCLUDE and LIBPATH).
If not you have two options:
Run configure from Developer Command Prompt (you can find it in the Visual Studio Tools program group).
From any command prompt window run VcVars32.bat batch file (or VsVars32.bat) located in Common7\Tools folder under VS installation directory.

Error while building project when executing build step 'Make'

I've just installed Qt SDK 1.2.1 on my PC. I created a new project as a test:
File > New File or Project... > Other Project > Plain C++ Project
I chose these build settings:
Qt Creator generated this .pro file:
TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp
and this main.cpp file:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
The build fails:
13:39:35: Running build steps for project test...
13:39:35: Starting: "C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe" clean
Could Not Find C:\Dev\Projects\Qt\test\debug\main.obj
del debug\main.obj
del debug\test.intermediate.manifest debug\test.exp debug\test.ilk vc*.pdb vc*.idb
Could Not Find C:\Dev\Projects\Qt\test\debug\test.intermediate.manifest
Could Not Find C:\Dev\Projects\Qt\test\vc*.pdb
Could Not Find C:\Dev\Projects\Qt\test\test.intermediate.manifest
Could Not Find C:\Dev\Projects\Qt\test\test.exp
Could Not Find C:\Dev\Projects\Qt\test\test.ilk
Could Not Find C:\Dev\Projects\Qt\test\vc*.pdb
c:\dev\qt\qtsdk\desktop\qt\4.8.1\msvc2008\bin\qmake.exe -spec ..\..\..\Qt\QtSDK\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008 CONFIG+=declarative_debug -o Makefile test.pro
C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug clean
C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe -f Makefile.Release clean
Could Not Find C:\Dev\Projects\Qt\test\release\main.obj
Could Not Find C:\Dev\Projects\Qt\test\release\test.intermediate.manifest
del release\main.obj
del release\test.intermediate.manifest release\test.exp
del ".\test.intermediate.manifest"
del test.exp
del test.ilk
del vc*.pdb
del vc*.idb
Could Not Find C:\Dev\Projects\Qt\test\vc*.idb
jom 1.0.8 - empower your cores
13:39:36: The process "C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe" exited normally.
13:39:36: Configuration unchanged, skipping qmake step.
13:39:36: Starting: "C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe"
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -I"..\..\..\Qt\QtSDK\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ #C:\DOCUME~1\Mitch!\LOCALS~1\Temp\main.obj.5936.16.jom
C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Dev\Projects\Qt\test\Makefile.Debug [debug\main.obj] Error 1
jom 1.0.8 - empower your cores
jom: C:\Dev\Projects\Qt\test\Makefile [debug] Error 2
13:39:36: The process "C:\Dev\Qt\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project test (target: Desktop)
When executing build step 'Make'
I've tried running the Qt 4.8.1 for Desktop (MSVC 2008) batch script before starting Qt Creator and checking the Projects > Build Settings > Build Environment > Using System Environment > Clear System Environment without success.
My PATH variable after installing Qt SDK 1.2.1:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jEdit;C:\Program Files\TortoiseSVN\bin;C:\Program Files\doxygen\bin;C:\Program Files\NVIDIA Corporation\Cg\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
My computer is running Windows XP Professional (Service Pack 2). The version of Qt Creator that ships with Qt SDK 1.2.1 is 2.4.1.
Looks like cl is either not installed on your system, or needs to be added to the PATH environment variable. Try to find the cl.exe binary somewhere in C:\Program Files\Microsoft Visual Studio [version]\ and add the directory that contains that binary to your PATH.