[vtkusers] Solution : VTK compilation on Mac OS X with the Java Wrapping
Sebastien Jourdain
jourdain at artenum.com
Tue Nov 13 03:40:31 EST 2007
The CMake patch solved the problem...
Mike Jackson a écrit :
> NO NO NO NO.. Editing the link.txt is NOT necessary. You need to
> correct some settings from CMake/VTK:
>
> JAVA_ARCHIVE */usr/bin/jar
> JAVA_AWT_INCLUDE_PATH
> */System/Library/Frameworks/JavaVM.framework/Headers
> JAVA_COMPILE */usr/bin/javac
> JAVA_INCLUDE_PATH
> */System/Library/Frameworks/JavaVM.framework/Headers
> JAVA_INCLUDE_PATH2
> */System/Library/Frameworks/JavaVM.framework/Headers
> JAVA_RUNTIME */usr/bin/java
> VTK_PARSE_JAVA_EXE
> */Users/Shared/OpenSource/vtk503-gcc/bin/vtkParseJava
> VTK_WRAP_HINTS
> */Users/Shared/OpenSource/VTK-5.0.3/Wrapping/hints
> VTK_WRAP_JAVA_EXE
> */Users/Shared/OpenSource/vtk503-gcc/bin/vtkWrapJava
>
> The proper solution is here
> <http://www.vtk.org/pipermail/vtkusers/2007-January/089333.html>
>
> Please use that solution. It _Should_ work as advertised.
>
>
> Also, note that as of CMake 2.4.7 the FindJNI.cmake file is _still_
> wrong after 10 months and a promised fix. IMO the FindJNI.cmake file
> should be patched to be:
> ----- Existing ------------
> IF(EXISTS ~/Library/Frameworks/JavaVM.framework)
> SET(JAVA_HAVE_FRAMEWORK 1)
> ENDIF(EXISTS ~/Library/Frameworks/JavaVM.framework)
> IF(EXISTS /Library/Frameworks/JavaVM.framework)
> SET(JAVA_HAVE_FRAMEWORK 1)
> ENDIF(EXISTS /Library/Frameworks/JavaVM.framework)
>
> ------- Patched -----------
> IF(EXISTS /System/Library/Frameworks/JavaVM.framework)
> SET(JAVA_HAVE_FRAMEWORK 1)
> ENDIF(EXISTS /System/Library/Frameworks/JavaVM.framework)
>
> Which should pretty much _always_ exist. I can not think of a system
> where that framework would NOT exist. And it certainly should NOT be
> in /Library/Frameworks or the users or Library/Frameworks folder, at
> under any scenario that I can think of. If someone has a scenario
> where the JavaVM.framework was located outside of
> /System/Library/Frameworks I would like to know.
>
>
More information about the vtkusers
mailing list