[FFmpeg-trac] #3627(undetermined:new): How to fix build_android.sh: function: not found error?

FFmpeg trac at avcodec.org
Fri May 9 16:18:24 CEST 2014


#3627: How to fix  build_android.sh: function: not found error?
-------------------------------------+-------------------------------------
             Reporter:  vinoth       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by vinoth):

 build_android.sh this my script file to get a lib and all together in one
 folder and use it in android eclipse as a library file to seperate audio
 from video file by audio video seperate command.

 #!/bin/bash

 NDK=$HOME/Desktop/adt/android-ndk-r9

 SYSROOT=$NDK/platforms/android-9/arch-arm/

 TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

 function build_one

 {

 ./configure \

     --prefix=$PREFIX \

     --enable-shared \

     --disable-static \

     --disable-doc \

     --disable-ffmpeg \

     --disable-ffplay \

     --disable-ffprobe \

     --disable-ffserver \

     --disable-avdevice \

     --disable-doc \

     --disable-symver \

     --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \

     --target-os=linux \

     --arch=arm \

     --enable-cross-compile \

     --sysroot=$SYSROOT \

     --extra-cflags="-Os -fpic $ADDI_CFLAGS" \

     --extra-ldflags="$ADDI_LDFLAGS" \

     $ADDITIONAL_CONFIGURE_FLAG

 make clean

 make

 make install

 }

 CPU=arm

 PREFIX=$(pwd)/android/$CPU

 ADDI_CFLAGS="-marm"

 build_one

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3627#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list