When installing ceres on ubuntu18.04, the error CMake Error at cmake/FindGlog.cmake:350+ solution is reported

1. Download ceres

git clone https://github.com/ceres-solver/ceres-solver

2. Install dependencies

sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev

Note that for the libcxsparse library, different systems have different endings.

Such as: ubuntu18.04--libcxsparse3

         ubuntu16.04--libcxsparse3.1.4

3. Compile and install

Under ceres-solver

mkdir build
cd build
cmake ..
make
sudo make install

Problems that arise:

When I execute cmake.. an error occurs, as shown in the figure:

 Solution:

After querying, I learned that my cmake version was too low (mine was 3.10.2), so just upgrade cmake.

Solution steps: (Just follow this blog step by step)

cmake upgrade and update (ubuntu18.04)_Doctor_Wu_'s blog-CSDN blog_cmake upgrade

result:

After the cmake version is updated, cmake again in the original directory, success!

 

Guess you like

Origin blog.csdn.net/m0_72522488/article/details/126661377