Question #695081 on Yade changed: https://answers.launchpad.net/yade/+question/695081
Su Kan posted a new comment: > Try to change this line: > > https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/common/Gl1_PotentialBlock.cpp#L665 > > into > #if ((VTK_MAJOR_VERSION <= 8) and (VTK_MINOR_VERSION < 2)) or (VTK_MAJOR_VERSION <= 7) Cheers! It works! Now I can build yade-2021.01a successfully with all features enabled. Now this question is ansered. Thanks again Janek. Below are the hacks: 1. add system cmake module path to CMAKE_MODULE_PATH, this fixes openmp not found https://gitlab.com/yade-dev/trunk/-/blob/master/CMakeLists.txt#L102 ``` set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake") + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/share/cmake-3.19/Modules/) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/share/cmake/Modules/) ``` 2. Set CHUNKSIZE=1 (default option) 3. Change this line: https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/common/Gl1_PotentialBlock.cpp#L665 ``` - #if VTK_MAJOR_VERSION < 9 + #if ((VTK_MAJOR_VERSION <= 8) and (VTK_MINOR_VERSION < 2)) or (VTK_MAJOR_VERSION <= 7) ``` -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp