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

那年仲夏 提交于 2019-12-10 11:24:36

问题


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:


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


来源:https://stackoverflow.com/questions/39003941/vtk-install-error-cannot-find-libvtkcommoncore-6-3-so-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!