[Insight-users] wrapitk java compile problem...

Peter pbnoel at gmail.com
Mon Nov 2 02:55:16 EST 2009


Hi Luis,

I did build CableSwig. I tried both approaches: build with itk or
build separate. Both times I got the same errors.

Here are the original error messages:

------ Erstellen gestartet: Projekt: VXLNumericsJava, Konfiguration:
Release Win32 ------

wrap_VXLNumericsJava.xml from

wrap_VXLNumericsJava.idx from

wrap_vnl_vector_ref.xml from

In file included from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/sal.h:932,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/crtdefs.h:68,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/yvals.h:6,

                from C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/cstdio:5,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/iosfwd:6,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/vcl/iso/vcl_iosfwd.h:6,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/vcl/vcl_iosfwd.h:28,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/core/vnl/vnl_vector.h:18,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/core/vnl/vnl_vector_ref.h:20,

                from
C:/libs/itk/InsightToolkit-3.16.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_vector_ref.cxx:17:

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:68:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:99:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:131:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:142:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:153:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:163:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:173:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:183:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:195:
error: expected unqualified-id before '[' token

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:246:
error: 'PreAttribute' in namespace 'vc_attributes' does not name a
type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:247:
error: 'PostAttribute' in namespace 'vc_attributes' does not name a
type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:248:
error: 'FormatStringAttribute' in namespace 'vc_attributes' does not
name a type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:249:
error: 'InvalidCheckAttribute' in namespace 'vc_attributes' does not
name a type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:250:
error: 'SuccessAttribute' in namespace 'vc_attributes' does not name a
type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:251:
error: 'PreBoundAttribute' in namespace 'vc_attributes' does not name
a type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:252:
error: 'PostBoundAttribute' in namespace 'vc_attributes' does not name
a type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:253:
error: 'PreRangeAttribute' in namespace 'vc_attributes' does not name
a type

C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/codeanalysis\sourceannotations.h:254:
error: 'PostRangeAttribute' in namespace 'vc_attributes' does not name
a type

In file included from C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/cstdio:13,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/CableSwig/GCC_XML/Support/Vc9/Include/iosfwd:6,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/vcl/iso/vcl_iosfwd.h:6,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/vcl/vcl_iosfwd.h:28,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/core/vnl/vnl_vector.h:18,

                from
C:/libs/itk/InsightToolkit-3.16.0/Utilities/vxl/core/vnl/vnl_vector_ref.h:20,

                from
C:/libs/itk/InsightToolkit-3.16.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_vector_ref.cxx:17:

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:189: error: expected unqualified-id before '['
token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: expected primary-expression before
'[' token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Null' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Access' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: expected primary-expression before
'[' token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Null' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: 'SA_Post' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:190: error: initializer expression list treated
as compound expression

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:195: error: expected unqualified-id before '['
token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: variable or field 'clearerr'
declared void

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: expected primary-expression before
'[' token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'Null' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:198: error: 'SA_Post' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: expected primary-expression before
'[' token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'Null' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'Deref' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'Valid' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:200: error: 'SA_Post' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:202: error: expected primary-expression before
'[' token

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:202: error: 'Null' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:202: error: 'SA_Pre' was not declared in this
scope

C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/include/stdio.h:202: error: 'Deref' was not declared in this
scope


Thank You for your Help!! Peter

On Sun, Nov 1, 2009 at 6:44 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
> Hi Peter,
>
> 1) Did you build CableSwig ?
>
> 2) Please post to the list the first block of 10 to 20 error messages,
>     that you get when you are building  ITK.
>
> You seem  to have a configuration problem.
>
>
>     Thanks
>
>
>           Luis
>
>
> -------------------------------------
> On Wed, Oct 28, 2009 at 5:13 AM, Peter <pbnoel at gmail.com> wrote:
>> Dear ITK community,
>>
>> I'm trying to compile ITK with CableSwig to get a wrapped version of
>> itk for java. I downloaded itk / itk applications and itk cable swig.
>> Then used cmake to configure for Visual Studio 2008. Everything worked
>> with out problems so far, but when i start to build itk I get a
>> "PRJ0019" error concerning xml sources and thousands of problems with
>> standard heads such as:
>> In file include from .../wrap_vnl_vector_ref.cxx
>> stdio.h:189: error: expected unqualified-id before '[`token
>>
>> Does anybody know this problem? Or a tip for me??
>>
>> Thank You, Peter
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>


More information about the Insight-users mailing list