# download wget https://github.com/Kitware/CMake/archive/refs/tags/v2.8.12.2.tar.gz tar -xvf v2.8.12.2.tar.gz && cd cmake-2.8.12.2 # build and instrall mkdir build && cd build ../bootstrap --prefix=$HOME/local/cmake/cmake-2.8.12 make && make install
CMake 2.8 与 qt5 冲突
CMake Warning at Modules/FindQt4.cmake:659 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as “/usr/lib/x86_64-linux-gnu” but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
Tests/RunCMake/CMakeLists.txt:104 (find_package)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:2 (message):
Qt 5 Core module requires at least CMake version 3.1.0
Call Stack (most recent call first):
Tests/RunCMake/CMakeLists.txt:105 (find_package)