[Insight-users] Re: Python Wrapping problems

Bill Hoffman bill . hoffman at kitware . com
Thu, 07 Aug 2003 16:28:34 -0400


OK, looks like we can not fix this one.  I do however have a work around.
The problem is that the windows 98 Visual Studio can not handle custom 
commands that are longer than 512 bytes.  The cswig command lines get
longer than that in ITK.  This is not a problem on windows NT/2000/XP, 
only 98/ME.   However, nmake on windows 98 can support the longer command lines.
So, if you build ITK with nmake and not the IDE it will work.   

However, in trying that I found a bug in CMake 1.6.7 that did not allow CableSwig 
to be built with nmake.   So, you have some options:

1. use cvs cmake and use the nmake makefiles for building ITK with CableSwig
in the Utilities directory.

2. use cmake 1.6.7 and build CableSwig outside of ITK.  Use the IDE
visual studio generator for building CableSwig.  Then configure an
ITK that does not contain CableSwig in the Utility directory to use
the CableSwig you have built.  Use nmake as a generator for cmake when
building ITK.

3. wait for cmake 1.8 and use nmake files (same as 1.)

4. upgrade your OS to windows 2000 or xp.

-Bill



At 11:52 AM 8/6/2003, Maurício Caliggiuri Inforçati wrote:
>Invalid Command!  Its in portuguese...
>
>--------------------Configuration: VXLNumericsTcl - Win32
>Release--------------------
>Building wrap_vnl_vector_ref.xml from
>C:\itk\Insight\Wrapping\CSwig\VXLNumerics\wrap_vnl_vector_ref.cxx
>Comando ou nome de arquivo inv lido
>
>wrap_vnl_vector_ref.xml - 0 error(s), 0 warning(s)
>
>
>> The visual studio environment does not use the same shell.
>> Can you verify that this is really the problem.  What happens
>> when you run the command from Visual Studio.  Right click on
>> the wrap_vnl_vector_ref.cxx and click compile.  Does that produce an
>> error?
>>
>> Is the xml file anywhere on the machine?
>>
>> -Bill
>>
>>
>> At 10:37 AM 8/6/2003, you wrote:
>> >Xml files dos not exist!
>> >The gccxml command used on cxx files is not running correctly.
>> >Problem seems to be the size of the command line. Manually, I can´t
>execute,
>> >for example, settings to compile "wrap_vnl_vector_ref.cxx" because its
>> >larger than 127 caracters permited for my command line.
>> >(the command)
>> >
>>
>>"C:\CableSwig_BIN\bin\Release\gccxml.exe -fxml-start=_cable_ -DCSWIG -DCABL
>E
>> >_CONFIGURATION
>>
>>C:/itk/Insight/Wrapping/CSwig/VXLNumerics/wrap_vnl_vector_ref.cxx -fxml=C:/
>i
>>
>>tk/Insight_BIN/Wrapping/CSwig/VXLNumerics/wrap_vnl_vector_ref.xml -IC:/itk/
>I
>>
>>nsight_BIN -IC:/itk/Insight/Code/Algorithms -IC:/itk/Insight/Code/BasicFilt
>e
>>
>>rs -IC:/itk/Insight/Code/Common -IC:/itk/Insight/Code/Numerics -IC:/itk/Ins
>i
>>
>>ght/Code/IO -IC:/itk/Insight/Code/Numerics/FEM -IC:/itk/Insight/Code/Numeri
>c
>>
>>s/Statistics -IC:/itk/Insight/Code/SpatialObject -IC:/itk/Insight/Utilities
>/
>>
>>MetaIO -IC:/itk/Insight/Utilities/MetaIO/SpatialObject -IC:/itk/Insight/Uti
>l
>>
>>ities/DICOMParser -IC:/itk/Insight_BIN/Utilities/expat -IC:/itk/Insight/Uti
>l
>>
>>ities/expat -IC:/itk/Insight_BIN/Utilities -IC:/itk/Insight/Utilities/vxl/v
>c
>>
>>l -IC:/itk/Insight/Utilities/vxl/v3p/netlib -IC:/itk/Insight/Utilities/vxl 
>-
>>
>>IC:/itk/Insight_BIN/Utilities/vxl/vcl -IC:/itk/Insight_BIN/Utilities/vxl -I
>C
>>
>>:/itk/Insight/Utilities/vxl/vcl/config.win32 -IC:/itk/Insight/Utilities/zli
>b
>>
>> -IC:/itk/Insight_BIN/Utilities/zlib -IC:/itk/Insight/Utilities/png -IC:/it
>k
>>
>>/Insight_BIN/Utilities/png -IC:/itk/Insight/Utilities/jpeg -IC:/itk/Insight
>_
>>
>>BIN/Utilities/jpeg -IC:/itk/Insight/Utilities/vxl/vnl -IC:/itk/Insight/Util
>i
>>
>>ties/vxl/vcl -IC:/itk/Insight/Utilities/vxl/vcl/doc -IC:/itk/Insight/Wrappi
>n
>>
>>g/CSwig -IC:/itk/Insight/Wrapping/CSwig/Common -IC:/itk/Insight/Wrapping/CS
>w
>>
>>ig/VXLNumerics -IC:/itk/Insight/Wrapping/CSwig/Numerics -IC:/itk/Insight/Wr
>a
>>
>>pping/CSwig/BasicFilters -IC:/itk/Insight/Wrapping/CSwig/IO -IC:/itk/Insigh
>t
>> >/Wrapping/CSwig/Algorithms "
>> >
>> >So, it is broken in several commands!
>> >What can I do?
>> >
>> > Mauricio
>> >
>> >
>> >> Do the xml files exist?
>> >>
>> >> Is this file on the disk:
>> >> C:\itk\Insight_BIN\Wrapping\CSwig\VXLNumerics\wrap_vnl_vector_ref.xml
>> >>
>> >> Is it any where on the disk?
>> >>
>> >> What does the custom command Building wrap_vnl_vector_ref.xml do?
>> >> It does not seem to have an error.
>> >>
>> >> -Bill
>>
>>
>>
>>