2012-02-17 137 views
1

我想为android编译linphone,但是我却无法设法传递throw prepare_sources.sh。 我已经安装了所有依赖项并下载了ndk。有没有办法安装ndk?我没有找到它! 我正在使用Ubuntu 10.11。 输出,当我执行prepare_sources.sh是我得到:Android linphone prepare_sources.sh

Applying patch to ffmpeg 
patching file submodules/externals/ffmpeg/libavcodec/arm/int_neon.S 
Hunk #1 FAILED at 35. 
Hunk #2 FAILED at 55. 
2 out of 2 hunks FAILED -- saving rejects to file submodules/externals/ffmpeg/libavcodec 
/arm/int_neon.S.rej 
cd: 12: can't cd to /home/glot/git/linphone-android/submodules/libilbc-rfc3951 
iLBC prepare stage failed 
find: «../../libvpx/»: No existe el archivo o directorio 
cp: el destino, «../../libvpx/», no es un directorio 
VP8 prepare stage failed. 
cd: 16: can't cd to /home/glot/git/linphone-android/submodules/mssilk 
SILK audio plugin prepare state failed. 

非常感谢您!

回答

2

如果您仍需要一个答案......

打开终端

  • 确保你已经做到了这一点:“混帐混帐克隆://git.linphone.org/linphone-android。 git --recursive“// * --recursive部分非常重要
  • 然后执行以下操作:apt-get install autoconf automake libtool pkg-config
  • 转至您的项目根目录:cd/home/user/project// wherver您的项目是
  • 在你的项目根目录下:export PATH =/home/user/android-ndk:$ PATH //无论你的android-ndk存储在哪里
  • 然后运行./prepare_sources.sh //在你的项目中仍然有
  • 之后,这样做:/ home/user/android-ndk/ndk-build //在您的项目根目录中也是如此
1

我在Mac上工作,但我得到相同的错误,我发现这个文件帮我:45

linphone-android/submodules/externals/libvpx/build/make/gen_asm_deps.sh 

线,将其更改为:

includes=$(LC_ALL=C egrep -i "include +\"[a-z0-9_/]+\.${sfx}" $srcfile | 

做:cd /home/your_downloaded_project_path/

  • 消防命令:./prepare_sources.sh /home/android-ndk-r7b/
  • 经过命令根NDK文件夹的目录


    • 经过命令根下载项目的目录: cd /home/android-ndk-r7b/
    • 启动命令:export NDK_PROJECT_PATH=/home/your_downloaded_project_path/
    • ./ndk_build clean
    • ./ndk_build -i

    希望它能帮助。

    注: 我发现它从这里:https://groups.google.com/a/webmproject.org/forum/#!msg/webm-discuss/OdEWb-rBBhw/_GMux8jTOnoJ