[vtkusers] is this a bug? should I file it somewhere?

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu May 2 15:39:14 EDT 2013


First of all use cmake-gui or ccmake....

To build VTK on linux with Java wrapping

$ mkdir VTK
$ cd VTK
$ git clone git://vtk.org/VTK.git src
$ mkdir build install
$ cd build
$ ccmake ../src

   Hit key [c] for configure

   (Then change only the following properties)

   BUILD_SHARED_LIBS       ON            // otherwise fpic issue
   CMAKE_BUILD_TYPE        Release
   CMAKE_INSTALL_PREFIX  /.../VTK/install
   VTK_WRAP_JAVA             ON

   Hit [c]  wait... [t]

   You should see all the Java property with * marking them as new
   Make sure the LIBRARY ones point to a valid .so file.

    Hit [c] wait... [g]

$ make -j9 && make install

Then to run an application with that VTK you will need to have in your
LD_LIBRARY_PATH the library that was used to compile it
(JAVA_AWT_LIBRARY).

That's it,

Seb

On Thu, May 2, 2013 at 10:48 AM, Ilan <ilan.tal at gmail.com> wrote:
>
> Hi Seb,
> As far as I can see I have the path to JDK6 set properly. I had to do a
> couple things special for linux64 which I didn't need for linux32. One of
> those things is to set the flags to -fPic, or it wouldn't compile properly.
>
> There must be an easier way to get the values of cmake, but I went in page
> by page until I got the whole thing. This is the only way I can show you
> what I am doing and perhaps you can see something "which any fool can see",
> but I can't see. (I don't see a method to attach a file, so I'll paste it
> in.)
>
> Thanks for all your help. I hope eventually it will work, and I'll find out
> what I did wrong.
>
> Ilan
>                                                     Page 1 of 15
>  BUILD_DOCUMENTATION              OFF
>  BUILD_EXAMPLES                   OFF
>  BUILD_SHARED_LIBS                OFF
>  BUILD_TESTING                    OFF
>  BZRCOMMAND                       BZRCOMMAND-NOTFOUND
>  CMAKE_AR                         /usr/bin/ar
>  CMAKE_BACKWARDS_COMPATIBILITY    2.4
>  CMAKE_BUILD_TYPE                 Release
>  CMAKE_COLOR_MAKEFILE             ON
>  CMAKE_CXX_COMPILER               /usr/bin/c++
>  CMAKE_CXX_FLAGS                  -fPIC
>  CMAKE_CXX_FLAGS_DEBUG            -g
>  CMAKE_CXX_FLAGS_MINSIZEREL       -Os -DNDEBUG
>  CMAKE_CXX_FLAGS_RELEASE          -O3 -DNDEBUG
>  CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g
>  CMAKE_C_COMPILER                 /usr/bin/gcc
>  CMAKE_C_FLAGS                    -fPIC
>
>                                                     Page 2 of 15
>  CMAKE_C_FLAGS_DEBUG              -g
>  CMAKE_C_FLAGS_MINSIZEREL         -Os -DNDEBUG
>  CMAKE_C_FLAGS_RELEASE            -O3 -DNDEBUG
>  CMAKE_C_FLAGS_RELWITHDEBINFO     -O2 -g
>  CMAKE_EXE_LINKER_FLAGS
>  CMAKE_EXE_LINKER_FLAGS_DEBUG
>  CMAKE_EXE_LINKER_FLAGS_MINSIZE
>  CMAKE_EXE_LINKER_FLAGS_RELEASE
>  CMAKE_EXE_LINKER_FLAGS_RELWITH
>  CMAKE_EXPORT_COMPILE_COMMANDS    OFF
>  CMAKE_HP_PTHREADS                OFF
>  CMAKE_INSTALL_PREFIX             /usr/local
>  CMAKE_LINKER                     /usr/bin/ld
>  CMAKE_MAKE_PROGRAM               /usr/bin/make
>  CMAKE_MODULE_LINKER_FLAGS
>  CMAKE_MODULE_LINKER_FLAGS_DEBU
>  CMAKE_MODULE_LINKER_FLAGS_MINS
>
>                                                     Page 3 of 15
>  CMAKE_MODULE_LINKER_FLAGS_RELE
>  CMAKE_MODULE_LINKER_FLAGS_RELW
>  CMAKE_NM                         /usr/bin/nm
>  CMAKE_OBJCOPY                    /usr/bin/objcopy
>  CMAKE_OBJDUMP                    /usr/bin/objdump
>  CMAKE_RANLIB                     /usr/bin/ranlib
>  CMAKE_SHARED_LINKER_FLAGS
>  CMAKE_SHARED_LINKER_FLAGS_DEBU
>  CMAKE_SHARED_LINKER_FLAGS_MINS
>  CMAKE_SHARED_LINKER_FLAGS_RELE
>  CMAKE_SHARED_LINKER_FLAGS_RELW
>  CMAKE_SKIP_INSTALL_RPATH         OFF
>  CMAKE_SKIP_RPATH                 OFF
>  CMAKE_STRIP                      /usr/bin/strip
>  CMAKE_THREAD_LIBS                -lpthread
>  CMAKE_USE_PTHREADS               ON
>  CMAKE_USE_RELATIVE_PATHS         OFF
>
>                                                     Page 4 of 15
>  CMAKE_USE_SPROC                  OFF
>  CMAKE_USE_WIN32_THREADS          OFF
>  CMAKE_VERBOSE_MAKEFILE           OFF
>  CMAKE_X_CFLAGS
>  CMAKE_X_LIBS
> /usr/lib/x86_64-linux-gnu/libSM.so;/usr/lib/x
>  COVERAGE_COMMAND                 /usr/bin/gcov
>  COVERAGE_EXTRA_FLAGS             -l
>  CTEST_SUBMIT_RETRY_COUNT         3
>  CTEST_SUBMIT_RETRY_DELAY         5
>  CVSCOMMAND                       CVSCOMMAND-NOTFOUND
>  CVS_UPDATE_OPTIONS               -d -A -P
>  DART_TESTING_TIMEOUT             1500
>  EXODUSII_DISABLE_COMPILER_WARN   ON
>  GITCOMMAND                       GITCOMMAND-NOTFOUND
>  HDF5_BUILD_CPP_LIB               OFF
>  HDF5_BUILD_HL_LIB                ON
>  HDF5_DISABLE_COMPILER_WARNINGS   ON
>
>                                                     Page 5 of 15
>  HDF5_ENABLE_HSIZET               ON
>  HDF5_ENABLE_LARGE_FILE           ON
>  HDF5_ENABLE_PARALLEL             OFF
>  HDF5_ENABLE_SZIP_SUPPORT         OFF
>  HDF5_ENABLE_Z_LIB_SUPPORT        ON
>  HDF5_Enable_Clear_File_Buffers   ON
>  HDF5_Enable_Instrument           OFF
>  HDF5_METADATA_TRACE_FILE         OFF
>  HDF5_STRICT_FORMAT_CHECKS        OFF
>  HDF5_USE_16_API_DEFAULT          OFF
>  HDF5_USE_FILTER_FLETCHER32       ON
>  HDF5_USE_FILTER_NBIT             ON
>  HDF5_USE_FILTER_SCALEOFFSET      ON
>  HDF5_USE_FILTER_SHUFFLE          ON
>  HDF5_USE_H5DUMP_PACKED_BITS      ON
>  HDF5_WANT_DATA_ACCURACY          ON
>  HDF5_WANT_DCONV_EXCEPTION        ON
>
>                                                     Page 6 of 15
>  HGCOMMAND                        HGCOMMAND-NOTFOUND
>  JAVA_AWT_INCLUDE_PATH            /usr/lib/jvm/java-6-openjdk-amd64/include
>  JAVA_AWT_LIBRARY
> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd
>  JAVA_INCLUDE_PATH                /usr/lib/jvm/java-6-openjdk-amd64/include
>  JAVA_INCLUDE_PATH2               /usr/lib/jvm/java-6-openjdk-amd64/include
>  JAVA_JVM_LIBRARY
> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd
>  Java_JAR_EXECUTABLE              /usr/bin/jar
>  Java_JAVAC_EXECUTABLE            /usr/bin/javac
>  Java_JAVADOC_EXECUTABLE          /usr/bin/javadoc
>  Java_JAVAH_EXECUTABLE            /usr/bin/javah
>  Java_JAVA_EXECUTABLE             /usr/bin/java
>  MAKECOMMAND                      /usr/bin/make -i
>  MEMORYCHECK_COMMAND              MEMORYCHECK_COMMAND-NOTFOUND
>  MEMORYCHECK_SUPPRESSIONS_FILE
>  NETCDF4_CHUNK_CACHE_NELEMS       1009
>  NETCDF4_CHUNK_CACHE_PREEMPTION   0.75
>  NETCDF4_CHUNK_CACHE_SIZE         4194304
>
>                                                     Page 7 of 15
>  NETCDF4_DEFAULT_CHUNKS_IN_CACH   10
>  NETCDF4_DEFAULT_CHUNK_SIZE       4194304
>  NETCDF4_MAX_DEFAULT_CACHE_SIZE   67108864
>  NETCDF_DISABLE_COMPILER_WARNIN   ON
>  NETCDF_ENABLE_CXX                ON
>  NETCDF_ENABLE_NETCDF4            ON
>  OPENGL_INCLUDE_DIR               /usr/include
>  OPENGL_gl_LIBRARY                /usr/lib/x86_64-linux-gnu/libGL.so
>  OPENGL_glu_LIBRARY               /usr/lib/x86_64-linux-gnu/libGLU.so
>  OPENGL_xmesa_INCLUDE_DIR         OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
>  PROJ_LIST_EXTERNAL               OFF
>  PROJ_USE_GSL                     OFF
>  PROJ_USE_PTHREADS                OFF
>  PYTHON_EXECUTABLE                /usr/bin/python
>  SCPCOMMAND                       /usr/bin/scp
>  SITE                             ilan-Len-G585
>  SLURM_SBATCH_COMMAND             SLURM_SBATCH_COMMAND-NOTFOUND
>
>                                                     Page 8 of 15
>  SLURM_SRUN_COMMAND               SLURM_SRUN_COMMAND-NOTFOUND
>  SVNCOMMAND                       SVNCOMMAND-NOTFOUND
>  VERDICT_BUILD_DOC                OFF
>  VERDICT_ENABLE_TESTING           OFF
>  VERDICT_MANGLE                   ON
>  VERDICT_MANGLE_PREFIX            vtk
>  VERDICT_USE_FLOAT                OFF
>  VLI_LIBRARY_FOR_VP1000           VLI_LIBRARY_FOR_VP1000-NOTFOUND
>  VTK_BUILD_FORWARDING_EXECUTABL   OFF
>  VTK_DATA_ROOT                    VTK_DATA_ROOT-NOTFOUND
>  VTK_DEBUG_LEAKS                  OFF
>  VTK_EXTRA_COMPILER_WARNINGS      OFF
>  VTK_GLEXT_FILE
> /home/ilan/ilan/vtk/Utilities/ParseOGLExt/hea
>  VTK_GLXEXT_FILE
> /home/ilan/ilan/vtk/Utilities/ParseOGLExt/hea
>  VTK_IGNORE_BTX                   ON
>  VTK_INSTALL_THIRD_PARTY_LIBRAR   OFF
>  VTK_LARGE_DATA_ROOT              VTK_LARGE_DATA_ROOT-NOTFOUND
>
>                                                     Page 9 of 15
>  VTK_LEGACY_REMOVE                OFF
>  VTK_LEGACY_SILENT                OFF
>  VTK_MATERIALS_DIRS
> /home/ilan/ilan/vtk/Utilities/MaterialLibrary
>  VTK_MAX_THREADS                  64
>  VTK_OPENGL_HAS_OSMESA            OFF
>  VTK_TESTING_LOCALE
>  VTK_TESTING_USE_FPE              ON
>  VTK_TESTING_USE_LOCALE           OFF
>  VTK_USE_64BIT_IDS                ON
>  VTK_USE_BOOST                    OFF
>  VTK_USE_CG_SHADERS               OFF
>  VTK_USE_CHARTS                   ON
>  VTK_USE_CHEMISTRY                OFF
>  VTK_USE_DISPLAY                  ON
>  VTK_USE_FFMPEG_ENCODER           OFF
>  VTK_USE_GCC_VISIBILITY           ON
>  VTK_USE_GEOVIS                   ON
>
>                                                    Page 10 of 15
>  VTK_USE_GL2PS                    OFF
>  VTK_USE_GLSL_SHADERS             ON
>  VTK_USE_GNU_R                    OFF
>  VTK_USE_GUISUPPORT               OFF
>  VTK_USE_INFOVIS                  ON
>  VTK_USE_MANGLED_MESA             OFF
>  VTK_USE_MATLAB_MEX               OFF
>  VTK_USE_METAIO                   ON
>  VTK_USE_MPEG2_ENCODER            OFF
>  VTK_USE_MYSQL                    OFF
>  VTK_USE_NVCONTROL                OFF
>  VTK_USE_N_WAY_ARRAYS             ON
>  VTK_USE_ODBC                     OFF
>  VTK_USE_OGGTHEORA_ENCODER        OFF
>  VTK_USE_PARALLEL                 OFF
>  VTK_USE_POSTGRES                 OFF
>  VTK_USE_QT                       OFF
>
>                                                    Page 11 of 15
>  VTK_USE_RENDERING                ON
>  VTK_USE_SYSTEM_EXPAT             OFF
>  VTK_USE_SYSTEM_FREETYPE          OFF
>  VTK_USE_SYSTEM_HDF5              OFF
>  VTK_USE_SYSTEM_JPEG              OFF
>  VTK_USE_SYSTEM_LIBPROJ4          OFF
>  VTK_USE_SYSTEM_LIBXML2           OFF
>  VTK_USE_SYSTEM_PNG               OFF
>  VTK_USE_SYSTEM_TIFF              OFF
>  VTK_USE_SYSTEM_ZLIB              OFF
>  VTK_USE_TDX                      OFF
>  VTK_USE_TEXT_ANALYSIS            OFF
>  VTK_USE_VIEWS                    ON
>  VTK_USE_VOLUMEPRO_1000           OFF
>  VTK_WGLEXT_FILE
> /home/ilan/ilan/vtk/Utilities/ParseOGLExt/hea
>  VTK_WRAP_HINTS                   /home/ilan/ilan/vtk/Wrapping/hints
>  VTK_WRAP_JAVA                    ON
>
>                                                    Page 12 of 15
>  VTK_WRAP_PYTHON                  OFF
>  VTK_WRAP_PYTHON_SIP              OFF
>  VTK_WRAP_TCL                     OFF
>  X11_ICE_INCLUDE_PATH             /usr/include
>  X11_ICE_LIB                      /usr/lib/x86_64-linux-gnu/libICE.so
>  X11_SM_INCLUDE_PATH              /usr/include
>  X11_SM_LIB                       /usr/lib/x86_64-linux-gnu/libSM.so
>  X11_X11_INCLUDE_PATH             /usr/include
>  X11_X11_LIB                      /usr/lib/x86_64-linux-gnu/libX11.so
>  X11_XRes_INCLUDE_PATH            X11_XRes_INCLUDE_PATH-NOTFOUND
>  X11_XRes_LIB                     X11_XRes_LIB-NOTFOUND
>  X11_XShm_INCLUDE_PATH            /usr/include
>  X11_XSync_INCLUDE_PATH           /usr/include
>  X11_XTest_INCLUDE_PATH           X11_XTest_INCLUDE_PATH-NOTFOUND
>  X11_XTest_LIB                    X11_XTest_LIB-NOTFOUND
>  X11_Xaccessrules_INCLUDE_PATH    X11_Xaccessrules_INCLUDE_PATH-NOTFOUND
>  X11_Xaccessstr_INCLUDE_PATH      /usr/include
>
>                                                    Page 13 of 15
>  X11_Xau_INCLUDE_PATH             /usr/include
>  X11_Xau_LIB                      /usr/lib/x86_64-linux-gnu/libXau.so
>  X11_Xcomposite_INCLUDE_PATH      X11_Xcomposite_INCLUDE_PATH-NOTFOUND
>  X11_Xcomposite_LIB               X11_Xcomposite_LIB-NOTFOUND
>  X11_Xcursor_INCLUDE_PATH         X11_Xcursor_INCLUDE_PATH-NOTFOUND
>  X11_Xcursor_LIB                  X11_Xcursor_LIB-NOTFOUND
>  X11_Xdamage_INCLUDE_PATH         /usr/include
>  X11_Xdamage_LIB                  /usr/lib/x86_64-linux-gnu/libXdamage.so
>  X11_Xdmcp_INCLUDE_PATH           /usr/include
>  X11_Xdmcp_LIB                    /usr/lib/x86_64-linux-gnu/libXdmcp.so
>  X11_Xext_LIB                     /usr/lib/x86_64-linux-gnu/libXext.so
>  X11_Xfixes_INCLUDE_PATH          /usr/include
>  X11_Xfixes_LIB                   /usr/lib/x86_64-linux-gnu/libXfixes.so
>  X11_Xft_INCLUDE_PATH             X11_Xft_INCLUDE_PATH-NOTFOUND
>  X11_Xft_LIB                      X11_Xft_LIB-NOTFOUND
>  X11_Xi_INCLUDE_PATH              X11_Xi_INCLUDE_PATH-NOTFOUND
>  X11_Xi_LIB                       X11_Xi_LIB-NOTFOUND
>
>                                                    Page 14 of 15
>  X11_Xinerama_INCLUDE_PATH        X11_Xinerama_INCLUDE_PATH-NOTFOUND
>  X11_Xinerama_LIB                 X11_Xinerama_LIB-NOTFOUND
>  X11_Xinput_INCLUDE_PATH          X11_Xinput_INCLUDE_PATH-NOTFOUND
>  X11_Xinput_LIB                   X11_Xinput_LIB-NOTFOUND
>  X11_Xkb_INCLUDE_PATH             /usr/include
>  X11_Xkbfile_INCLUDE_PATH         X11_Xkbfile_INCLUDE_PATH-NOTFOUND
>  X11_Xkbfile_LIB                  X11_Xkbfile_LIB-NOTFOUND
>  X11_Xkblib_INCLUDE_PATH          /usr/include
>  X11_Xlib_INCLUDE_PATH            /usr/include
>  X11_Xmu_INCLUDE_PATH             X11_Xmu_INCLUDE_PATH-NOTFOUND
>  X11_Xmu_LIB                      X11_Xmu_LIB-NOTFOUND
>  X11_Xpm_INCLUDE_PATH             X11_Xpm_INCLUDE_PATH-NOTFOUND
>  X11_Xpm_LIB                      X11_Xpm_LIB-NOTFOUND
>  X11_Xrandr_INCLUDE_PATH          X11_Xrandr_INCLUDE_PATH-NOTFOUND
>  X11_Xrandr_LIB                   X11_Xrandr_LIB-NOTFOUND
>  X11_Xrender_INCLUDE_PATH         X11_Xrender_INCLUDE_PATH-NOTFOUND
>  X11_Xrender_LIB                  X11_Xrender_LIB-NOTFOUND
>
>                                                    Page 15 of 15
>  X11_Xscreensaver_INCLUDE_PATH    X11_Xscreensaver_INCLUDE_PATH-NOTFOUND
>  X11_Xscreensaver_LIB             X11_Xscreensaver_LIB-NOTFOUND
>  X11_Xshape_INCLUDE_PATH          /usr/include
>  X11_Xt_INCLUDE_PATH              /usr/include
>  X11_Xt_LIB                       /usr/lib/x86_64-linux-gnu/libXt.so
>  X11_Xutil_INCLUDE_PATH           /usr/include
>  X11_Xv_INCLUDE_PATH              X11_Xv_INCLUDE_PATH-NOTFOUND
>  X11_Xv_LIB                       X11_Xv_LIB-NOTFOUND
>  X11_Xxf86misc_LIB                X11_Xxf86misc_LIB-NOTFOUND
>  X11_Xxf86vm_LIB                  /usr/lib/x86_64-linux-gnu/libXxf86vm.so
>  X11_dpms_INCLUDE_PATH            /usr/include
>  X11_xf86misc_INCLUDE_PATH        X11_xf86misc_INCLUDE_PATH-NOTFOUND
>  X11_xf86vmode_INCLUDE_PATH       /usr/include
>
>
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/is-this-a-bug-should-I-file-it-somewhere-tp5720281p5720531.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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