用 NDK + cygwin 编译 ffmpeg,无法建立临时文本

哈亚铁 发布于 2014/07/12 10:45
阅读 900
收藏 0

最近在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 "





加载中
0
huming0077
huming0077
做好了分享下啊
返回顶部
顶部