[Insight-users] Error while compiling ITK with Python wrappers on Windows

Luis Ibanez luis . ibanez at kitware . com
Mon, 22 Dec 2003 14:50:04 -0500


Hi Hari,

gccxml_cc1plus.exe     is invoked through    gccxml.exe

The command line that VisualStudio should be trying to execute at this 
point is

    D:\Local\ITK 1.40\cableBin\bin\Release\gccxml.exe
       -fxml-start=_cable_
       -DCABLE_CONFIGURATION 
g:/src/Insight/Wrapping/CSwig/SwigRuntime/swigrun.h
       -fxml=g:/bin/ITKNightlyVC6/Wrapping/CSwig/SwigRuntime/swigrun.xml

all in a single line...

Could you please try typing this line and let us know what error messages
do you get. (Post both the error messages and the *exact* command line
that you typed).

Note that  "g:/src/Insight/" should be replaced with the directory where 
you
currently have the ITK source dir, and "g:/bin/ITKNightlyVC6/" must be
replaced with the binary directory were you are buinding ITK.

Note also that the use of "\" or "/" for the executable path depends on 
whether
you type this command on a MS-DOS command window or in a Cygwin shell
command window.


Please let us know what you find.

Thanks


    Luis


---------------------------
Hari Sundar wrote:

>Luis,
>
>I compiled CableSwig as a Release version. I have checked and the file exists. I
>even tried compiling  "swigrun.h" using gccxml_cc1plus.exe manually on the
>command prompt, and that works ... of course I am not sure what other arguments
>need to be passed to the compiler .. so I cannot do the whole thing manually ...
>
>-Hari
>
>Quoting Luis Ibanez <luis . ibanez at kitware . com>:
>
>=} Hi Hari,
>=} 
>=} When you built CableSwig,
>=}              Did you selected the "Release" compilation mode ?
>=} 
>=} It may be that you build it for Debug, therefore the executable
>=} 
>=}                     gccxml_cc1plus.exe
>=} 
>=} will be located in a directory:
>=} 
>=} D:/Local/ITK 1.40/cableBin/bin/Debug/gccxml_cc1plus.exe
>=} 
>=} instead of the expected
>=} 
>=} D:/Local/ITK 1.40/cableBin/bin/Release/gccxml_cc1plus.exe
>=} 
>=} 
>=} Please got to the directory
>=} 
>=}      D:/Local/ITK 1.40/cableBin/bin/Release
>=} 
>=} and check if the executable "gccxml_cc1plus.exe" is there or not.
>=} 
>=} 
>=} Please let us know what you find,
>=} 
>=} 
>=} Thanks
>=} 
>=} 
>=}    Luis
>=} 
>=} 
>=} ---------------------------
>=} Hari Sundar wrote:
>=} 
>=} >Hi,
>=} >
>=} >I am trying to compile ITK 1.40 along with CableSwig on Windows using VC++
>=} 6.0. 
>=} >
>=} >I get the follwing error, and am struck ...
>=} >
>=} >-------------------------------------------------
>=} >
>=} >--------------------Configuration: SwigRuntimePython - Win32
>=} >Release--------------------
>=} >Building Custom Rule "D:\Local\ITK
>=} >1.40\InsightToolkit-1.4.0\Wrapping\CSwig\SwigRuntime\swigrun.h"
>=} >Error executing D:/Local/ITK 1.40/cableBin/bin/Release/gccxml_cc1plus.exe
>=} >Error executing c:\windows\system32\cmd.exe.
>=} >
>=} >ALL_BUILD - 1 error(s), 0 warning(s)
>=} >_______________________________________________
>=} >Insight-users mailing list
>=} >Insight-users at itk . org
>=} >http://www . itk . org/mailman/listinfo/insight-users
>=} >
>=} >  
>=} >
>=} 
>=} 
>=} 
>=} 
>
>
>  
>