[Insight-users] Problems compiling ITK with CableSwig for javawrapping

Stéphane WASSERHARDT stephane.wasserhardt at magellium.fr
Wed Oct 5 04:55:52 EDT 2005


Hi !

I already send a message a few days ago, and nobody answered 

I still have the same problem, but now with a little more information.

(Old message :)
In order to use java wrapping, I tried to re-compile ITK with CableSwig
 And
it fails with the following output :
[...]
Building wrap_vnl_matrix.xml from 
/cygdrive/d/ti/api/itk/itk_build/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.
xml... 
/cygdrive/d/ti/api/CableSwig/build/bin/gccxml.exe
-fxml-start=_cable_
-fxml=/cygdrive/d/ti/api/itk/itk_build/Wrapping/CSwig/VXLNumerics/wrap_vnl_m
atrix.xml
--gccxml-gcc-options
/cygdrive/d/ti/api/itk/itk_build/Wrapping/CSwig/VXLNumerics/SwigInc.txt
-DCSWIG
-DCABLE_CONFIGURATION
/cygdrive/d/ti/api/itk/InsightToolkit-2.2.0/Wrapping/CSwig/VXLNumerics/wrap_
vnl_matrix.cxx 
Gccxml_cc1plus: error: too many filenames given. Type gccxml_cc1plus –help
for usage
[...]

I’m using cygwin under windows XP (SP2) with gcc 3.4.4 and cmake 2.0.6

(New info :)
Now I tried to run the gccxml command manually with debug output :

/cygdrive/d/ti/api/CableSwig/build/bin/gccxml.exe -fxml-start=_cable_
-fxml=/cygdrive/d/ti/api/ITK/itk_build/Wrapping/CSwig/VXLNumerics/wrap_vnl_m
atrix.xml --gccxml-gcc-options
/cygdrive/d/ti/api/ITK/itk_build/Wrapping/CSwig/VXLNumerics/SwigInc.txt
-DCSWIG -DCABLE_CONFIGURATION
/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/VXLNumerics/wrap_
vnl_matrix.cxx –debug

The result is the same, but gives me the parameters list passed to
gccxml_cc1plus :

Using "/cygdrive/d/ti/api/CableSwig/build/bin/gccxml_cc1plus" as GCC-XML
executa
ble.
Using the following arguments to GCC-XML executable:
  "-quiet"
  "-fsyntax-only"
  "-w"
  "-o"
  "/dev/null"
  "-nostdinc"
  "-D__GCCXML__=700"
  "-fxml-start=_cable_"
 
"-fxml=/cygdrive/d/ti/api/ITK/itk_build/Wrapping/CSwig/VXLNumerics/wrap_vnl_
ma
trix.xml"
  "-I/cygdrive/d/ti/api/ITK/itk_build"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Algorithms"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/BasicFilters"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Common"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Numerics"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/IO"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Numerics/FEM"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Numerics/Statistics"
 
"-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/Numerics/NeuralNetworks"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Code/SpatialObject"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/MetaIO"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/NrrdIO"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/DICOMParser"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/DICOMParser"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/expat"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/expat"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/nifti/niftilib"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/nifti/znzlib"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/gdcm"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/vxl/vcl"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/vxl/core"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/vxl/vcl"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/vxl/core"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/vxl/v3p/netlib"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/zlib"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/zlib"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/png"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/png"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Utilities/tiff"
  "-I/cygdrive/d/ti/api/ITK/itk_build/Utilities/tiff"
  "-I/cygdrive/c/j2sdk1.4.2_09/include"
  "-I/cygdrive/c/j2sdk1.4.2_09/include/win32"
  "-I/cygdrive/c/j2sdk1.4.2_09/include"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/CommonA"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/CommonB"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/VXLNumerics"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/Numerics"
 
"-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/BasicFiltersA"
 
"-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/BasicFiltersB"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/IO"
  "-I/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/Algorithms"
" "
  "-DCSWIG"
  "-DCABLE_CONFIGURATION"
 
