[vtkusers] compilation failure on OSX

Bernard Giroux giroux at geo.polymtl.ca
Wed Nov 23 10:38:04 EST 2005


Le 05-11-23 à 10:03, Mathieu Malaterre a écrit :

>
>> /usr/local/VTK-CVS/VTK/build-java/java/vtk/../vtk/ 
>> vtkTextWidget.java: 23: GetRepr
>> esentation() in vtk.vtkTextWidget cannot override GetRepresentation 
>> ()  in vtk.vtk
>> BorderWidget; attempting to use incompatible return type
>> found   : vtk.vtkTextRepresentation
>> required: vtk.vtkBorderRepresentation
>>   public vtkTextRepresentation GetRepresentation()
>>                                ^
>> 3 errors
>> make[2]: *** [java/vtk/vtkBuildAllDriver.class] Error 1
>> make[1]: *** [Wrapping/Java/CMakeFiles/VTKBuildAll.dir/all] Error 2
>> Any help appreciated.
>
> Until recently Java did not support Covariant return type:
>
> http://java.sun.com/developer/JDCTechTips/2004/tt1201.html#2
>
> So for now I'd suggest you turn Java OFF. If you really need Java  
> and VTK CVS, please send me a private email.
>
> Mathieu

OK got it compiled!

For the record: java 5 is required (which is in my path BTW).  In  
ccmake, I toggled to advanced mode and explicitely gave the right  
path to all java programs and headers:

JAVACOMMAND                      /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Commands/java
JAVA_ARCHIVE                     /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Commands/jar
JAVA_AWT_INCLUDE_PATH            /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Headers
JAVA_AWT_LIBRARY                 -framework JavaVM -framework  
JavaEmbedding
JAVA_COMPILE                     /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Commands/javac
JAVA_INCLUDE_PATH                /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Headers
JAVA_INCLUDE_PATH2               /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Headers
JAVA_RUNTIME                     /System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Commands/java




---
Bernard Giroux, ing., Ph.D.
Associé de recherche

http://geo.polymtl.ca/~giroux







More information about the vtkusers mailing list