VTK install error cannot find libvtkCommonCore-6.3

2019-06-01 23:10发布

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

1条回答
干净又极端
2楼-- · 2019-06-01 23:40

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
查看更多
登录 后发表回答