[vtkusers] Error compiling VTK with Java wrapping

miguel.oltra at telvent.abengoa.com miguel.oltra at telvent.abengoa.com
Mon Apr 9 12:17:35 EDT 2007



Hi,

I have been trying to compile VTK versions (5.0.1, 5.0.2 and 5.0.3) with
the java wrapping ON with the following compilation error in every case:

***********************************************************************************************************
Linking CXX shared library ../bin/libvtkRenderingJava.dll
Creating library file: ../bin/libvtkRenderingJava.dll.a
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowJava.cxx:(.text+0x252d):
 undefined reference to `_imp__JAWT_GetAWT at 8'
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowJava.cxx:(.text+0x26d9):
 undefined reference to `_imp__JAWT_GetAWT at 8'
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowJava.cxx:(.text+0x2805):
 undefined reference to `_imp__JAWT_GetAWT at 8'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libvtkRenderingJava.dll] Error 1
mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRenderingJava.dir/all] Error
2
mingw32-make: *** [all] Error 2
************************************************************************************************************

For  compilation pruposes, I am using CMake 2.4.6 and mingw32 latest
version.

Following are indicated some CMake options I have configured (the rest are
in the default configuration):

**************************************************************************************************
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-DWIN32_LEAN_AND_MEAN
CMAKE_C_FLAGS:STRING=-DWIN32_LEAN_AND_MEAN
CMAKE_SHARED_LINKER_FLAGS = -Wl, -add-stdcall-alias

BUILD_EXAMPLES:BOOL=ON
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON

//Path to a file.
JAVA_AWT_INCLUDE_PATH:PATH=C:/Program Files/Java/jdk1.5.0_08/include
JAVA_AWT_LIBRARY:FILEPATH=C:\Program Files\Java\jdk1.5.0
_08\jre\bin\jawt.dll
JAVA_COMPILE:FILEPATH=C:/Program Files/Java/jdk1.5.0_08/bin/javac.exe
JAVA_INCLUDE_PATH:PATH=C:/Program Files/Java/jdk1.5.0_08/include
JAVA_INCLUDE_PATH2:PATH=C:/Program Files/Java/jdk1.5.0_08/include/win32
JAVA_JVM_LIBRARY:FILEPATH=C:\Program Files\Java\jdk1.5.0
_08\jre\bin\client\jvm.dll
JAVA_RUNTIME:FILEPATH=C:/WINDOWS/system32/java.exe

/Turn this option off and tests will not popup windows
VTK_USE_DISPLAY:BOOL=ON
VTK_USE_GL2PS:BOOL=ON
VTK_USE_GUISUPPORT:BOOL=ON
VTK_USE_RENDERING:BOOL=ON
VTK_USE_VIDEO_FOR_WINDOWS:BOOL=ON
**************************************************************************************************

I am not sure if the JAVA_JVM_LIBRARY property is correctly defined, but I
did not found any documentation during mailing list revision.

Any ideas or suggestions? Is this a bug?

Regards,
Miguel A.

---
Miguel Ángel Oltra Rodríguez    miguel.oltra at telvent.abengoa.com
Teléfono: +34 954 93 88 97
--- Cada día sabemos más y entendemos menos. (A. Einstein) ---
***********Internet Email Confidentiality Footer*************
This email and any files transmitted with it are confidential and intended
solely for the use of the organization or individual to whom they are
addressed.  It is expressly forbidden to retransmit or copy email and/or
this  attached files without our permission .  If you are not the
addressee indicated in this message (or responsible for delivery of the
message to such person), you may not copy or deliver this message
to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or
your employer does not consent to Internet email for messages of this
kind.  Opinions, conclusions and other information in this message that
do not relate to the official business of my firm shall be understood as
neither given nor endorsed by it.




More information about the vtkusers mailing list