KelvinJin/libsox-iOS

Build is failing

Chethan-21 opened this issue · 2 comments

Hi kelvinJin,

I have followed the steps given to build libsox.a but it is failing. Could you please help me...Thanks

./configure: line 15073: syntax error near unexpected token OPUS,' ./configure: line 15073: PKG_CHECK_MODULES(OPUS, opusfile, , using_opus=no)'
make: Nothing to be done for `install'.
cp: /Users/kodiak/Documents/SOX/sox-code/iOS-arm64/lib/libsox.a: No such file or directory
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: build/sox.h

Hey @Chethan-21, thanks for submitting the issue.

It seems sox source code has been updated a few times recently and the master branch might be broken.

Can you try switching to the latest release commit by: git checkout tags/sox-14.4.2 -b sox-14.4.2 and then follow the steps?

I did a test with the latest Xcode 10 and it works for me. Let me know if you encounter any other issues!

Actually, I just tried with master branch and it seems to be working okay for me as well. Maybe it's because you're missing pkg-config? mdbtools/mdbtools#48

Have a look at this issue #1, he had similar errors. I suspect if you redo the steps from the beginning maybe it will solve your problem.

Worst case, are you able to use the precompiled version listed in README?