Qt Cmake configuration has no path to a C++ compiler set - c++

The warning I get is: "Qt Cmake configuration has no path to a C++ compiler set, even though the toolkit has a valid tool chain."
I am not sure how to change the CMake configuration so that it has a path to the compiler. I do have a C++ compiler installed as it works with VS but Qt seems to run into some problem.
This is a screen shot of what appears as the warning: https://i.stack.imgur.com/ETET6.jpg
This is the error I get trying to run anything:
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\game.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\spaceship.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\laserbeam.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\config.obj] Error 1
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\iofile.obj] Error 1
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
17:06:30: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project Invaders (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
When executing step "Make"

After running following file & restart qt creator warning and error get resolved.
Please run vsvars32.bat file in tools of Visual studio 14.0
Directory Path : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
Mostly this issue come after update of visual studio tools.

Related

gdb fails to launch in eclipse oxygen

I downloaded the latest version of the C++ ide from eclipse called oxygen. I am trying to do a basic debug test with an application on windows 10 but get this error message:
Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols C:/Users/Owner/eclipse-workspace/Hello/Debug/Hello.exe
Error message from debugger back end:
"C:/Users/Owner/eclipse-workspace/Hello/Debug/Hello.exe": not in executable format: File format not recognized
"C:/Users/Owner/eclipse-workspace/Hello/Debug/Hello.exe": not in executable format: File format not recognized
I added the path to the gdb executable in the mingw folder but I am still getting that error message.

VisualGDB Embedded Project Error

I am using VisualGDB to build an Emedded Project using Visual StudionCommunity 2013. I chose STM32F4xxxx as my device type. I am getting the below error while doing, clean, build or rebuild
Error 6 error MSB3073: The command ""\VisualGDB.exe" /rebuild "C:\MyWork\experiments\Embedded\EmbeddedProject1\EmbeddedProject2\EmbeddedProject2.vcxproj" "/solution:C:\MyWork\experiments\Embedded\EmbeddedProject1\EmbeddedProject1.sln" "/config:Debug" "/platform:ARM"" exited with code 9009.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 EmbeddedProject2
I had the same error and my problem was that I had not the beginning of a path in my makefile (I had just ".../NameOfTheLib" and I replace by "C:/Documents/...AllMyPath/NameOfTheLib") and now it works and I can send my project by SSH.

NetBeans and MinGW :'test' is not recognized as an internal or external command

I'm using NetBeans 7.4 with ported version of MinGW from EquationSolution.
The problem is the make command. Eventhough it's inside the bin directory of the compiler which is located in C:\MinGW, NetBeans doesn't recognize it and I have to manually set it.
After doing that, hitting build button causes the following message:
'test' is not recognized as an internal or
external command,
operable program or batch file.
The syntax of the command is incorrect.
! was unexpected at this time.
make: *** [.validate-impl] Error 255
I feel I'm missing something, what is it?

Build Error in VC++11 Troubles - MSB3073 error code 127

I am attempting to build a project in VS Express 2012 that was not created by me on my computer for the first time and am getting the following build error:
error MSB3073: The command "c:\cygwin\bin\bash -c "CC=/usr/bin/i686-w64-mingw32-gcc
CXX=/usr/bin/i686-w64-mingw32-g++ AR=/usr/bin/i686-w64-mingw32-ar
OBJCOPY=/usr/bin/i686-w64-mingw32-objcopy RANLIB=/usr/bin/i686-w64-mingw32-ranlib
WINDRES=/usr/bin/i686-w64-mingw32-windres make MODEL=mdi -j "" exited with code 127.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets
I am very unfamiliar with Visual Studio make commands (and have no idea what this one is trying to do) let alone error codes and can't seem to find anywhere what exit code 127 means in relation to the MSB3073 error. I originally did not have cygwin or mingw installed on my computer and suspected that to be the issue, however after installing both I am getting the same error and I'm now out of ideas. Hopefully this is enough information to generate some thoughts. Thanks!

Unknown errors in makefile in Qt application

I did some changes like copying .dll (libmysql.dll) in project directories, and included include and libs path in mysql.pro. So now when I debug any program I get some error as follows:
'cl' is not recognized as an internal or external command, operable
program or batch file. jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile.Debug
[debug\main.obj] Error 1
'cl' is not recognized as an internal or external command, operable
program or batch file. jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile.Debug
[debug\client.obj] Error 1 jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile
[debug] Error 2 10:48:01: The process
"D:\QT\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while
building/deploying project zerocopy (kit: Desktop Qt 5.0.2 MSVC2010
32bit) When executing step 'Make' 10:48:01: Elapsed time: 00:01.
Is this error because of those changes? I am running a totally different program i.e I haven't included any sql header or anything. Please help me out.
Check my Tool Chains:
The important thing is the call of "C:\Program Files...vcvars32.bat" which is called as initialization. This batch file extends the PATH variables and does some other things so the calls of cl.exe and link.exe etc work. Maybe you can manually configure something like that as well. In my case, Qt Creator just auto-detected it and it has always been there.
Note that these settings are for Windows XP 32bit with Visual Studio 2008