I just set up cocos2dx in windows 7. I try to run cocos in cmd, but it doesn't active :
'C:\Program' is not recognized as an internal or external command,
C:\Users\9470m\Documents>cocos run -s D:\Game\firstGame\firstGame -p win32
Building mode: debug
Building...
Required VS version : [2012, 2013]
running: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\deven
"D:\Game\firstGame\firstGame\proj.win32\firstgame.sln" /Build "Debug" /Project
game"'
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error running command, return code: 1.
Can you give me an advice.
Related
This is somewhat similar to the question asked here.
Issue in VS 2019 build with editbin.exe location
I have a post build task in my project like this:
call "%VS160COMNTOOLS%VsDevCmd.bat"
gacutil.exe /f /silent /i "$(TargetDir)$(TargetFileName)
Visual Studio upon building, is unable to resolve the macro, %VS160COMNTOOLS% - it resolves to an empty string with the following output:
'"VsDevCmd.bat"' is not recognized as an internal or external command, operable program or batch file.
'gacutil.exe' is not recognized as an internal or external command, operable program or batch file.
Why is this and how do we make Visual Studio recognize the macro? The same macro resolves correctly in VS2019 command prompt. Why is this?
I can't run external commands in the terminal like I can in cmd.exe
I am using vscode 1.50.1
I have environment variable PATH set to:
C:\Program Files\dotnet;C:\Python\Python36\Scripts;C:\Python\Python36;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\MongoDB\Server\3.6\bin;C:\Users\axw04\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\nodejs;C:\Windows\System32;C:\Program Files\Git\bin;C:\Program Files\Java\jre1.8.0_191\bin;C:\Users\axw04\AppData\Roaming\npm;%USERPROFILE%.dotnet\tools;C:\Users\axw04.platformio\penv\Scripts;
In the normal cmd.exe I can run the dotnet command without any problem:
eq. dotnet --info
But in the terminal of vscode I get an error
'dotnet' is not recognized as an internal or external command,
operable program or batch file.
I also tried switching to powershell as default shell without any luck.
I reinstalled the latest
.NET Core 3.1 SDK (v3.1.403) - Windows x64 Installer
nothing seems to work.
my system is a windows10 laptop.
I have both vscode and visual studio 2019 installed.
I'm trying to call a script via bash.exe in the post-build events from visual studio (actually atmel studio 7.0, which is based on vs)
I'm getting the following error when i try this:
"$(SystemRoot)\System32\bash.exe"
The following error is reported:
Task "Exec"
"C:\Windows\System32\bash.exe"
'"C:\Windows\System32\bash.exe"' is not recognized as an internal or
external command, operable program or batch file.
C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets(36,5): error: MSB3073:
The command ""C:\Windows\System32\bash.exe" " exited with code 9009.
I even tried copying bash.exe to another destination, but that had the same problem.
Any advice?
Thanks!
solution found here: https://gist.github.com/m93a/cb41dcbd72ee7ff9fea3726a28d9f895
don't call bash.exe directly, but call this .bat file instead
Trying to build emerge(http://techbase.kde.org/Getting_Started/Build/Windows/emerge) with vc2008 expression, when I type "kdeenv.bat", the command prompt tell me that
'"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\SetEnv.cmd"' is not recognized as an internal or external command,
operable program or batch file.
call "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\SetEnv.cmd" /x86
After I navigate to the folder(C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin), I find out that there is no "setenv.cmd". Where could I get this file?
PS: what I really need is the library of openldap; this post suggests emerge
Check this link.
Or you can write your own version of SetEnv.cmd and save it at C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\SetEnv.cmd. You can google for SetEnv.cmd script.
I have set-up everything according to instructions on https://github.com/TideSDK/TideSDK/wiki/Windows7-x86-2005
But, scons won't pick up "rc" from PATH:
> scons -s debug=1 sdkinstaller run=1
...
runs fine for a while, until:
...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be
removed in a future release
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be
removed in a future release
boot_win32.cpp
'rc' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [build\win32\objs\boot\support\winboot.res] Error 1
> rc
fatal error RC1107: invalid usage; use RC /? for Help
> echo %path%
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsof
t Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tool
s;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINXP\Microsoft.NET
\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;C
:\Program Files\ImageMagick-6.8.0-Q16;C:\WINXP\system32;C:\WINXP;C:\WINXP\System
32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Git\cmd;C:\Program
Files\Git\bin;C:\Python25\Scripts;C:\Python25
Googling on this matter suggests the solution to add the VC bin directory to PATH, but as you can see, that is already in place.
Note: I installed and used scons 2.2.0 as well, but then it wouldn't even recognize "cl". At least with scons 1.2.0 it recognizes "cl", but unfortunately not "rc"
First time building on Windows, any advice appreciated!
Virtual machines are cheap and accessible. I'd recommend a clean build environment that is not polluted by several SDK versions.
Might help for someone else, but Visual Studio has it's own CMD which will have these path set. Just open corresponding Visual Studio CMD and compile from there.