Ubuntu installation failing due to VTK

Install support for openEMS

Moderators: thorsten, sebastian

ravi
Posts: 1
Joined: Mon 14 May 2018, 15:14

Ubuntu installation failing due to VTK

Post by ravi » Mon 14 May 2018, 15:21

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"

Marzeit
Posts: 1
Joined: Fri 18 May 2018, 14:31

Re: Ubuntu installation failing due to VTK

Post by Marzeit » Fri 18 May 2018, 14:38

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.

thorsten
Posts: 1406
Joined: Mon 27 Jun 2011, 12:26

Re: Ubuntu installation failing due to VTK

Post by thorsten » Fri 18 May 2018, 18:16

Thanks Marzeit for the infos. I may add this to the wiki. Unfortunatly I do not have any Ubuntu at the moment to test.

smerrett79
Posts: 31
Joined: Thu 23 May 2019, 18:05

Re: Ubuntu installation failing due to VTK

Post by smerrett79 » Mon 24 Jun 2019, 23:43

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.

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: Ubuntu installation failing due to VTK

Post by bveidt » Tue 25 Jun 2019, 01:28

Are solid models rendered correctly?

smerrett79
Posts: 31
Joined: Thu 23 May 2019, 18:05

Re: Ubuntu installation failing due to VTK

Post by smerrett79 » Tue 25 Jun 2019, 07:53

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?

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: Ubuntu installation failing due to VTK

Post by bveidt » Tue 25 Jun 2019, 19:48

Yes, with AppCSXCAD. You can see examples in another thread: "AppCSXCAD incorrect render on Debian 9"
viewtopic.php?f=2&t=807

smerrett79
Posts: 31
Joined: Thu 23 May 2019, 18:05

Re: Ubuntu installation failing due to VTK

Post by smerrett79 » Tue 25 Jun 2019, 22:52

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.

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: Ubuntu installation failing due to VTK

Post by bveidt » Wed 26 Jun 2019, 01:51

If it worked with vtk5, and not with vtk6, why should it work with vtk8? (Assuming that the problem is with vtk.)

smerrett79
Posts: 31
Joined: Thu 23 May 2019, 18:05

Re: Ubuntu installation failing due to VTK

Post by smerrett79 » Wed 26 Jun 2019, 08:05

I only say that because of thorsten's comment on the thread you linked to. He uses vtk8 and says his rendering is fine.

Post Reply