Skip to content

Instantly share code, notes, and snippets.

@yosit
Last active December 14, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosit/5129129 to your computer and use it in GitHub Desktop.
Save yosit/5129129 to your computer and use it in GitHub Desktop.
build pjsip from source.
build pjsip
​http://svn.pjsip.org/repos/pjproject/trunk
cd /path/to/your/pjsip/dir
for armv7
ARCH='-arch armv7' ./configure-iphone
or for armv7s
ARCH='-arch armv7s' ./configure-iphone
or for simulator
export DEVPATH=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc
CFLAGS="-O2 -m32 -miphoneos-version-min=4.0" LDFLAGS="-O2 -m32" ./configure-iphone
settings are in
- 'user.mak'
- 'pjlib/include/pj/config_site.h' make sure it contains this:
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
make dep && make clean && make
#will get the fourth column from a space delimited file
cut -d" " -f4 grep.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment