[vtkusers] Vtk+java+linux installation problem

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Sep 7 12:51:08 EDT 2005


Lifang,

	I suspect you reused your old broken VTK build. So you need to
completely remove any old obj file (and lib) and then redo the
compilation and installation.

HTH
Mathieu

Lifang Liu wrote:
> Dear Mathieu,
>     Thanks for your information. The problem is solved by adding 
> /usr/local/j2sdk1.5.0_04/jre/lib/i386/xawt in the variable 
> LD_LIBRARY_PATH. Now it sucessed to compile, and got vtk.jar!  But for 
> the test program, when I run the test program (make test), it  failed to 
> run the first program-Regression.class, algthough it passed all the 
> other 50 test programs. The error information:
> 
>   1/51 Test: JavaRegression
> Command: "/usr/local/jdk1.5.0_04/bin/java" "-classpath"
> "/usr/local/lib/VTK-build/bin/vtk.jar:/usr/local/lib/VTK-build/Wrapping/Java" 
> 
> "Regression" "-D" "VTK_DATA_ROOT-NOTFOUND" "-V" 
> "Baseline/Graphics/Cone.png"
> Directory: /usr/local/lib/VTK-build/Wrapping/Java
> "JavaRegression" start time: Wed Sep 07 09:00:31 EDT 2005
> Output:
> ----------------------------------------------------------
> Try to load: vtkCommonJava
> Failed to load: vtkCommonJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkCommonJava.so
> Successfully loaded: /usr/local/lib/VTK-build/bin/libvtkCommonJava.so
> Try to load: vtkFilteringJava
> Failed to load: vtkFilteringJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkFilteringJava.so
> Successfully loaded: /usr/local/lib/VTK-build/bin/libvtkFilteringJava.so
> Try to load: vtkGraphicsJava
> Failed to load: vtkGraphicsJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkGraphicsJava.so
> Successfully loaded: /usr/local/lib/VTK-build/bin/libvtkGraphicsJava.so
> Try to load: vtkIOJava
> Failed to load: vtkIOJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkIOJava.so
> Successfully loaded: /usr/local/lib/VTK-build/bin/libvtkIOJava.so
> Try to load: vtkImagingJava
> Failed to load: vtkImagingJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkImagingJava.so
> Successfully loaded: /usr/local/lib/VTK-build/bin/libvtkImagingJava.so
> Try to load: vtkWidgetsJava
> Failed to load: vtkWidgetsJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkWidgetsJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/libvtkWidgetsJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Release/libvtkWidgetsJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Release/libvtkWidgetsJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Debug/libvtkWidgetsJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Debug/libvtkWidgetsJava.so
> Problem loading apropriate library
> Try to load: vtkHybridJava
> Failed to load: vtkHybridJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkHybridJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/libvtkHybridJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Release/libvtkHybridJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Release/libvtkHybridJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Debug/libvtkHybridJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Debug/libvtkHybridJava.so
> Problem loading apropriate library
> Try to load: vtkVolumeRenderingJava
> Failed to load: vtkVolumeRenderingJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkVolumeRenderingJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/libvtkVolumeRenderingJava.so
> Try to load: 
> /usr/local/lib/VTK-build/bin/Release/libvtkVolumeRenderingJava.so
> Failed to load:
> /usr/local/lib/VTK-build/bin/Release/libvtkVolumeRenderingJava.so
> Try to load: 
> /usr/local/lib/VTK-build/bin/Debug/libvtkVolumeRenderingJava.so
> Failed to load: 
> /usr/local/lib/VTK-build/bin/Debug/libvtkVolumeRenderingJava.so
> Problem loading apropriate library
> Try to load: vtkRenderingJava
> Failed to load: vtkRenderingJava
> Try to load: /usr/local/lib/VTK-build/bin/libvtkRenderingJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/libvtkRenderingJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Release/libvtkRenderingJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Release/libvtkRenderingJava.so
> Try to load: /usr/local/lib/VTK-build/bin/Debug/libvtkRenderingJava.so
> Failed to load: /usr/local/lib/VTK-build/bin/Debug/libvtkRenderingJava.so
> Problem loading apropriate library
> Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
>        at vtk.vtkTesting.VTKInit(Native Method)
>        at vtk.vtkObject.<init>(vtkObject.java:90)
>        at vtk.vtkTesting.<init>(vtkTesting.java:110)
>        at vtk.vtkTesting2.Initialize(vtkTesting2.java:76)
>        at Regression.main(Regression.java:21)
> ----------------------------------------------------------
> "JavaRegression" end time: Wed Sep 07 09:00:38 EDT 2005
> "JavaRegression" time elapsed: 00:00:07
> ----------------------------------------------------------
>    Your further help would be greatly appreciated!
>    Good day,
>    Lifang
> 
> 
> 
>> From: Mathieu Malaterre <mathieu.malaterre at kitware.com>
>> To: Lifang Liu <llifang at hotmail.com>
>> CC: vtkusers at vtk.org
>> Subject: Re: [vtkusers] Vtk+java+linux installation problem
>> Date: Tue, 06 Sep 2005 11:19:10 -0400
>>
>> I am building VTK+Java on linux/debian every night, using those :
>>
>> #Specify the java stuff
>> JAVACOMMAND:FILEPATH=/usr/lib/j2sdk1.4-sun/bin/java
>> JAVA_ARCHIVE:FILEPATH=/usr/lib/j2sdk1.4-sun/bin/jar
>> JAVA_AWT_INCLUDE_PATH:PATH=/usr/lib/j2sdk1.4-sun/include
>> JAVA_AWT_LIBRARY:FILEPATH=/usr/lib/j2sdk1.4-sun/jre/lib/i386/libjawt.so
>> JAVA_COMPILE:FILEPATH=/usr/lib/j2sdk1.4-sun/bin/javac
>> JAVA_INCLUDE_PATH:PATH=/usr/lib/j2sdk1.4-sun/include/
>> JAVA_INCLUDE_PATH2:PATH=/usr/lib/j2sdk1.4-sun/include/linux/
>> JAVA_RUNTIME:FILEPATH=/usr/lib/j2sdk1.4-sun/bin/java
>>
>> Could you send us what you are using ?
>> Thanks
>> Mathieu
>> Ps: I'll try against Java 1.5 later today
>>
>> Lifang Liu wrote:
>>
>>> Dear All,
>>>
>>> In the past two weeks, I have spent too much time to install latest 
>>> CVS version of vtk java wrapper (jdk1.5.0_04) in manddrake Linux 10. 
>>> I downloaded  CMake 2.0.6 and checkout latest vtk.
>>> I installed it according the recommendation of Jerak :
>>> http://sourceforge.net/mailarchive/forum.php?thread_id=7532676&forum_id=40439 
>>>
>>>
>>>
>>> it display error:
>>> ...
>>> Building executable /usr/local/lib/VTK-build/bin/VTKJavaExecutable...
>>> /usr/bin/ld: warning: libmawt.so, needed by 
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so, not found (try using 
>>> -rpath or -rpath-link)
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so: undefined reference 
>>> to `awt_Unlock at SUNWprivate_1.1'
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so: undefined reference 
>>> to `awt_GetComponent at SUNWprivate_1.1'
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so: undefined reference 
>>> to `awt_GetDrawingSurface at SUNWprivate_1.1'
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so: undefined reference 
>>> to `awt_FreeDrawingSurface at SUNWprivate_1.1'
>>> /usr/local/jdk1.5.0_04/jre/lib/i386/libjawt.so: undefined reference 
>>> to `awt_Lock at SUNWprivate_1.1'
>>> collect2: ld returned 1 exit status
>>> make[3]: *** [/usr/local/lib/VTK-build/bin/VTKJavaExecutable] Error 1
>>> make[2]: *** [default_target] Error 2
>>> make[1]: *** [default_target_Wrapping_Java] Error 2
>>> make: *** [default_target] Error 2
>>>
>>> I tried to compile vtk in Fedora 2.9.* , it get the same error, The 
>>> same error with
>>> http://public.kitware.com/pipermail/vtkusers/2004-March/072381.html.
>>>
>>> I am a newpie  in linux and java.
>>> so can Jarek or someone give any piece of advice on this issue?
>>>
>>> Thank you in advance,
>>>
>>> Yours,
>>> Lifang
>>>
>>> _________________________________________________________________
>>> Take charge with a pop-up guard built on patented Microsoft® 
>>> SmartScreen Technology. 
>>> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
>>>  Start enjoying all the benefits of MSN® Premium right now and get 
>>> the first two months FREE*.
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list. Please keep messages 
>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
> 
> _________________________________________________________________
> Take charge with a pop-up guard built on patented Microsoft® SmartScreen 
> Technology  
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
>  Start enjoying all the benefits of MSN® Premium right now and get the 
> first two months FREE*.
> 
> 





More information about the vtkusers mailing list