Skip to content

Cmake Minimum Version Error when installing in MacOS M1 #90

@cojmeister

Description

@cojmeister

Hey, I'm trying to install px4 on macos, with apple silicon.
When running the command:
brew install px4-dev

I'm getting the following error:


...
==> Installing px4/px4/px4-dev dependency: px4/px4/fastcdr
/usr/local/Homebrew/Library/Taps/px4/homebrew-px4/Formula/fastcdr.rb:17: warning: conflicting chdir during another chdir block
==> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastcdr/1.0.22 ..
Last 15 lines from /Users/lucascohen/Library/Logs/Homebrew/fastcdr/01.cmake:
cmake
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastcdr/1.0.22
..

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

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

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


-- Configuring incomplete, errors occurred!

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/px4/homebrew-px4/issues


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions