I happened to realize it’s NOT quite convenient to build VTK from source WITHOUTmemkind. So, I enabled memkind VTK_USE_MEMKIND ON.
However, default repository of Ubuntu 22.04, or from source of memkind, there is NO support for CMake build. I mean, it seems there would be NO MEMKIND_DIR .
Furthermore, when I tried to build PCL based on VTK, it’s NOT able to find MEMKIND::MEMKIND …
Yes, I did meet some ERRORs when I tried to build PCL:
For PCL
During Configuration, I set MEMKIND_DIR MEMKIND_DIR-NOTFOUND
But, when I tried to configure, I got warning:
CMake Warning at /usr/local/lib/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:574 (find_package):
By not providing "FindMEMKIND.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "MEMKIND", but
CMake did not find one.
Could not find a package configuration file provided by "MEMKIND" with any
of the following names:
MEMKINDConfig.cmake
memkind-config.cmake
Add the installation prefix of "MEMKIND" to CMAKE_PREFIX_PATH or set
"MEMKIND_DIR" to a directory containing one of the above files. If
"MEMKIND" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/vtk-9.1/vtk-config.cmake:150 (include)
cmake/pcl_find_vtk.cmake:25 (find_package)
CMakeLists.txt:390 (include)
Could not find the VTK package due to a missing dependency: MEMKIND
For FreeCAD
Almost the same, but configure gave me an ERROR:
CMake Error at /usr/local/lib/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:574 (find_package):
By not providing "FindMEMKIND.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "MEMKIND", but
CMake did not find one.
Could not find a package configuration file provided by "MEMKIND" with any
of the following names:
MEMKINDConfig.cmake
memkind-config.cmake
Add the installation prefix of "MEMKIND" to CMAKE_PREFIX_PATH or set
"MEMKIND_DIR" to a directory containing one of the above files. If
"MEMKIND" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/vtk-9.1/vtk-config.cmake:150 (include)
cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:29 (find_package)
CMakeLists.txt:58 (SetupSalomeSMESH)
Configuring incomplete, errors occurred!
I build it without memkind all the time. It seems you did build it with memkind. If that’s the case, just about everything will also need to know because CommonCore requires it.