[Insight-users] Problem compiling on Windows

Hari Sundar hsundar at seas.upenn.edu
Mon, 12 Jan 2004 15:37:37 -0500


Hi Robb,

The ITK wrappings do compile and work under Windows. Are you sure that 
all the paths are without any spaces ? You'll have to make sure the 
following paths are without spaces.

1) where the gccxml_cc1plus.exe is ... the CableSwig binaries directory ...
2) where the  ITK source files are ...
3) the ITK build directory ....

If you are still getting errors, try to make sure that all the 
parameters within cmake are set correctly. One thing that is possible is 
that you have different versions of python/tcl on your system ... 
(windows native and from cygwin) and the library  files and the 
exectuable are from different version. CMake will not complain for this 
but the compile will fail.

-Hari

Robb Brown wrote:

> Thanks for the advice RE spaces... static libraries compile now, but 
> the shared libraries (and Python wrapping) does not.  Same type of 
> error.  Is this is a problem that's fixed in more recent version of 
> VC++ or do the ITK wrappings not compile on Windows yet?
>
> Thanks,
>
> Robb
>
>
> On Jan 9, 2004, at 3:11 PM, Hari Sundar wrote:
>
>> Robb,
>>
>> I had the same problem a few weeks ago and it turned out (thanks to 
>> Luis) that
>> this happens because of spaces in the path. In your case "Documents and
>> Settings". Change the install directory and the problem should get 
>> fixed.
>>
>> -Hari
>>
>> Quoting Robb Brown <brownr at ucalgary.ca>:
>>
>> =} I'm trying to compile ITK 1.4 on Windows using Visual Studio 6, CMake
>> =} 1.8.
>> =}
>> =} CableSwig compiles fine.  But when I go to compile ITK I get the
>> =} following error:
>> =}
>> =} Building Custom Rule "C:\Documents and
>> =} Settings\Administrator\Desktop\Python-
>> =} Windows\download\ITK\InsightToolkit
>> =} -1.4.0\Wrapping\CSwig\SwigRuntime\swigrun.h"
>> =} Error executing C:/Documents and
>> =} 
>> Settings/Administrator/Desktop/Python-Windows/download/ITK/CableSwigb/
>> =} bin/Debug/gccxml_cc1plus.exe
>> =} Error executing c:\windows\system32\cmd.exe.
>> =}
>> =}
>> =} I notice that the slashes are the wrong way around on the Error
>> =} executing line.  Is this a problem in CMake?  Any suggestions?
>> =}
>> =} BTW -- so far the build on OS X is going fine.  Much better than it
>> =} used to be.  :)
>> =}
>> =} _____________________________
>> =} Robb Brown
>> =} Seaman Family MR Center
>> =} Calgary, AB
>> =}
>> =} _______________________________________________
>> =} Insight-users mailing list
>> =} Insight-users at itk.org
>> =} http://www.itk.org/mailman/listinfo/insight-users
>> =}
>>
>>