<div>Thanks for the replies, guys! While I can successfully compile for Mac OS X on the CLI, I want to use the Xcode GUI for compiling this for iOS. </div><div><br></div><div><a href="http://stackoverflow.com/questions/12516650/opus-audio-codec-encoding-for-iphone/12973685#12973685">http://stackoverflow.com/questions/12516650/opus-audio-codec-encoding-for-iphone/12973685#12973685</a> mentions &quot;For me it builds directly on Xcode. No need to use cross compilers. I am compiling it for iOS.&quot;</div>
<div><br></div><div>When I imported the source code in Xcode and tried to build (with &quot;Build Settings &gt; Valid Architectures&quot; set to &quot;armv7 armv7s&quot;), I saw the errors copied below:<br></div><div><br>
</div><div>Ld /Users/abidk/Library/Developer/Xcode/DerivedData/opus2-hkkhqrfaphrbsedkkqvdrdhwphop/Build/Products/Debug-iphonesimulator/opus2.app/opus2 normal i386
    </div><div>      cd /Users/abidk/opus/opus2
    </div><div>      setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    </div><div>      setenv PATH &quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin&quot;</div>
<div>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/abidk/Library/Developer/Xcode/DerivedData/opus2-hkkhqrfaphrbsedkkqvdrdhwphop/Build/Products/Debug-iphonesimulator -L/Users/abidk/opus/opus2/.. -F/Users/abidk/Library/Developer/Xcode/DerivedData/opus2-hkkhqrfaphrbsedkkqvdrdhwphop/Build/Products/Debug-iphonesimulator -filelist /Users/abidk/Library/Developer/Xcode/DerivedData/opus2-hkkhqrfaphrbsedkkqvdrdhwphop/Build/Intermediates/opus2.build/Debug-iphonesimulator/opus2.build/Objects-normal/i386/opus2.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/abidk/Library/Developer/Xcode/DerivedData/opus2-hkkhqrfaphrbsedkkqvdrdhwphop/Build/Products/Debug-iphonesimulator/opus2.app/opus2</div>
<div><br></div><div>Undefined symbols for architecture i386:
  </div><div>   &quot;_opus_decode&quot;, referenced from:
      </div><div>       _main in opus_demo.o
  </div><div>   &quot;_opus_decoder_create&quot;, referenced from:
      </div><div>       _main in opus_demo.o
  </div><div>   &quot;_opus_decoder_ctl&quot;, referenced from:
      </div><div>       _main in opus_demo.o
  </div><div>   &quot;_opus_decoder_destroy&quot;, referenced from:
      </div><div>       _main in opus_demo.o
  </div><div>   &quot;_opus_encode&quot;, referenced from:
      </div><div>      _main in opus_demo.o
  </div><div>   &quot;_opus_encoder_create&quot;, referenced from:
      </div><div>      _main in opus_demo.o
  </div><div>   &quot;_opus_encoder_ctl&quot;, referenced from:
      </div><div>      _main in opus_demo.o
  </div><div>   &quot;_opus_encoder_destroy&quot;, referenced from:
      </div><div>      _main in opus_demo.o
  </div><div>   &quot;_opus_get_version_string&quot;, referenced from:
      </div><div>     _main in opus_demo.o
  </div><div>   &quot;_opus_strerror&quot;, referenced from:
      </div><div>     _main in opus_demo.o
</div><div>ld: symbol(s) not found for architecture i386
</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation) </div><div><br></div><div>Any ideas about what step I am missing here?<br></div><div><br></div><div>Thanks in advance!</div><div>
<br></div><div>AK</div><br><div class="gmail_quote">On Thu, Mar 7, 2013 at 12:25 PM, Ralph Giles <span dir="ltr">&lt;<a href="mailto:giles@thaumas.net" target="_blank">giles@thaumas.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 13-03-07 12:05 AM, abid khan wrote:<br>
<br>
&gt; I am trying to compile the opus-1.0.2 source code for ios. When I import<br>
&gt; the files in Xcode and try to build, the build fails.<br>
<br>
<br>
<br>
&gt; How can we successfully compile opus using Xcode? Are there any special<br>
&gt; configurations?<br>
<br>
</div>It&#39;s fairly straightforward. I suggest using Makefile.unix as a guide to<br>
what defines to set.<br>
<br>
If you share specific error messages we can offer more specific guidance.<br>
<span class="HOEnZb"><font color="#888888"><br>
 -r<br>
<br>
</font></span></blockquote></div><br>