Skip to content

Instantly share code, notes, and snippets.

@yosit

yosit/gist:5129129

Last active Dec 14, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.