[vtkusers] Compilation Error while vtk5.10 + Java Win7(64bit)
satyanarayana reddy
satyajanga at gmail.com
Mon Jul 9 09:49:08 EDT 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120709/a4eb2827/attachment.htm>
More information about the vtkusers
mailing list