compile ffmpeg with android ndk r5b

前端 未结 6 770
栀梦
栀梦 2021-01-02 19:37

compile ffmpeg with android ndk r5b.

ffmpeg 0.6.1

android ndk r5b

cygwin 1.7

build reference url : http://www.cnblogs.com/scottwong/archive

6条回答
  •  耶瑟儿~
    2021-01-02 20:29

    I have had a hard time to get it working in Windows, but finally I've managed to do it! The previous posts were correct - there's a problem with Cygwin paths and Windows paths. I have tried the solution described in the post above as the very first thing, but it was not working. Finally I've understand the reason: even if you put into your build_android.sh file the Windows path, the config for FFmpeg still contains the wrong path.

    So in my case I have changed partially the config file in FFmpeg root directory from:

    #set temporary file name
    : ${TMPDIR:=$TEMPDIR} 
    : ${TMPDIR:=$TMP}
    : ${TMPDIR:=/tmp}
    

    to this:

    # set temporary file name
    #: ${TMPDIR:=$TEMPDIR}
    #: ${TMPDIR:=$TMP}
    : ${TMPDIR:=D:/InstallTools/Android/Cygwin_Root/tmp}
    

    After this, I got it compiling.

提交回复
热议问题