Problem Buildnig CSipSimple

218 views
Skip to first unread message

Kushagra Pandey

unread,
Jul 12, 2015, 5:54:26 AM7/12/15
to csipsim...@googlegroups.com
Hi

I am trying to build CSipSImple, but getting following problem. First, I am not sure why ndk-build not found is coming, as on directly running ndk-build in terminal, it runs. Secondly I guess it might be something related to silk, because it is not fetching the sources itself; I have tried downloading and placing Silk sources there, but the same error continues - may be I am putting the sources in some wrong way. So can anyone tell me how exactly to place silk sources there? Also is there anything with webrtc? As I am getting error in that only it seems. Kindly help me out.

make[1]: Entering directory `/home/kushagra/Projects/CSipSimple-trunk/CSipSimple/jni/silk'
Makefile:18: You must retrieve a valid silk sdk souce folder. Currently microsoft does not give a way to download from their website
# source checkout done
# Init done
make[1]: Leaving directory `/home/kushagra/Projects/CSipSimple-trunk/CSipSimple/jni/silk'
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: 1: ndk-build: not found
/bin/sh: 1: ndk-build: not found
make[1]: Entering directory `/home/kushagra/Projects/CSipSimple-trunk/CSipSimple/jni/webrtc'
Applying patch 000amreabi_r1789_bug.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: webrtc/sources/system_wrappers/source/Android.mk
|===================================================================
|--- webrtc.orig/sources/system_wrappers/source/Android.mk    2012-09-26 23:03:45.086734939 +0200
|+++ webrtc/sources/system_wrappers/source/Android.mk    2012-09-26 23:03:47.814734825 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: webrtc/sources/system_wrappers/source/rw_lock.cc
|===================================================================
|--- webrtc.orig/sources/system_wrappers/source/rw_lock.cc    2012-09-26 23:03:45.114734938 +0200
|+++ webrtc/sources/system_wrappers/source/rw_lock.cc    2012-09-26 23:04:04.238734137 +0200
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Patch 000amreabi_r1789_bug.diff does not apply (enforce with -f)
make[1]: *** [.patched_sources] Error 1
make[1]: Leaving directory `/home/kushagra/Projects/CSipSimple-trunk/CSipSimple/jni/webrtc'
make: *** [jni/webrtc/.patched_sources] Error 2


Thank you.

Farzan Doroodgar

unread,
Jul 19, 2015, 2:37:10 PM7/19/15
to csipsim...@googlegroups.com
Make sure your environment variables are correctly set as stated in HowToBuild docs.
Here's a sample on MacOSX:

export PATH=/usr/local/bin:$PATH

export ANDROID_NDK=/Volumes/Data/Proramming/Android/android-ndk-r9b

export ANDROID_SDK=/Volumes/Data/Proramming/Android/sdk

export PATH="/opt/local/bin:/opt/local/sbin:$PATH"

export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK

Kushagra Pandey

unread,
Sep 14, 2015, 3:18:25 PM9/14/15
to CSipSimple Development
Thanks! I was using relative path instead of absolute path.
Reply all
Reply to author
Forward
0 new messages