Page 1 of 2

Ubuntu installation failing due to VTK

Posted: Mon 14 May 2018, 15:21
by ravi
Hi
I tried but was not able to install openEMS on Ubuntu due to unavailable VTK 6.1 package. Ubuntu does not have VTK 6.1 package now. Do you have any remedy for it? It has 5.8/5.10 and 6/6.2/6.3.
https://packages.ubuntu.com/search?keywords=vtk

Following is the message:
-- Found HDF5: /usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so (Required is at least version "1.8")
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- system
-- date_time
-- serialization
-- chrono
CMake Warning at CMakeLists.txt:124 (find_package):
Could not find a configuration file for package "VTK" that is compatible
with requested version "6.1".

The following configuration files were considered but not accepted:

/usr/lib/vtk-5.8/VTKConfig.cmake, version: 5.8.0



-- The imported target "vtkWrapTcl" references the file
"/usr/bin/vtkWrapTcl"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkWrapTclInit" references the file
"/usr/bin/vtkWrapTclInit"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkWrapPython" references the file
"/usr/bin/vtkWrapPython"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkWrapPythonInit" references the file
"/usr/bin/vtkWrapPythonInit"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkParseJava" references the file
"/usr/bin/vtkParseJava"

Re: Ubuntu installation failing due to VTK

Posted: Fri 18 May 2018, 14:38
by Marzeit
Ubuntu 18.04 doesn't provide VTK version 5 anymore, but you can replace it with version 6.

Following the documentation for compiling from source, replacing the listed packages libvtk5-dev and libvtk5-qt4-dev with libvtk6-dev and libvtk6-qt-dev should help.

Re: Ubuntu installation failing due to VTK

Posted: Fri 18 May 2018, 18:16
by thorsten
Thanks Marzeit for the infos. I may add this to the wiki. Unfortunatly I do not have any Ubuntu at the moment to test.

Re: Ubuntu installation failing due to VTK

Posted: Mon 24 Jun 2019, 23:43
by smerrett79
I managed to get my installations of openEMS working after I replaced vtk5 with vtk6 but I had to use synaptic package manager to install it, as getting it from terminal didn't work for me on Ubuntu 18.04. Just mentioning this in case it helps someone else in future.

Re: Ubuntu installation failing due to VTK

Posted: Tue 25 Jun 2019, 01:28
by bveidt
Are solid models rendered correctly?

Re: Ubuntu installation failing due to VTK

Posted: Tue 25 Jun 2019, 07:53
by smerrett79
Do you mean in AppCSXCAD? Yes, they appear to render properly for me. I've only tried the cartesian mesh grid so far and my solid structures have been PCB substrate and the feed port (cuboid the same thickness as the substrate). Do you still have issues even with vtk6?

Re: Ubuntu installation failing due to VTK

Posted: Tue 25 Jun 2019, 19:48
by bveidt
Yes, with AppCSXCAD. You can see examples in another thread: "AppCSXCAD incorrect render on Debian 9"
viewtopic.php?f=2&t=807

Re: Ubuntu installation failing due to VTK

Posted: Tue 25 Jun 2019, 22:52
by smerrett79
Ha, you just made me realise that my solid models ARE NOT rendered correctly! I had been assuming it was a poor quality visualisation app but now I can see it's working really nicely for others (including you in the past). I will keep my eye out for vtk 8.....
PS, I'm using Ubuntu mostly.

Re: Ubuntu installation failing due to VTK

Posted: Wed 26 Jun 2019, 01:51
by bveidt
If it worked with vtk5, and not with vtk6, why should it work with vtk8? (Assuming that the problem is with vtk.)

Re: Ubuntu installation failing due to VTK

Posted: Wed 26 Jun 2019, 08:05
by smerrett79
I only say that because of thorsten's comment on the thread you linked to. He uses vtk8 and says his rendering is fine.