xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
690 stars 405 forks source link

ffmpeg android compile failed #3029

Open yangyun0123456 opened 10 months ago

yangyun0123456 commented 10 months ago

Xmake 版本

v2.8.6

操作系统版本和架构

ubuntu

描述问题

ffmpeg android compile failed : ndk toolchains need update to llvm.

期待的结果

ffmpeg android compile pass

工程配置

xrepo install -p android --ndk=~/Android/Sdk/ndk/25.1.8937393 ffmpeg

附加信息和错误日志

Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar: not found

waruqi commented 10 months ago

It works for me.

ruki-2:Downloads ruki$ xrepo install -p android --ndk=~/files/android-ndk-r20b/ ffmpeg
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> ffmpeg 6.1 
please input: y (y/n/m)

  => install ffmpeg 6.1 .. ok          
yangyun0123456 commented 10 months ago

you ndk version is old. New version ndk use llvm-ar llvm-ranlib.