[Insight-users] Building ITK 4.2 with Python wrapping: A tool returned an error code from "Generating ../vcInstall_stamp.c"

Constantine Z mnkz at leeds.ac.uk
Sat Jul 14 16:54:47 EDT 2012


Hello ALL,

I've been wrestling with building ITK with Python wrapping on windows 
for a few days by now. I started with 3.21, then 4.1 and now 4.2. None 
of my attempts succeeded so far. Now, I don't think it matters too much 
what the problems were with 3.21 and 4.1, but with 4.2 I get this error:

A tool returned an error code from "Generating ../vcInstall_stamp.c"

Part of the output is given below.

Also, I've noticed that a whole bunch of itk_wrap_template calls are 
commented out in *.wrap files in 
InsightToolkit-4.2.0\Modules\Core\Mesh\wrapping which I'm pretty sure 
shouldn't be commented out, because CMake gives warnings about enabling 
more of the ITK_WRAP_<whatever> parameters.

I'm also wondering if anyone can share their experience with building 
ITK with Python wrapping in any older releases on Windows, I mean if 
there are any tips or tricks with that. I'd love to do my prototyping in 
Python rather than writing C++ "scripts" and endlessly recompiling them.

Many thanks,
Constantine



1>------ Build started: Project: GCC_XML, Configuration: Release Win32 
------
1>Performing build step for 'GCC_XML'
1>Microsoft (R) Visual Studio Version 9.0.30729.1.
1>Copyright (C) Microsoft Corp. All rights reserved.
1>1>------ Build started: Project: vcInstallPatch, Configuration: 
Release Win32 ------
1>1>Generating ../vcInstall_stamp.c
1>1>Executing 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vccat.exe 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vc9sp1Include.patch 
| 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vcpatch.exe 
-p0 -t -d 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML-build\GCC_XML\Support\Vc9\Include
1>1>Executing 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vccat.exe 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vc9PlatformSDK.patch 
| 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vcpatch.exe 
-p0 -t -d 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML-build\GCC_XML\Support\Vc9\PlatformSDK
1>1>Executing 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vccat.exe 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vc10Include.patch 
| 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML\GCC_XML\VcInstall\vcpatch.exe 
-p0 -t -d 
C:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML-build\GCC_XML\Support\Vc10\Include
2>------ Build started: Project: copy_python_extras_files, 
Configuration: Release Win32 ------
2>source copy
2>Build log was saved at 
"file://c:\InsightToolkit-4.2.0.i386\Wrapping\Generators\Python\itkExtras\copy_python_extras_files.dir\Release\BuildLog.htm"
2>copy_python_extras_files - 0 error(s), 0 warning(s)
1>1>Error running patch.  Output is [can't find file to patch at input 
line 9
1>1>Perhaps you used the wrong -p or --strip option?
...
...
...
1>1>No file to patch.  Skipping patch.
1>1>10 out of 10 hunks ignored
1>1>]
1>1>Project : error PRJ0019: A tool returned an error code from 
"Generating ../vcInstall_stamp.c"
1>1>Build log was saved at 
"file://c:\InsightToolkit-4.2.0.i386\Wrapping\Generators\GccXML\gccxml\src\GCC_XML-build\GCC_XML\VcInstall\vcInstallPatch.dir\Release\BuildLog.htm"
1>1>vcInstallPatch - 1 error(s), 0 warning(s)
1>========== Build: 0 succeeded, 1 failed, 36 up-to-date, 0 skipped 
==========


More information about the Insight-users mailing list