我正在使用这个存储库来构建 ffmpeg 静态库,其中包括 x264、libpng 等,请
访问此链接 https://github.com/writingminds/ffmpeg-android
我使用 Windows 7 作为主机,使用 ubuntu 15.10 (_64) 作为客户操作系统,使用 VMware Workstation 12 和
安卓-ndk-r11b-linux-x86_64
i do have Prebuilt libraries , but now i want it without PIE support
我在构建时在 x264 文件夹中的 config.log 中收到此错误
通过
./android_build.sh
这是日志:
x264 configure script
Command line options: "--cross-prefix=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux
/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-gcc
checking whether /mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-gcc
--sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot works... no
Failed commandline was:
--sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot --sysroot=/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/sysroot -lm -o conftest
/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: fatal error:
conftest: Input/output error
Failed program was:
int main (void) { return 0; }
DIED: No working C compiler found.
ushare 是我在 windows 和 ubuntu 之间的共享文件夹
我花了将近一个星期,试图解决我遇到的每一个错误。
这些错误就像永无止境,1个解决方案会产生10个错误
我研究了一个 批号对于这个图书馆
提前非常感谢。
Also i thought that x264 library might have poroblem ,so i tried to disable it but next library "libpng" also had Same log Error
我认为问题在于输入/输出错误(显然)
日志中的这一行让我感到困惑(那些/../../)
/mnt/hgfs/uShare/ffmpeg-android/toolchain-android/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: fatal error:
它就像两个文件夹重叠地址...
提前非常感谢。
请不要对我苛刻,这是我的第一次,多亏了这件事......
最佳答案
好吧,我解决了我的问题。问题出在NDK中,我在windows中提取它并在ubuntu上使用它。后来我用ubuntu解压,发现构建的工作。
希望这对 future 的新用户有所帮助!
关于android - x264 构建错误 - Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36132321/