Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compilation for iOS failing unless NNLSChroma is ignored #1351

Open
LDMFD opened this issue Jul 10, 2023 · 1 comment
Open

Cross compilation for iOS failing unless NNLSChroma is ignored #1351

LDMFD opened this issue Jul 10, 2023 · 1 comment
Labels

Comments

@LDMFD
Copy link

LDMFD commented Jul 10, 2023

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.

@dbogdanov
Copy link
Member

There is a problem with NNLSChroma in MacOS builds as well: #1299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants