Skip to content

ubuntu 20.04 ros noetic catkin_make failed #159

@Tasy-code

Description

@Tasy-code

Before opening an issue
If the issue is about build errors:

If the issue is about calibration procedure and results:

If the issue is about the algorithm:

Describe the bug
A clear and concise description of what the bug is.
In Ubuntu 20.04 ros noetic ,I installed a newer Cmake as the athor said.

tsy@tsyros:~$ cmake --version
cmake version 4.1.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

I am sure that I have installed all the dependences(Sophus、Ceres_solver、GTSAM、Eigens)

When I try to catkin_make,it cant work.

tsy@tsyros:~/direct_visual_lidar_calibrate$ catkin_make
Base path: /home/tsy/direct_visual_lidar_calibrate
Source space: /home/tsy/direct_visual_lidar_calibrate/src
Build space: /home/tsy/direct_visual_lidar_calibrate/build
Devel space: /home/tsy/direct_visual_lidar_calibrate/devel
Install space: /home/tsy/direct_visual_lidar_calibrate/install

Running command: "cmake /home/tsy/direct_visual_lidar_calibrate/src -DCATKIN_DEVEL_PREFIX=/home/tsy/direct_visual_lidar_calibrate/devel -DCMAKE_INSTALL_PREFIX=/home/tsy/direct_visual_lidar_calibrate/install -G Unix Makefiles" in "/home/tsy/direct_visual_lidar_calibrate/build"

CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots and sample data
If applicable, add screenshots and sample data to reproduce your problem.

Image Image

Environment:

  • OS: [e.g. Ubuntu 20.04]
  • ROS version: [e.g., ROS1 noetic]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions