-
Notifications
You must be signed in to change notification settings - Fork 69
[Work in Progress] Install vtk 6.3 library
The Visualization toolkit (Kitware) - http://www.vtk.org/ - open-source software for 3D computer graphics, image processing and visualization.
- VTK usage on Neptus was only tested with vtk 6.3 versions, latest version may not work properly.
sudo apt-get install libvtk6.3 libvtk-java
Download this compressed file and extract it into your Neptus folder.
(VTK compiled using MinGW-w64)
- You can install the following VTK-6.3.0-x64-64bit.exe
Operative System we used: Windows 10 x64
-
Java JDK 1.8.0 build 131 (oracle.com)
-
Apache Ant v1.10.1 (ant.apache.org) | Defined JAVA_HOME and ANT_HOME (www.mkyong.com/ant/how-to-install-apache-ant-on-windows/) | Define ANT_OPTS=”-Xms10m -Xmx912m”
-
CMake v3.9.1 x64 (cmake.org) | Choose “Add to system PATH” when asked during installation
-
Make v3.81 (gnuwin32.sourceforge.net) | Add “...\bin” folder to “Path” in Environment Variables
-
Win-builds v1.5.0 (win-builds.org) | Choose “x86-64” Hit “Process” Add “...\bin” folder to “Path” in Environment Variables
- Choose source and build locations
- Press “Configure”
- Choose “MinGW Makefiles” and “Use default native compilers”
- After processing the files, the option should be highlighted in red
- Tick “VTK_WRAP_JAVA”
- Press “Configure” again
- After processing the files, the options highlighted in red should be less
- Press “Configure” again until there is no red left
- Press “Generate”
- Open a Command Prompt window
- Go to the build directory
- Run “make all”
- Wait until it finishes (can take over half an hour) | NOTE: We came across an error in a function called 'xmlModulePlatformOpen', in the file ‘xmlmodule.c’ stating that 'RTLD_NOW' is undeclared. We were required to declare it in the file in question. The value for 'RTLD_NOW' can be found in the header located in the MinGW sub-folder “...\include\evil-1\dlfcn.h”. In our case the declaration is “# define RTLD_NOW 0x00002”. Add this in the file ‘xmlmodule.c’, before the function 'xmlModulePlatformOpen'.
- Open a Command Prompt window as an Administrator
- Go to the build directory
- Run “make install”
We used NSIS (nsis.sourceforge.net). We included the Mingw-w64 v3.3.0 library dependencies below in the VTK lib sub-folder.
Mingw-w64 v3.3.0 (win-builds.org)
- Library dependencies found in MinGW bin sub-folder:
- LIBGCC_S_SEH-1.DLL
- LIBSTDC++-6.DLL
- LIBWINPTHREAD-1.DLL
- LIBDL-1.DLL
- LIBEVIL-1.DLL