用 NDK + cygwin 编译 ffmpeg,无法建立临时文本
最近在windows平台下做ffmpeg到安卓的移植。用ndk r5+cygwin 处理 ffmpeg 目录下的config.sh文件时,路径全部设置正确,然后报这个错误:
C compiler test failed.
网上找了一下是需要设置
$export TMPDIR=d:/temp
可是我设置完了之后,cygwin又给我报无法建立临时文件的错误
$ ./config.sh .nable to create temporary file in d:/temp If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.
我的config.sh文件如下
#!/bin/bash export TMPDIR="d:/temp" PREBUILT=${ndk}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows PLATFORM=android-4 ARCH=--arch=arm ./configure ${ARCH} --target-os=linux --enable-cross-compile --cross-prefix=${PREBUILT}/bin/arm-linux-androideabi- --extra-cflags=" -fPIC -DANDROID -std=c99 " --enable-version3 --enable-gpl --enable-nonfree --disable-stripping --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-encoders --disable-muxers --disable-devices --disable-protocols --enable-protocol=file --enable-avfilter --disable-network --disable-mpegaudio-hp --disable-avdevice --disable-asm --enable-neon --enable-armv5te --sysinclude=${NDK_ROOT}/platforms/${PLATFORM}/arch-arm/usr/include --extra-ldflags="-Wl,-rpath-link=${NDK_ROOT}/platforms/${PLATFORM}/arch-arm/usr/lib -L${NDK_ROOT}/platforms/${PLATFORM}/arch-arm/usr/lib -nostdlib ${NDK_ROOT}/platforms/${PLATFORM}/arch-arm/usr/lib/crtbegin_static.o ${NDK_ROOT}/platforms/${PLATFORM}/arch-arm/usr/lib/crtend_android.o -lc -lm -ldl "
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做好了分享下啊