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

Project not buildable in Sierra / Xcode 8? #10

Open
stelabouras opened this issue Dec 5, 2016 · 2 comments
Open

Project not buildable in Sierra / Xcode 8? #10

stelabouras opened this issue Dec 5, 2016 · 2 comments

Comments

@stelabouras
Copy link

Hey Chris!

I tried to build OpusKit using the latest iOS stable release SDK (10.1) and unfortunately I get errors when running the build script.

Using opus-1.1.3.tar.gz
Building without ccache
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-apple-darwin16.1.0
checking host system type... x86_64-apple-darwin16.1.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/stelabouras/Development/OpusKit/Submodules/Opus-iOS/build/src/opus-1.1.3':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

config.log says that instead of gcc the system uses clang and it cannot recognize some commands:

clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3534: $? = 1
configure:3523: gcc -qversion >&5
clang: error: unknown argument: '-qversion'

Any ideas?

@stelabouras
Copy link
Author

Update: If I remove i386 and x86_64 from the ARCHS string (line 50 of the build script), it builds successfully.

@stelabouras
Copy link
Author

Finally! I was able to get it to build by adding "--host=x86_64" on line 107.

Should I make a PR about it?

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

No branches or pull requests

1 participant