Last active
December 14, 2015 18:28
-
-
Save yosit/5129129 to your computer and use it in GitHub Desktop.
build pjsip from source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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