Doubango For Android

在IMSDroid中要用到doubango的库文件,一开始在MAC下编译,运行svn_doubango_trunk/bindings/autogen.sh,出现一些错误,导致doubango无法编译


[frankwang@apollo-2 bindings]$ uname -a
Darwin apollo-2.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64


frankwang@apollo-2 bindings]$ sh ./autogen.sh 
--->CSharp...<---
--->Java...<---
Java(Google Dalvik)...
Google Android special tasks
sed: 1: "java/android/tinyWRAP_w ...": invalid command code j
sed: 1: "java/android/tinyWRAP_w ...": invalid command code j
sed: 1: "java/android/SipCallbac ...": invalid command code j
sed: 1: "java/android/DDebugCall ...": invalid command code j
sed: 1: "java/android/ProxyPlugi ...": invalid command code j
sed: 1: "java/android/ProxyAudio ...": invalid command code j
sed: 1: "java/android/ProxyAudio ...": invalid command code j
sed: 1: "java/android/ProxyVideo ...": invalid command code j
sed: 1: "java/android/ProxyVideo ...": invalid command code j
sed: 1: "java/android/XcapCallba ...": invalid command code j
sed: 1: "java/android/MsrpCallba ...": invalid command code j
--->Python...<---
--->Perl...<---
--->Ruby...<---


转到Fedora下运行autogen.sh就OK了

--->CSharp...<---
--->Java...<---
Java(Google Dalvik)...
Google Android special tasks
--->Python...<---
--->Perl...<---
--->Ruby...<---


可能是由于MAC下sed命令与Fedora下不同

[frankwang@apollo-2 bindings]$ sed -i 's/dynamic_cast/static_cast/g' java/android/tinyWRAP_wrap.cxx
sed: 1: "java/android/tinyWRAP_w ...": invalid command code j

MAC下面要写成如下格式:

sed -e 's/test/hello/g' -i '' test_sed.txt


这种格式在Linux下也能正常使用。


你可能感兴趣的:(android,linux,SVN,Google,command,X86)