Android linphoneprepare_sources.sh

发布于 2025-01-06 05:36:01 字数 796 浏览 0 评论 0原文

我正在尝试编译适用于 android 的 linphone,但我无法设法通过 throw prepare_sources.sh。 我已经安装了所有依赖项并下载了ndk。有没有办法安装ndk?我没找到! 我正在 Ubuntu 10.11 中工作。 执行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.

非常感谢!

I am trying to compile linphone for android but I'm but I can't manage to pass throw prepare_sources.sh.
I have installed all dependencies and download ndk. Is there a way to install ndk? I didn't found it!
I'm working in Ubuntu 10.11.
The output I get when I execute prepare_sources.sh is:

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.

Thank you very much!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

三寸金莲 2025-01-13 05:36:01

如果您仍然需要答案...

打开终端,

  • 确保您已完成此操作:“git clone git://git.linphone.org/linphone-android.git --recursive” //* --recursive 部分是非常重要
  • ,然后执行以下操作: apt-get install autoconf automake libtool pkg-config
  • 转到您的项目根目录: cd/home/user/project //无论您的项目位于
  • 项目根目录中:export PATH=/home/user/android- ndk:$路径//无论你的android-ndk存储在哪里
  • ,然后运行./prepare_sources.sh //在你的项目根目录中,然后
  • 执行以下操作:/home/user/android-ndk/ndk-build //也在你的项目根目录中

If you still need an answer...

Open your terminal

  • make sure you have done this: "git clone git://git.linphone.org/linphone-android.git --recursive" //*the --recursive part is very important
  • then do this: apt-get install autoconf automake libtool pkg-config
  • go to your project root: cd/home/user/project //wherver your project is
  • in your project root: export PATH=/home/user/android-ndk:$PATH //wherever your android-ndk is stored in
  • then run ./prepare_sources.sh //in your project root still
  • after that do this: /home/user/android-ndk/ndk-build // in your project root too
征棹 2025-01-13 05:36:01

我在 Mac 上工作,但遇到了同样的错误,我发现此文件中的一些更改对我有帮助:

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

第 45 行,将其更改为 :

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 -我

希望它有帮助。

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

I work in Mac but I get the same error and I found out that some changes in this file helped me:

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

Line 45, change it to :

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

and do:


  • Go to root directory of the downloaded project through command: cd /home/your_downloaded_project_path/
  • Fire the command: ./prepare_sources.sh /home/android-ndk-r7b/
  • Go to root directory of NDK folder through command: cd /home/android-ndk-r7b/
  • Fire the command: export NDK_PROJECT_PATH=/home/your_downloaded_project_path/
  • ./ndk_build clean
  • ./ndk_build -i

Hope it helps.

NB:
I found it from here: https://groups.google.com/a/webmproject.org/forum/#!msg/webm-discuss/OdEWb-rBBhw/_GMux8jTOnoJ

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文