ERROR:'S_IFLINK'未声明(首次在此函数中使用)
[ 0%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c: In function 'H5F_build_actual_name':
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:12: error: 'S_IFLNK' undeclared (first use in this function)
解决办法:
$ vim Utilities/vtkhdf5/ConfigureChecks.cmake
-IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+IF (CMAKE_SYSTEM MATCHES "Linux")
# Linux Specific flags
ADD_DEFINITIONS (-D_POSIX_SOURCE -D_BSD_SOURCE)
OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
IF (HDF5_ENABLE_LARGE_FILE)
SET (LARGEFILE 1)
ENDIF (HDF5_ENABLE_LARGE_FILE)
-ENDIF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+ENDIF (CMAKE_SYSTEM MATCHES "Linux")
ERROR:‘GLintptr’ has not been declared
解决办法:
$ vim Rendering/vtkXOpenGLRenderWindow.cxx
取消本行的注释:// #define GLX_GLXENT_LEGACY