chrisballinger / Opus-iOS

iOS build scripts for libopus
MIT License
221 stars 97 forks source link

compilation error (not an object file) #28

Open jazzalex opened 2 years ago

jazzalex commented 2 years ago

Hi all,

I have been trying to compile Opus for iOS on Monterey 12.2.1 (Intel):

I have created /build/src folder and place the latest opus1.3.1 tar ball into it, changd the SDK issue and ran the build-libopus.sh script – so far it looked fine except that it eventually bails out with the following:

CCLD libopus.la error: /opt/local/bin/ranlib: library member: .libs/libopus.a(bands.o) is not an object file (not allowed in a library with multiple architectures) error: /opt/local/bin/ranlib: library member: .libs/libopus.a(celt.o) is not an object file (not allowed in a library with multiple architectures) error: /opt/local/bin/ranlib: library member: .libs/libopus.a(celt_encoder.o) is not an object file (not allowed in a library with multiple architectures) error: /opt/local/bin/ranlib: library member: .libs/libopus.a(celt_decoder.o) is not an object file (not allowed in a library with multiple architectures)

etc. for further object files.

Can anyone help to resolve this issue ?

Thanks in advance, best

Alex

jazzalex commented 2 years ago

I just tried it with a BigSur machine where it worked without the above problem. So it seems to be OS version related.