I try to install octaviz from source, but I seem to have some problem:
When I try to configure in Cmake I get:
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkCommonKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:3:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkCommonKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:3:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:21:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkFilteringKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkFilteringKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:3:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkImagingKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkImagingKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:3:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkGraphicsKit.cmake
Most likely you installed precompiled VTK library that comes with your distribution and does not have vtk*Kit.cmake files included (I know nothing about archlinux so I cannot confirm this). You need following files that some distributions fail to include (debian includes them):
Can you check your if those files are in your vtk installation directory (/opt/vtk/lib/vtk) or some of its subdirecotries? If the files are not there you can either contact archlinux VTK package maintainer or compile and install VTK yourself.
Cheers,
Dragan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for the quick response.
I actually did install vtk from source, but I used the available build-scripts for archlinux (something like ebuild in Gentoo). So I miss some of the listed files in /opt/vtk/lib/vtk/
There are no options to turn off the creation of those files; they contains options used to build vtk. How did you install vtk after compiling it? Also can you check if those files are in vtk's source tree?
Dragan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What I meant was to check for those files in the directory where you compiled vtk. Some of the files are created during the compilation, others are simply modified using a template. For example your source tarball (http://kent.dl.sourceforge.net/sourceforge/vtk/VTK-4.2-LatestRelease.tar.gz ) contains VTKConfig.cmake.in which is used to create VTKConfig.cmake during the compilation. I would suggest you to install vtk manually without any package managers. Once you make it work, you can start debugging your package manager.
Finally, as Jonathan said, you need VTK-4.4 to run octaviz (you can compile it against VTK-4.2 but there will be problems running it).
Cheers,
Dragan
Dragan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes I looked in the directory where I compiled vtk; I could not find all of them. Now, I try to install by hand ... that produces those files. Strange!?
Now, the compilation runs for a while and stops with an error message:
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from vtkHierarchicalBoxApplyFilterCommand.cc:5:
/opt/vtk/include/vtk/vtkHierarchicalBoxApplyFilterCommand.h:31:54: error: vtkAMRBox.h: No such file or directory
make[3]: *** [vtkHierarchicalBoxApplyFilterCommand.oct] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Filtering] Error 2
make: *** [default_target] Error 2
The file vtkAMRBox.h is in the compilation directory, but not in the installed directory!?
Thanks and Greetings!
Fabian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks the compilation and installation worked, but now I have a different problem, which should not be to hard to handle. Running one of those examples, it does not find the vtk-libs:
octave:1> Cone
error: libvtkCommon.so: cannot open shared object file: No such file or directory
error: near line 13 of file `/usr/share/octave/2.1.71/site/m/octaviz/Examples/Cone.m'
I would say that they are included in my (bashrc):
I don't know where did you install vtk shared libraries so I can't tell if you forgot any directories. The best way to make sure that everything is OK is to find the directory that contains libvtkCommon.so (should be in /opt/vtk/ or some of its subdirecotries), add it to ld.so.conf and run ldconfig (LD_LIBRARY_PATH does not work allways). If you can't log in as root that just make sure that the directory containing libvtkCommon.so is in your LD_LIBRARY_PATH.
Cheers,
Dragan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I try to install octaviz from source, but I seem to have some problem:
When I try to configure in Cmake I get:
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkCommonKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:3:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkCommonKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:3:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Common/CMakeLists.txt:21:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkFilteringKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkFilteringKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Filtering/CMakeLists.txt:3:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkImagingKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:84:
INCLUDE Could not find include file: /vtkImagingKit.cmake
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:2:
A command failed during the invocation of macro "OCTAVE_WRAP_VTK".
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/Imaging/CMakeLists.txt:3:
INSTALL_PROGRAMS called with incorrect number of arguments
CMake Error: Error in cmake code at
/home/fab/Rpms/octaviz-0.4.0/CMakeLists.txt:83:
INCLUDE Could not find include file: /vtkGraphicsKit.cmake
The main window displays:
CMAKE_BACKWARDS_COMPATIBILITY 2.0
CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr
CXX_COMPILER_PCH g++-3.4
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH
OCTAVE_CONFIG /usr/bin/octave-config
USE_PREC_HEADERS OFF
VTK_DIR /opt/vtk/lib/vtk
I have an archlinux system with octave 2.1.71, cmake 2.0 and vtk 4.2.
Would be nice, if anybody can help me installing it!?
Greetings!
Fabian
Fabian,
Most likely you installed precompiled VTK library that comes with your distribution and does not have vtk*Kit.cmake files included (I know nothing about archlinux so I cannot confirm this). You need following files that some distributions fail to include (debian includes them):
vtkLoadCMakeExtensions.cmake
UseVTK.cmake
VTKBuildSettings.cmake
VTKConfig.cmake
VTKLibraryDepends.cmake
hints
vtkCommonKit.cmake
vtkFilteringKit.cmake
vtkGraphicsKit.cmake
vtkHybridKit.cmake
vtkIOKit.cmake
vtkImagingKit.cmake
vtkParallelKit.cmake
vtkRenderingKit.cmake
Can you check your if those files are in your vtk installation directory (/opt/vtk/lib/vtk) or some of its subdirecotries? If the files are not there you can either contact archlinux VTK package maintainer or compile and install VTK yourself.
Cheers,
Dragan
Hi Dragan,
thanks for the quick response.
I actually did install vtk from source, but I used the available build-scripts for archlinux (something like ebuild in Gentoo). So I miss some of the listed files in /opt/vtk/lib/vtk/
VTKBuildSettings.cmake
UseVTK.cmake
VTKLibraryDepends.cmake
VTKConfig.cmake
I should look in the build-scripts; somewhere should be a configure option to turn the 'creation' of the other files off. It is probably in:
25 CMAKE_DEFS="-DCMAKE_INSTALL_PREFIX:PATH=/opt/vtk
26 -DBUILD_TESTING:BOOL=OFF \ 27 -DBUILD_SHARED_LIBS:BOOL=ON \ 28 -DVTK_USE_HYBRID:BOOL=ON \ 29 -DVTK_USE_PARALLEL:BOOL=ON \ 30 -DVTK_USE_PATENTED:BOOL=ON \ 31 -DVTK_USE_RENDERING:BOOL=ON \ 32 -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ 33 -DVTK_USE_SYSTEM_JPEG:BOOL=ON \ 34 -DVTK_USE_SYSTEM_PNG:BOOL=ON \ 35 -DVTK_USE_SYSTEM_TIFF:BOOL=ON \ 36 -DVTK_USE_SYSTEM_ZLIB:BOOL=ON "
Cmake ist call with these options. Do you think I miss any?
Maybe, I should ask that in the vtk-maillist...
Greetings!
Fabian
There are no options to turn off the creation of those files; they contains options used to build vtk. How did you install vtk after compiling it? Also can you check if those files are in vtk's source tree?
Dragan
Hi Dragan,
using archlinux' package manager, which actually just copies the files to the set location.
No there are no such files in my source tree ...
I would say, I have the wrong source!?
http://kent.dl.sourceforge.net/sourceforge/vtk/VTK-4.2-LatestRelease.tar.gz
Greetings!
Fabian
What I meant was to check for those files in the directory where you compiled vtk. Some of the files are created during the compilation, others are simply modified using a template. For example your source tarball (http://kent.dl.sourceforge.net/sourceforge/vtk/VTK-4.2-LatestRelease.tar.gz ) contains VTKConfig.cmake.in which is used to create VTKConfig.cmake during the compilation. I would suggest you to install vtk manually without any package managers. Once you make it work, you can start debugging your package manager.
Finally, as Jonathan said, you need VTK-4.4 to run octaviz (you can compile it against VTK-4.2 but there will be problems running it).
Cheers,
Dragan
Dragan
Hi Dragan,
yes I looked in the directory where I compiled vtk; I could not find all of them. Now, I try to install by hand ... that produces those files. Strange!?
Now, the compilation runs for a while and stops with an error message:
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from vtkHierarchicalBoxApplyFilterCommand.cc:5:
/opt/vtk/include/vtk/vtkHierarchicalBoxApplyFilterCommand.h:31:54: error: vtkAMRBox.h: No such file or directory
make[3]: *** [vtkHierarchicalBoxApplyFilterCommand.oct] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Filtering] Error 2
make: *** [default_target] Error 2
The file vtkAMRBox.h is in the compilation directory, but not in the installed directory!?
Thanks and Greetings!
Fabian
This one is a VTK bug that should be fixed by now in CVS version of VTK. You can copy it manually if you want to avoid recompiling VTK.
Cheers,
Dragan
Hi,
thanks the compilation and installation worked, but now I have a different problem, which should not be to hard to handle. Running one of those examples, it does not find the vtk-libs:
octave:1> Cone
error: libvtkCommon.so: cannot open shared object file: No such file or directory
error: near line 13 of file `/usr/share/octave/2.1.71/site/m/octaviz/Examples/Cone.m'
I would say that they are included in my (bashrc):
export VTK_HOME=/opt/vtk/lib/vtk
export VTK_DIR=/opt/vtk/
export VTK_DATA_ROOT=/opt/vtk/share/data
export VTK_ROOT=/opt/vtk
export VTK_WRAPPING=$VTK_ROOT/Wrapping/Python
export PYTHONPATH=$PYTHONPATH:$VTK_ROOT:$VTK_ROOT/bin:$VTK_WRAPPING
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VTK_ROOT/bin:$VTKD_HOME:$VTKD_HOME/Plugins:$LD_LIBRARY_PATH
export PATH=$PATH:$VTK_ROOT:$PYTHONPATH
Did I forget any of the directories?
Fabian
Hi Fabian,
I don't know where did you install vtk shared libraries so I can't tell if you forgot any directories. The best way to make sure that everything is OK is to find the directory that contains libvtkCommon.so (should be in /opt/vtk/ or some of its subdirecotries), add it to ld.so.conf and run ldconfig (LD_LIBRARY_PATH does not work allways). If you can't log in as root that just make sure that the directory containing libvtkCommon.so is in your LD_LIBRARY_PATH.
Cheers,
Dragan
Hi Dragan,
I did not know the trick with ld.so.conf; it works now :-)
Thanks for the help!
Fabian
I'm glad it worked and I hope you'll like it! If there are any other problems (or any other comments) please do not hesitate to contact us again.
Dragan
Octaviz requires >=VTK-4.4.
Hi Jonathan,
thanks for your help, too!
It works :-)
Fabian