Building on Mobile
Building on Iphone
Use pocketsphinx as a part of OpenEars toolkit
http://www.politepix.com/openears/
Building on Android
See the corresponding part of the tutorial
http://cmusphinx.github.io/wiki/tutorialandroid
Building on Raspberry Pi
Build as usual, just make sure Alsa is configured properly to input audio from the microphone
Building on Windows Phone
Please checkout demo project here, modify it according to your needs: