Search code examples
iphoneiosspeex

Compiling Speex successful on iPhone simulator but failed on iOS device


I tried to compile Speex library on iOS following this tutorial and succeeded to do it in the iPhone simulator, but the build fails on a real device. I get some errors like "Use of undeclared identifier __m128", which looks like there are some problems with compiling C/C++ sources on a real device. I would be very thankful if someone could propose a solution.

Here is also my source code: https://github.com/artem888/SpeexTest

Artem


Solution

  • Fixed the problem:

    Needed to uncomment #define _USE_SSE in config.h , after that lib compiles and runs successfully.

    Many thanks to Cliff's tutorials:

    1. http://codeforfun.wordpress.com/2010/04/29/compile-speex-for-iphone/
    2. http://codeforfun.wordpress.com/2010/11/11/speex-on-iphone-explained/
    3. http://codeforfun.wordpress.com/2010/12/07/speex-on-iphone-explained-part-ii/