xiph / xiph/opus

CMake configure fails on arm MacOs

Open
#407 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.3k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

If I try to configure using CMake on an arm Mac, then the configure will fail.
The sequence is:

  • OpusConfig.cmake will set OPUS_MAY_HAVE_NEON to ON.
  • OpusFunctions.cmake will set RUNTIME_CPU_CAPABILITY_DETECTION to 0.
  • CMakeLists.txt will complain that these are not compatible and fail with message(ERROR "Runtime cpu capability detection needed for MAY_HAVE_NEON")

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by configuring Opus with CMake on an ARM Mac. Read OpusConfig.cmake, OpusFunctions.cmake, and the relevant checks in CMakeLists.txt to trace the incompatible settings. Done means configuration completes without the runtime CPU capability detection error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.