[vtkusers] Compilation Error while vtk5.10 + Java Win7(64bit)
Sebastien Jourdain
sebastien.jourdain at kitware.com
Mon Jul 9 11:30:55 EDT 2012
You should give a try with visual studio
I don't know anything with mingw
On Mon, Jul 9, 2012 at 9:49 AM, satyanarayana reddy
<satyajanga at gmail.com> wrote:
> Dear Vtkusers,
> I am trying to compile vtk 5.10 with java wrapping enabled in windows
> 7(64 bit os) using mingw. I am getting the following error. Please check and
> suggest me if I am doing anything wrong.
>
>
> Error:
> Creating library file:
> ..\bin\libvtkRenderingJava.dll.aCMakeFiles\vtkRenderingJava.dir/objects.a(vtkRenderWindowJava.cxx.obj):
> In function `Java_vtk_vtkPanel_Lock at 8':
> C:/AimLab/VTK/Common/vtkJavaAwt.h:157: undefined reference to
> `_imp__JAWT_GetAWT at 8'
> CMakeFiles\vtkRenderingJava.dir/objects.a(vtkRenderWindowJava.cxx.obj): In
> function `Java_vtk_vtkPanel_UnLock at 8':
> C:/AimLab/VTK/Common/vtkJavaAwt.h:214: undefined reference to
> `_imp__JAWT_GetAWT at 8'
> CMakeFiles\vtkRenderingJava.dir/objects.a(vtkRenderWindowJava.cxx.obj): In
> function `Java_vtk_vtkPanel_RenderCreate at 12':
> C:/AimLab/VTK/Common/vtkJavaAwt.h:57: undefined reference to
> `_imp__JAWT_GetAWT at 8
>
>
>
> I have tried with different settings for awt and jvm libraries but of no
> use.
> The CMake settings for vtk are as follows
>
> //Path to a file.
> JAVA_AWT_INCLUDE_PATH:PATH=C:/Program Files/Java/jdk1.6.0_33/include
>
> //Path to a library.
> JAVA_AWT_LIBRARY:FILEPATH=C:/Program Files/Java/jdk1.6.0_33/lib/jawt.lib
>
> //Path to a file.
> JAVA_INCLUDE_PATH:PATH=C:/Program Files/Java/jdk1.6.0_33/include
>
> //Path to a file.
> JAVA_INCLUDE_PATH2:PATH=C:/Program Files/Java/jdk1.6.0_33/include/win32
>
> //Path to a library.
> JAVA_JVM_LIBRARY:FILEPATH=C:/Program
> Files/Java/jdk1.6.0_33/jre/bin/server/jvm.dll
>
> //Path to a program.
> Java_JAR_EXECUTABLE:FILEPATH=C:/Program Files/Java/jdk1.6.0_33/bin/jar.exe
>
> //Path to a program.
> Java_JAVAC_EXECUTABLE:FILEPATH=C:/Program
> Files/Java/jdk1.6.0_33/bin/javac.exe
>
> //Path to a program.
> Java_JAVADOC_EXECUTABLE:FILEPATH=C:/Program
> Files/Java/jdk1.6.0_33/bin/javadoc.exe
>
> //Path to a program.
> Java_JAVAH_EXECUTABLE:FILEPATH=C:/Program
> Files/Java/jdk1.6.0_33/bin/javah.exe
>
> //Path to a program.
> Java_JAVA_EXECUTABLE:FILEPATH=C:/Program Files/Java/jdk1.6.0_33/bin/java.exe
>
>
>
> Thanks a lot,
>
> Best Regards,
> Satya.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list