Skip to content

cmake minimum version error #2339

Open
CMU-Perceptual-Computing-Lab/caffe
#6

Description

@Ishankoradia

I am trying to install open pose and run a basic demo. Trying to follow instructions here https://cmu-perceptual-computing-lab.github.io/openpose/web/html/doc/md_doc_installation_0_index.html#cmake-configuration

I have been at it for hours now but my cmake configuration keeps failing with the error below.

Image

The cmake version on my macOS pc is cmake version 4.0.0. I dont understand whats the problem here.

Would be great if someone can help out. Thank you in advance.

Activity

  1. greeshiee commented on Apr 2, 2025

    @greeshiee

    This is an issue with cmake_minimum_required. Check your CMakeLists.txt files (there's multiple) and change the parameter from any older version like 3.x to 3.5. It should resolve the issue.

  2. Owenyen35441653 commented on Apr 8, 2025

    @Owenyen35441653

    I have the same question.

  3. avacado-a commented on Jul 3, 2025

    @avacado-a

    I had the same problem and applied the changes in the pull request, but when I selected BUILD_PYTHON to On in CMake, PyBind11 starting giving similar error, because it has "cmake_minimum_required(VERSION 2.8.12)"
    Similarly, in 18 other places in the project, there are similar cmake_minimum_required(VERSION X.X.X) below 3.5
    After replacing all of these instances, you get another error:
    Found PythonInterp: C:/-----/-----/.pyenv/pyenv-win/shims/python3.7
    CMake Error at 3rdparty/pybind11/tools/FindPythonLibsNew.cmake:95 (message):
    Python config failure:

    Call Stack (most recent call first):
    3rdparty/pybind11/tools/pybind11Tools.cmake:16 (find_package)
    3rdparty/pybind11/CMakeLists.txt:33 (include)

    I do not believe this is a related error, but it may be.

  4. kdxu11 commented on Jul 30, 2025

    @kdxu11

    cmake v3.28.6 works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions