chrisballinger / Opus-iOS

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

cannot run C compiled programs in i386 x86_64 #12

Open Nandhacse94 opened 7 years ago

Nandhacse94 commented 7 years ago

i have successfully implemented the library files given by you. But when compiling bash build-libopus.sh, it shows Cannot Run C Compiled programs.

checking whether the C compiler works... no configure: error: in /Users/Documents/Opus-iOS-master/build/src/opus-1.1.4': configure: error: C compiler cannot create executables Seeconfig.log' for more details.

And when i remove i386 x86_64 in build-libopus.sh line Number 50. it successfully build the build-libopus.sh.

what is the reason behind the ARCHS=i386 x86_64 giving cannot run c compiled programs error?

obaskanderi commented 7 years ago

I believe that pull request https://github.com/chrisballinger/Opus-iOS/pull/11 addressed this issue

iwasrobbed commented 7 years ago

You may not have set your SDK version correctly either, such as if you are using later versions of Xcode:

screen shot 2017-03-31 at 12 46 47 pm

If you look in the config.log file within build/src/opus-1.1.3/, you'll find the error about halfway down.