[vtkusers] who can help me? The problem still is,Thanks (Solaris 9 Java wrapping)

宋 华 songhua0712 at hotmail.com
Tue Dec 9 09:29:06 EST 2003


Hi everyone: 
I still cannot solve my problem,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  included the relevant CMake cache variables and their values as follows: 


//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 

I also tried java1.4, but the problem still is.How can I do then? 

Thanks a lot! 
songhua

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn  




More information about the vtkusers mailing list