[vtkusers] building problems on a mac wrapping java

Mark Roden mmroden at gmail.com
Wed Nov 17 11:24:30 EST 2010


1417 errors in vtkVolumeRendering.  Do you want me to post them all?

(this is with Shared Libraries on, not sure if that makes a difference).

These lines in NSObjRuntime.h are causing significant errors:

   @class NSString, Protocol;


FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);

FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);


FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);

FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);


FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto)
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;

FOUNDATION_EXPORT Protocol *NSProtocolFromString(NSString *namestr)
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;


FOUNDATION_EXPORT const char *NSGetSizeAndAlignment(const char *typePtr,
NSUInteger *sizep, NSUInteger *alignp);


FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);

FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args)
NS_FORMAT_FUNCTION(1,0);


That's a file from Apple, not vtk, and the include stack is:

   /Users/mmroden/Documents/src/vtk/VTK/../VTK-build/Rendering/vtkRenderWindowJava.cxx:1405:0
In file included from
/Users/mmroden/Documents/src/vtk/VTK/../VTK-build/Rendering/vtkRenderWindowJava.cxx


/Users/mmroden/Documents/src/vtk/VTK/Common/vtkJavaAwt.h:16:0 In file
included from /Users/mmroden/Documents/src/vtk/VTK/Common/vtkJavaAwt.h


/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Headers/jawt_md.h:11:0
In file included from
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Headers/jawt_md.h


/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:8:0
In file included from
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h


/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:8:0
In file included from
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h


/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:5:0
In file included from
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h


/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:180:0
Expected unqualified-id before '@' token in
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h


Like I said, there are 1417 errors very similar to that one.


On Wed, Nov 17, 2010 at 6:11 AM, Dave Partyka <dave.partyka at kitware.com>wrote:

> Can you share the errors? Are they related to jni.h not being found?
>
> On Wed, Nov 17, 2010 at 9:05 AM, Mark Roden <mmroden at gmail.com> wrote:
>
>> Hi,
>>
>> I just tried to build vtk on a mac 10.6 machine with java wrapping turned
>> on.
>>
>>  This configuration required installing both swig and pcre from source.
>>
>> In any event, this approach caused 1423 build errors.  If I build with
>> java wrapping turned off, there are no compiler errors.
>>
>> This is using source checked out from git on github a few hours ago.
>>
>> Mark
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101117/d1533d64/attachment.htm>


More information about the vtkusers mailing list