[Solved] [Win7 64bit] Compiling failure (os.chdir/nmake)

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
Paradox
Posts:4
Joined:2012-07-29, 23:39
[Solved] [Win7 64bit] Compiling failure (os.chdir/nmake)

Post by Paradox » 2012-07-29, 23:58

Hello,

I have a very similar problem to this http://www.cafu.de/forum/viewtopic.php? ... 1&start=15

If I run the scons command in cmd.exe, the output is:

Code: Select all

C:\Cafu-src-r561>scons
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc10 TARGET_CPU=AMD64
Der Befehl "nmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
os.chdir('C:\\Cafu-src-r561')
scons: *** Error 1
Debug output:

Code: Select all

C:\Cafu-src-r561>scons -Q
trying to find VC 10.0Exp
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
found VC 10.0Exp
trying to find VC 10.0
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
found VC 10.0
trying to find VC 9.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\9.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 9.0
trying to find VC 9.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\9.0\\Setup\\VC\\Prod
uctDir'
find_vc_pdir return None for ver 9.0Exp
trying to find VC 8.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\8.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 8.0
trying to find VC 8.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\8.0\\Setup\\VC\\Prod
uctDir'
find_vc_pdir return None for ver 8.0Exp
trying to find VC 7.1
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 7.1
trying to find VC 7.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 7.0
trying to find VC 6.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\6.0\\Setup\\Micro
soft Visual C++\\ProductDir'
find_vc_pdir return None for ver 6.0
msvc_setup_env()
get_default_version()
get_default_version(): msvc_version:None msvs_version:None
installed_vcs:['10.0Exp', '10.0']
msvc_setup_env: using default installed MSVC version '10.0Exp'

msvc_setup_env: using specified MSVC version '10.0Exp'

vc.py:msvc_find_valid_batch_script()
vc.py:get_host_target()
vc.py:get_host_target() req_target_platform:x86_64
vc.py:msvc_find_valid_batch_script() trying target_platform:amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
sdk.py:get_installed_sdks()
MSCommon/sdk.py: trying to find SDK 7.0
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v7.0\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v7.0\\Installatio
nFolder'
MSCommon/sdk.py: trying to find SDK 6.1
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.1\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\Installatio
nFolder'
MSCommon/sdk.py: trying to find SDK 6.0A
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.0A\InstallationFolder

find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\Installati
onFolder'
MSCommon/sdk.py: trying to find SDK 6.0
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.0\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.0\\Installatio
nFolder'
MSCommon/sdk.py: trying to find SDK 2003R2
find_sdk_dir(): checking registry:Software\Microsoft\MicrosoftSDK\InstalledSDKS\D2FF9F89-8AA2-4373-8
A31-C838BF4DBBE1\Install Dir
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\MicrosoftSDK\\InstalledSDKS\\D2FF9F89-8AA2
-4373-8A31-C838BF4DBBE1\\Install Dir'
MSCommon/sdk.py: trying to find SDK 2003R1
find_sdk_dir(): checking registry:Software\Microsoft\MicrosoftSDK\InstalledSDKS\8F9E5EF3-A9A5-491B-A
889-C58EFFECE8B3\Install Dir
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\MicrosoftSDK\\InstalledSDKS\\8F9E5EF3-A9A5
-491B-A889-C58EFFECE8B3\\Install Dir'
vc.py:msvc_find_valid_batch_script() vc_script:C:\Program Files (x86)\Microsoft Visual Studio 10.0\V
C\vcvarsall.bat sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 u'C:\\Program Files (x86)\\Microsoft Visual Studio
 10.0\\VC\\vcvarsall.bat', args:amd64

Calling 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat amd64'
vc.py:msvc_find_valid_batch_script() use_script 3: failed running VC script u'C:\\Program Files (x86
)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat': amd64: Error:The specified configuration type i
s missing.  The tools for the
configuration might not be installed.
vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_setup_env() use_script 2 None


msvc_setup_env()
get_default_version()
get_default_version(): msvc_version:None msvs_version:None
installed_vcs:['10.0Exp', '10.0']
msvc_setup_env: using default installed MSVC version '10.0Exp'

msvc_setup_env: using specified MSVC version '10.0Exp'

vc.py:msvc_find_valid_batch_script()
vc.py:get_host_target()
vc.py:get_host_target() req_target_platform:x86_64
vc.py:msvc_find_valid_batch_script() trying target_platform:amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
sdk.py:get_installed_sdks()
vc.py:msvc_find_valid_batch_script() vc_script:C:\Program Files (x86)\Microsoft Visual Studio 10.0\V
C\vcvarsall.bat sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 u'C:\\Program Files (x86)\\Microsoft Visual Studio
 10.0\\VC\\vcvarsall.bat', args:amd64

Calling 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat amd64'
vc.py:msvc_find_valid_batch_script() use_script 3: failed running VC script u'C:\\Program Files (x86
)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat': amd64: Error:The specified configuration type i
s missing.  The tools for the
configuration might not be installed.
vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_setup_env() use_script 2 None

sdk.py:mssdk_setup_env()
sdk.py:mssdk_setup_env:Getting MSVS_VERSION from env:10.0Exp
vs.py:get_vs_by_version()
trying to find VS 10.0
find_vs_dir_by_reg(): found VS in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\
find_executable():  C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com not o
n file system
get_executable not in cache:None
trying to find VS 10.0Exp
find_vs_dir_by_reg(): found VS in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\
get_executable not in cache:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpres
s.exe
found VS 10.0Exp
trying to find VS 9.0
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\9.0\\Setup
\\VS\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 9.0Exp
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\9.0\\Setup\\V
S\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 8.0
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\8.0\\Setup
\\VS\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 8.0Exp
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\8.0\\Setup\\V
S\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 7.1
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.1\\Setup
\\VS\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 7.0
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.0\\Setup
\\VS\\ProductDir'
find_executable():  no vs_dir (None)
get_executable not in cache:None
trying to find VS 6.0
find_vs_dir_by_reg(): no VS registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\6.0\\Setup
\\Microsoft Visual Studio\\ProductDir'
trying to find VC 10.0Exp
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
found VC 10.0Exp
trying to find VC 10.0
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
found VC 10.0
trying to find VC 9.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\9.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 9.0
trying to find VC 9.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\9.0\\Setup\\VC\\Prod
uctDir'
find_vc_pdir return None for ver 9.0Exp
trying to find VC 8.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\8.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 8.0
trying to find VC 8.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\8.0\\Setup\\VC\\Prod
uctDir'
find_vc_pdir return None for ver 8.0Exp
trying to find VC 7.1
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 7.1
trying to find VC 7.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.0\\Setup\\VC\\P
roductDir'
find_vc_pdir return None for ver 7.0
trying to find VC 6.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\6.0\\Setup\\Micro
soft Visual C++\\ProductDir'
find_vc_pdir return None for ver 6.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\6.0\\Setup\\Micro
soft Visual C++\\ProductDir'
find_vs_dir():  no installed VC 6.0
find_executable():  no vs_dir (None)
get_executable not in cache:None
InstalledVSMap:{'10.0Exp': <SCons.Tool.MSCommon.vs.VisualStudio object at 0x0257BC90>}
vs.py:get_vs_by_version: found vs:<SCons.Tool.MSCommon.vs.VisualStudio object at 0x0257BC90>
sdk.py:mssdk_setup_env:msvs is :<SCons.Tool.MSCommon.vs.VisualStudio object at 0x0257BC90>
sdk.py:msvs.sdk_version is 6.1
sdk.py:get_installed_sdks()
sdk.py:get_installed_sdks()
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc10 TARGET_CPU=AMD64
Der Befehl "nmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
os.chdir('C:\\Cafu-src-r561')
scons: *** Error 1

Cafu is installed as described in the documentation.

Further information:
Windows 7 Ultimate 64bit
Python 2.7 Located: C:/Python27 (from yesterday) (Python 3.2 installed but environment variables removed from the PATH and PYTHON_HOME)
Scons (installed with installer)

Code: Select all

SCons by Steven Knight et al.:
        script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
        engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
        engine path: ['C:\\Python27\\Lib\\site-packages\\scons-2.1.0\\SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
Cafu r561 Located: C:/Cafu-src-r561
Microsoft Visual C++ Express Located: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\


Could it be, that the error is nearby the installation path from Visual Express?

In the SConstruct file down from line 102:

Code: Select all

       if envCommon["TARGET_ARCH"] in ["x86_64", "amd64", "emt64"]:
            envCommon["ENV"]["LIB"] = envCommon["ENV"]["LIB"].replace("C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\lib;", "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\lib\\x64;");
            envCommon["ENV"]["LIBPATH"] = envCommon["ENV"]["LIBPATH"].replace("C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\lib;", "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\lib\\x64;");

My Microsoft SDK is different:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib (x64 doesn't exist)

Hope this helps you to identify my error?

EDIT:
I've installed MinGW (months ago) and cygwin (yesterday with gcc, g++, gdb and make packages). Both with its same dir name located in C:/.

=-=-=-=-=
Btw is there any chance to code with Eclipse (C++ version)?
=-=-=-=-=
Last edited by Paradox on 2012-07-30, 22:40, edited 1 time in total.
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: [Win7 64bit] Compiling failure (os.chdir/nmake)

Post by Carsten » 2012-07-30, 20:59

Hello Paradox,
welcome to the Cafu forums! :welcome:
Paradox wrote:I have a very similar problem to this http://www.cafu.de/forum/viewtopic.php? ... 1&start=15

If I run the scons command in cmd.exe, the output is:

Code: Select all

C:\Cafu-src-r561>scons
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc10 TARGET_CPU=AMD64
Der Befehl "nmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
os.chdir('C:\\Cafu-src-r561')
scons: *** Error 1
Thanks for your detailed problem report!

Did you follow the instructions at 64-bit Windows with Visual C++ 2010 Express Edition?
Your report sounds very much like adding TARGET_ARCH="x86" is all that is needed...
EDIT:
I've installed MinGW (months ago) and cygwin (yesterday with gcc, g++, gdb and make packages). Both with its same dir name located in C:/.
Never really used these, so I can unfortunately provide no support for them, sorry.
Btw is there any chance to code with Eclipse (C++ version)?
Never tried it (but I'm basically interested in it).
You'd be mostly on your own, but I see no reason why it shouldn't work, and would be interested in learning your results.
The difficult part will probably setting up the build (if you re-implement the SCons files in Eclipse), or to have Eclipse call Scons for buildling. :up:
Best regards,
Carsten
Paradox
Posts:4
Joined:2012-07-29, 23:39

Re: [Win7 64bit] Compiling failure (os.chdir/nmake)

Post by Paradox » 2012-07-30, 22:40

...so simple...just one line and it works!

I have to read something over.

Thanks for your help!

I have some additional questions about the Cafu engine like 3D terrain like a sphere, textured gui etc.
Should I open a new topic about that?
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: [Win7 64bit] Compiling failure (os.chdir/nmake)

Post by Carsten » 2012-07-31, 00:09

Paradox wrote:...so simple...just one line and it works!
:cheesy:
I have some additional questions about the Cafu engine like 3D terrain like a sphere, textured gui etc.
Should I open a new topic about that?
Yes, please. :up:
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests