cmakeinstallationvtkmake-install

VTK install error cannot find libvtkCommonCore-6.3.so.1


I'm trying to install VTK but I'm getting the following error

 CMake Error at Common/Core/cmake_install.cmake:47 (file):
    file INSTALL cannot find
  "/home/VTK-6.3.0/VTKBuild/lib/libvtkCommonCore-6.3.so.1".
  Call Stack (most recent call first):
  cmake_install.cmake:100 (include)

These are the steps I followed

    cd VTKBuild
    cmake ..\
    -D"CMAKE_INSTALL_PREFIX:PATH=/home/VTK-6.3.0/VTKBuild" 
    make 
    make install

Can anyone point me to what might be going wrong


Solution

  • I had to turn off shared library option, these are the configuration I used to build VTK

    mkdir VTKBuild
    cd VTKBuild
    cmake ..\
     -DCMAKE_INSTALL_PREFIX=/home/VTK-6.3.0/VTKBuild \
     -DBUILD_SHARED_LIBS:BOOL=OFF \
     -DCMAKE_BUILD_TYPE=Release \
     -DVTK_USE_SYSTEM_ZLIB:BOOL=ON
    
    
     make 
     make install