Reputation: 939
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
Upvotes: 1
Views: 1599
Reputation: 12988
You can find a precompiled Speex library for iOS on github here: http://bit.ly/151x6E2
You'll also need the Ogg library. You can find that here: http://bit.ly/P40pxG
If you don't like using precompiled libraries, each of the above repositories now contain scripts to allow you to reproduce the builds. These rely on some additional utility scripts: http://bit.ly/19cYCQj
I have just updated the repository for arm64!
Upvotes: 1
Reputation: 939
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:
Upvotes: 3