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
Related
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.
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.
I'm trying to deploy my Django website, which is written using Python 2.7, on a windows 64 bit machine (Windows Server 2008 R2). I installed the pre-compiled version of Apache (Apache 2.4.16 x64) from https://www.apachehaus.com/cgi-bin/download.plx (due to lack of option provided by Apache Lounge***), and have checked that Python 2.7 runs on 64 bit and compiles with VC9. I wasn't able to find a pre-built binary for mod_wsgi (for Windows 64 bit and compiled with VC9), so I downloaded the source code for mod_wsgi from https://github.com/GrahamDumpleton/mod_wsgi/releases/tag/4.4.13 and followed the direction from https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst, changing the ap24py27-win64-VC9.mk file to point at the right directories for APACHE_ROOTDIR and PYTHON_ROOTDIR, and using C++ 2008 64-bit Command Prompt to run the command nmake -f ap24py27-win64-VC9.mk clean. However, this gave me the error:
wsgi_memory.obj : error LNK2019: unresolved external symbol GetProcessMemoryInfo referenced
in function getPeakRSS
mod_wsgi.so : fatal error LINK1120: 1 unresolved externals
NMAKE : fatal error U1077: `"...\Visual C++ for Python\9.0\VC\Bin\amd64\c1.EXE"` :
return code `0x2`
Stop.
I have read the installation and configuration documents for mod_wsgi multiple times and have searched the web including SO for the past few hours to no avail. What am I doing wrong here and how could I fix it?
***I know the official document for installing mod_wsgi warns against using binaries from other sources than Apache Lounge but I don't seem to be able to find the right compiled version (for VC9 and Windows 64 bit) from the site. Could this be a problem and if so, how could I fix it?
Update: following Adelin's suggestion, I was able to get namke -f ap24py27-win64-VC9.mk clean to run. However, when I try running namke -f ap24py27-win64-VC9.mk or namke -f ap24py27-win64-VC9.mk install, I get pages of warnings that say: warning C4820: '...' : '...' bytes padding added after data member '...' until the compiler quits with
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
...\mod_wsgi-4.4.13\src\server\wsgi_memory.c<124> : warning C4711: function 'getCurrentRSS' selected for automatic inline expansion
NMAKE: fatal error U1077: '"C:\...\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\c1.EXE"' : return code '0x2'
Stop.
Does anyone have any idea why this might be and how I should go about fixing it?
I had this same error.
The problem is that the cl.exe doesn't find the psapi.lib. This lib includes the function referenced in wsgi_memory.c - GetProcessMemoryInfo.
To fix this, you should follow these steps:
Locate psapi.lib (run a search on C:\)
Open the ap24py27-win64-VC9.mk file you are using to compile, with
any text editor
See what other .mk file it includes. Most probably common-VC9.mk
Open that file (common-VC9.mk) with any text editor
Under LDFLAGS, append yet another line of /LIBPATH:"PATH_FOUND_AT_STEP_1"\
Save changes and retry
What a pain in the ass this was for me too :)
P.S. If you don't find psapi.lib anywhere, it's because you don't have the Windows SDK. I installed both Windows 7 and Windows 8 SDKs and eventually had the psapi.lib located here C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64
Edit:
To give you a solution for your newest errors in a somewhat general way, whenever nmake throws "No such file" errors, the location for the file is not properly referenced in common-VC9.mk file.
There are two types of files nmake will look for: .h or .lib.
If a .h is not found, the corresponding path should be properly referenced under the CPPFLAGS variable of common-VC9.mk file.
If a .lib is not found, you need to update LDFLAGS path accordingly.
How? The same way you included the path for psapi.lib: locate the file and append the corresponding path to the proper variable: CPPFLAGS or LDFLAGS.
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?
Opensteer is a library which aims to provide agent behaviors for real time games.
I tried to compile it, but I have an error and I have no clue what it means. When I click on it, it opens a MSVC file.
Error 3 error MSB3073: The command "mkdir "C:\opensteer\win32\\lib"
copy "C:\opensteer\win32\Debug\opensteer.lib" "C:\opensteer\win32\\lib"
:VCEnd" exited with code 1. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
I've no idea why there is somehow a folder name thing missing between the two \\
It's only the source package provided here http://sourceforge.net/projects/opensteer/files/opensteer/OpenSteer%200.8.2/