Skip to content

Cross compilation for iOS failing unless NNLSChroma is ignored #1351

Open
@LDMFD

Description

@LDMFD

These are the steps I'm following;

python3 waf configure --cross-compile-ios --lightweight= --fft=ACCELERATE --build-static
python3 waf install

However, after adding libessentia.a, the build fails with;

Error parsing 'libessentia.a[281](nnls.c.1.o)': building for 'iOS', but linking in object file built for 'macOS'

if I run otool -lv libessentia.a | grep -A5 LC_BUILD I get:

  cmdsize 24
 platform MACOS
    minos 13.0
      sdk 13.3
   ntools 0

Following the hint of the problem lying with nnls.c, I added --ignore-algos=NNLSChroma which seems to solve the problem, and indeed the otool command output no longer includes MACOS.

n.b. I got the otool command from this forum post, which might be relevant, https://developer.apple.com/forums/thread/662611

I'm building on MacOS Ventura 13.4, with Xcode 15.0 beta 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions