[vtkusers] Problem building VTK-Java wrappers under OS X

Michael Marti m.marti at cfp.ist.utl.pt
Mon Mar 22 11:43:34 EST 2004


Dear list members

I'm trying to compile VTK-4.2 with the Java wrappers under OS X (10.3.3).
I'm using Apple's Java 1.4.2.

The compilation breaks with the following message:

Building object file vtkRenderWindowJava.o...
c++ -o vtkRenderWindowJava.o -DvtkRenderingJava_EXPORTS     -Wno-deprecated
-no-cpp-precomp -fpascal-strings -O3 -fPIC
-I/Users/michael/WORK/SPINE/3.party/VTK/Rendering
-I/Users/michael/WORK/SPINE/3.party/VTK
-I/Users/michael/WORK/SPINE/3.party/VTK/Parallel
-I/Users/michael/WORK/SPINE/3.party/VTK/Patented
-I/Users/michael/WORK/SPINE/3.party/VTK/Rendering
-I/Users/michael/WORK/SPINE/3.party/VTK/IO
-I/Users/michael/WORK/SPINE/3.party/VTK/Imaging
-I/Users/michael/WORK/SPINE/3.party/VTK/Graphics
-I/Users/michael/WORK/SPINE/3.party/VTK/Filtering
-I/Users/michael/WORK/SPINE/3.party/VTK/Common
-I/Users/michael/WORK/SPINE/3.party/VTK/Common/Testing/Cxx
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/jpeg
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/png
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/tiff
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/expat
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/freetype/include
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/freetype
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/ftgl/src
-I/Users/michael/WORK/SPINE/3.party/VTK/Utilities/ftgl
-I/Library/Frameworks/Tk.framework/Versions/8.4/PrivateHeaders
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-I/Library/Frameworks/Tk.framework/Versions/8.4/Headers
-I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
-I/System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers
-c /Users/michael/WORK/SPINE/3.party/VTK/Rendering/vtkRenderWindowJava.cxx
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:5,
                 from
/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:8,
                 from
/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:8,
                 from
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jawt_md.h:11,
                 from
/Users/michael/WORK/SPINE/3.party/VTK/Common/vtkJavaAwt.h:19,
                 from
/Users/michael/WORK/SPINE/3.party/VTK/Rendering/vtkRenderWindowJava.cxx:1141
:
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:56:
error: parse
   error before `@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:58:
error: syntax
   error before `*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:59:
error: `
   NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:59:
error: `

(...)

Line 56 of the file NSObjCRuntime.h reads as follows:
  @class NSString;

As far as I understand this as a external class in Objective-C. On the other
hand the extension of the source file to compile indicates c++.

Does anybody know how to solve this?

Thanks in advance.

-- 
----------------------------------------------------------------------------
Michael Marti
Centro de Fisica dos Plasmas
Instituto Superior Tecnico
Av. Rovisco Pais
1049-001 Lisboa
Portugal

Tel. +351 21 841 93 79
----------------------------------------------------------------------------




More information about the vtkusers mailing list