[vtkusers] Re: who can help me? I will be mad,Thanks (Solaris 9 Java wrapping)

Sean McInerney seanm at nmr.mgh.harvard.edu
Mon Dec 8 21:52:17 EST 2003


Hi songhua,

   I'll preface this by saying that I have not yet used VTK Java 
wrapping for any projects, but that I have gotten it to compile on a 
SPARC running Solaris 9 with Java version "1.4.1_01". I am including the 
relevant CMake cache variables and their values. Java installations from 
Sun packages are pretty standard, so (hopefully) you will simply need to 
cut and paste to get things working.

Note that the necessary libraries are from package 'SUNWj3rt' and the 
headers from 'SUNWj3dev'. Verify your installation.

//Path to a program.
JAVA_ARCHIVE:FILEPATH=/usr/j2se/bin/jar

//What is the path where the file jawt.h can be found
JAVA_AWT_INCLUDE_PATH:PATH=/usr/j2se/include

//Where can the jawt library be found
JAVA_AWT_LIBRARY:FILEPATH=/usr/j2se/jre/lib/sparc/libjawt.so

//Path to a program.
JAVA_COMPILE:FILEPATH=/usr/j2se/bin/javac

//What is the path where the file jni.h can be found
JAVA_INCLUDE_PATH:PATH=/usr/j2se/include

//What is the path where the file jni_md.h can be found
JAVA_INCLUDE_PATH2:PATH=/usr/j2se/include/solaris

//Path to a program.
JAVA_RUNTIME:FILEPATH=/usr/j2se/bin/java

Good Luck,
     Sean

> 
> From: =?gb2312?B?y84gu6o=?= <songhua0712 at hotmail.com>
> To: vtkusers at vtk.org
> Date: Mon, 08 Dec 2003 16:46:58 +0800
> Subject: [vtkusers] who can help me? I will be mad,Thanks
> 
> Hi everyone:
> Severl days ago I had the problem,now I still cannot solve it,although I 
> tried many many times.The prolbem is:
> I tried to  build VTK4.2 with Java1_3_1_08 on Solaris (sparc) 9. But when I
> make,  almost after half an hour I got the following error:
>  
> root 11:27:38 /usr/local/vtk/Wrapping/Java# /opt/SUNWspro/bin/CC        
> -I/usr/openwin/share/include -KPIC  $(VTKJavaExecutable_SRC_OBJS)   -
> o /usr/local/vtk/bin/VTKJavaExecutable  -L. 
> -L/export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc/client 
> -L/usr/local/vtk/bin -L/usr/openwin/lib
>  -L/export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc -lvtkCommonJava 
> -lvtkFilteringJava -lvtkGraphicsJava -lvtkIOJava -lvtkImagingJava -lvtkRe
> nderingJava -lvtkIO -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat 
> -lvtkImagingJava -lvtkGraphicsJava -lvtkFilteringJava -lvtkCommonJava -
> lvtkRendering -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon 
> -lthread -ldl -lm -lSM -lICE -lSM -lICE -lX11 -lXext -lsocket -lnsl -lX11
>  -lXext -lsocket -lnsl -lvtkftgl -lGLU -lGL -lvtkfreetype -lXt -lSM -lICE 
> -lX11 -lXext -lsocket -lnsl -ljawt -R.:/export/home/songhua/j2sdk1_
> 3_1_08/jre/lib/sparc/client:/usr/local/vtk/bin:/usr/openwin/lib:/export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc 
> 
> bash: VTKJavaExecutable_SRC_OBJS: command not found
> ld: warning: file libmawt.so: be required 
> /export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc/libjawt.so, not found
> Undefined                 
>  symbole                       in file
> awt_GetDrawingSurface               
> /export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc/libjawt.so
> awt_FreeDrawingSurface              
> /export/home/songhua/j2sdk1_3_1_08/jre/lib/sparc/libjawt.so
> main                                /opt/SUNWspro/prod/lib/crt1.o
> ld: fatal: symbol reference error.No output be writen into 
> /usr/local/vtk/bin/VTKJavaExecutable
> I tried java1.4, but the problem still is.How can I do then?
>  
> Thanks a lot!
> songhua
> 




More information about the vtkusers mailing list