[vtkusers] vtk for java on my Mac OS

wells jake_wang1013 at 163.com
Tue Feb 19 05:12:02 EST 2008


Hello VTK users,

I want install vtk for java on my Mac OS,but there is something wrong  
with what I did.
The following steps I did. Folks let me know if there are any mistakes  
with the following. thanks

STEP 1: look at my java's version

java version "1.6.0_04-dp"
Java(TM) SE Runtime Environment (build 1.6.0_04-dp-b06-110)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_04-b12-45-optimized,  
mixed mode)

STEP 2: I had download vtk by cvs

cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK login
(respond with password vtk)

cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK
checkout VTK
STEP 3:
1)	cd $/vJavaBuild
2)	type cmake ../VTK
3)	type ccmake ../VTK
4)	edit the list of options like following
  BUILD_EXAMPLES                   ON
  BUILD_SHARED_LIBS                ON
  CMAKE_BACKWARDS_COMPATIBILITY    2.4
  CMAKE_BUILD_TYPE
  CMAKE_INSTALL_PREFIX             /usr/local
  CMAKE_OSX_ARCHITECTURES          i386
  CMAKE_OSX_SYSROOT                /Developer/SDKs/MacOSX10.5.sdk
  VTK_DATA_ROOT                    /Users/wells/VTK/../VTKData
  VTK_NO_PYTHON_THREADS            OFF
  VTK_USE_BOOST                    OFF
  VTK_USE_CARBON                   OFF
  VTK_USE_COCOA                    ON
  VTK_USE_FFMPEG_ENCODER           OFF
  VTK_USE_INFOVIS                  ON
  VTK_USE_METAIO                   ON
  VTK_USE_MPEG2_ENCODER            OFF
  VTK_USE_MYSQL                    OFF
  VTK_USE_PARALLEL                 OFF
  VTK_USE_POSTGRES                 OFF
  VTK_USE_RENDERING                ON
  VTK_USE_RPATH                    OFF
  VTK_USE_VIEWS                    ON
  VTK_USE_X                        OFF
  VTK_WRAP_JAVA                    ON
  VTK_WRAP_PYTHON                  OFF
  VTK_WRAP_TCL                     OFF
5)	type c
type t for advanced options: change the following
JAVA_AWT_INCLUDE_PATH            /System/Library/Frameworks/ 
JavaEmbedding.framework/Versions/Current/Headers
JAVA_INCLUDE_PATH                /System/Library/Frameworks/ 
JavaVM.framework/Versions/Current/Headers
JAVA_INCLUDE_PATH2               /System/Library/Frameworks/ 
JavaVM.framework/Versions/Current/Headers
6)	type c then type g
7)	make

8)	error message following
Linking CXX shared library ../bin/libvtkRenderingJava.dylib
Undefined symbols:
   "_JAWT_GetAWT", referenced from:
       _Java_vtk_vtkPanel_RenderCreate in vtkRenderWindowJava.o
       _Java_vtk_vtkPanel_Lock in vtkRenderWindowJava.o
       _Java_vtk_vtkPanel_UnLock in vtkRenderWindowJava.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkRenderingJava.5.1.0.dylib] Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRenderingJava.dir/all] Error 2

Can anyone help me! thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080219/cf1cd527/attachment.htm>


More information about the vtkusers mailing list