Ubuntu installation failing due to VTK
Moderators: thorsten, sebastian
Ubuntu installation failing due to VTK
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"
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
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.
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
Thanks Marzeit for the infos. I may add this to the wiki. Unfortunatly I do not have any Ubuntu at the moment to test.
-
- Posts: 31
- Joined: Thu 23 May 2019, 18:05
Re: Ubuntu installation failing due to VTK
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
Are solid models rendered correctly?
-
- Posts: 31
- Joined: Thu 23 May 2019, 18:05
Re: Ubuntu installation failing due to VTK
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
Yes, with AppCSXCAD. You can see examples in another thread: "AppCSXCAD incorrect render on Debian 9"
viewtopic.php?f=2&t=807
viewtopic.php?f=2&t=807
-
- Posts: 31
- Joined: Thu 23 May 2019, 18:05
Re: Ubuntu installation failing due to VTK
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.
PS, I'm using Ubuntu mostly.
Re: Ubuntu installation failing due to VTK
If it worked with vtk5, and not with vtk6, why should it work with vtk8? (Assuming that the problem is with vtk.)
-
- Posts: 31
- Joined: Thu 23 May 2019, 18:05
Re: Ubuntu installation failing due to VTK
I only say that because of thorsten's comment on the thread you linked to. He uses vtk8 and says his rendering is fine.