"/cygdrive/d/ti/api/ITK/InsightToolkit-2.2.0/Wrapping/CSwig/VXLNumerics/wrap
_v
nl_matrix.cxx"
  "-D__DBL_MIN_EXP__=(-1021)"
  "-D__FLT_MIN__=1.17549435e-38F"
  "-D__CHAR_BIT__=8"
  "-D__WCHAR_MAX__=65535U"
  "-D__DBL_DENORM_MIN__=4.9406564584124654e-324"
  "-D__FLT_EVAL_METHOD__=2"
  "-D__DBL_MIN_10_EXP__=(-307)"
  "-D__FINITE_MATH_ONLY__=0"
  "-D__GNUC_PATCHLEVEL__=4"
  "-D_stdcall=__attribute__((__stdcall__))"
  "-D__SHRT_MAX__=32767"
  "-D__LDBL_MAX__=1.18973149535723176502e+4932L"
  "-D__unix=1"
  "-D__LDBL_MAX_EXP__=16384"
  "-D__SCHAR_MAX__=127"
  "-D__USER_LABEL_PREFIX__=_"
  "-D__STDC_HOSTED__=1"
  "-D__LDBL_HAS_INFINITY__=1"
  "-D__DBL_DIG__=15"
  "-D__FLT_EPSILON__=1.19209290e-7F"
  "-D__GXX_WEAK__=1"
  "-D__tune_i686__=1"
  "-D__LDBL_MIN__=3.36210314311209350626e-4932L"
  "-D__unix__=1"
  "-D__DECIMAL_DIG__=21"
  "-D__LDBL_HAS_QUIET_NAN__=1"
  "-D__GNUC__=3"
  "-D_cdecl=__attribute__((__cdecl__))"
  "-D__DBL_MAX__=1.7976931348623157e+308"
  "-D__DBL_HAS_INFINITY__=1"
  "-D_fastcall=__attribute__((__fastcall__))"
  "-D__cplusplus=1"
  "-D__USING_SJLJ_EXCEPTIONS__=1"
  "-D__DEPRECATED=1"
  "-D__DBL_MAX_EXP__=1024"
  "-D__GNUG__=3"
  "-D__LONG_LONG_MAX__=9223372036854775807LL"
  "-D__GXX_ABI_VERSION=1002"
  "-D__FLT_MIN_EXP__=(-125)"
  "-D__DBL_MIN__=2.2250738585072014e-308"
  "-D__FLT_MIN_10_EXP__=(-37)"
  "-D__DBL_HAS_QUIET_NAN__=1"
  "-D__REGISTER_PREFIX__="
  "-D__cdecl=__attribute__((__cdecl__))"
  "-D__NO_INLINE__=1"
  "-D__i386=1"
  "-D__FLT_MANT_DIG__=24"
  "-D__VERSION__="3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)""
  "-D_X86_=1"
  "-Di386=1"
  "-Dunix=1"
  "-D__i386__=1"
  "-D__SIZE_TYPE__=unsigned int"
  "-D__FLT_RADIX__=2"
  "-D__LDBL_EPSILON__=1.08420217248550443401e-19L"
  "-D__CYGWIN__=1"
  "-D__FLT_HAS_QUIET_NAN__=1"
  "-D__FLT_MAX_10_EXP__=38"
  "-D__LONG_MAX__=2147483647L"
  "-D__FLT_HAS_INFINITY__=1"
  "-D__stdcall=__attribute__((__stdcall__))"
  "-D__EXCEPTIONS=1"
  "-D__LDBL_MANT_DIG__=64"
  "-D__WCHAR_TYPE__=short unsigned int"
  "-D__FLT_DIG__=6"
  "-D__INT_MAX__=2147483647"
  "-D__FLT_MAX_EXP__=128"
  "-D__DBL_MANT_DIG__=53"
  "-D__WINT_TYPE__=unsigned int"
  "-D__LDBL_MIN_EXP__=(-16381)"
  "-D__WCHAR_UNSIGNED__=1"
  "-D__LDBL_MAX_10_EXP__=4932"
  "-D__DBL_EPSILON__=2.2204460492503131e-16"
  "-D__tune_pentiumpro__=1"
  "-D__fastcall=__attribute__((__fastcall__))"
  "-D__CYGWIN32__=1"
  "-D__FLT_DENORM_MIN__=1.40129846e-45F"
  "-D__FLT_MAX__=3.40282347e+38F"
  "-D__GNUC_MINOR__=4"
  "-D__DBL_MAX_10_EXP__=308"
  "-D__LDBL_DENORM_MIN__=3.64519953188247460253e-4951L"
  "-D__PTRDIFF_TYPE__=int"
  "-D__LDBL_MIN_10_EXP__=(-4931)"
  "-D__LDBL_DIG__=18"
  "#define"
  "__declspec(x)"
  "__attribute__((x))"
  "-D__declspec(x)=__attribute__((x))"
  "-iwrapper/cygdrive/d/ti/api/CableSwig/source/GCC_XML/Support/GCC/3.4"
  "-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++"
  "-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/i686-pc-cygwin"
  "-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward"
  "-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include"
  "-I/usr/include"
  "-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api"
  "-include"
 
"/cygdrive/d/ti/api/CableSwig/source/GCC_XML/Support/GCC/3.4/gccxml_builtins
.h
"
gccxml_cc1plus: error: too many filenames given.  Type gccxml_cc1plus --help
   for usage

I can’t find where are the “too many filenames” in these parameters !!!
Please someone, help me !!!!!!!!
If you need more information, just ask me !

Thanks,
Stéphane



More information about the Insight-users mailing list