problem:
— Found Threads: TRUE
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find CXSparse: Found unsuitable version “3.1.9”, but required is
at least “3.2.0”
solution:
Current version in OS
Check current version
apt-cache policy cmake
Build CMake 3.20
# get and build CMakewget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gztar -zvxf cmake-3.20.0.tar.gzcd cmake-3.20.0./bootstrapmake -j8
Install as package
So that we can easily remove it later
sudo apt-get install checkinstall# this will take more time than you expectsudo checkinstall --pkgname=cmake --pkgversion="3.20-custom" --default# reset shell cache for tools pathshash -r
Verify installation
apt-cache policy cmakecmake --versionwhich cmake
Uninstall
This steponlyif you want to revert back
- we don’t want to remove cmake
- this could cause removal of packages that depend on it (e.g. ROS)
- instead we switch back to previous version
# idenitfy version of interestapt-cache policy cmake# switch to different version (from policy above)apt-get install cmake=VERSION