I’m new to apple development, For my Uni project I try developing an application for iPhone using PocketSphinx to recognise speech commands…
I used the “build_for_iphoneos.sh” script available in PocketSphinx SVN and SphinxBase. Program working without any issues when i try it on simulator, today I try to deploy on device and it’s giving me this error? can any one help me solve this please?
Error:
ld: warning: in /Users/me/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/lib/libpocketsphinx.a, file is not of required architecture
ld: warning: in /Users/me/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/lib/libsphinxbase.a, file is not of required architecture
and the rest of the references to functions report undefined error!
any help? Thanks. Jeevan
Solved…
When following instructions given by Sphinx, everyone will go through the order mentioned in their Readme File. Which is:
Because Simulator is i386 architecture based, when calling “./build_for_iphoneos.sh device” it’s still keeping ht previous cache and ignoring armv6 architecture change…
To solve this problem,
Call “Make Clean” between them…
Hope this helps others…
Thanks “lucius” for his help.. i’ve learned something about Lipo tool… 🙂