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 CMake
wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz
tar -zvxf cmake-3.20.0.tar.gz
cd cmake-3.20.0
./bootstrap
make -j8
Install as package
So that we can easily remove it later文章来源:https://www.toymoban.com/news/detail-430110.html
sudo apt-get install checkinstall
# this will take more time than you expect
sudo checkinstall --pkgname=cmake --pkgversion="3.20-custom" --default
# reset shell cache for tools paths
hash -r
Verify installation
apt-cache policy cmake
cmake --version
which cmake
Uninstall
This step only if you want to revert back文章来源地址https://www.toymoban.com/news/detail-430110.html
- 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 interest apt-cache policy cmake # switch to different version (from policy above) apt-get install cmake=VERSION
到了这里,关于将cmake版本升级(ubuntu18)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!