Opened 11 years ago
Closed 11 years ago
#3627 closed defect (needs_more_info)
How to fix build_android.sh: function: not found error?
Reported by: | vinoth | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I'm trying to separate audio and video from video file. After searching on the internet I came to know it can be done using FFMPEG.
Now I need to build FFMPEG library file for my Android application using Ubuntu version 14.04 (64-bit) NDK R9 ffmpeg 2.2.2 while building it causes an error below line:
Logcat:
build_android.sh: 9: build_android.sh: function: not found.
kdir: cannot create directory ‘/usr/local/share/man/man3’: Permission denied
make: * [install-man] Error 1
build_android.sh: 67: build_android.sh: build_one: not found
To fix that issue I searched on the internet and I got a solution. Either in ./build_android.sh or in ./configure you have an extra M. Open the files with vi and clean them from this garbage.
I've fixed it and tried by fixing some other solution also but remains the same.
How can I fix this?
Change History (6)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Analyzed by developer: | unset |
---|---|
Component: | ffmpeg → undetermined |
Priority: | important → normal |
What is build_android.sh
?
Only the native FFmpeg configure script is supported here (I expect it to work fine), if you don't want to use it you are on your own.
comment:3 by , 11 years ago
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.so please help me friend orelse if you have some other idea guide me i'll be thankful to you.
#!/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
comment:4 by , 11 years ago
As said, we cannot support such scripts.
Please test your configure line (without variables) and run make etc. If it fails, run the failing command a second time and post the used configure line and the output of your second, repeated failing command here.
comment:5 by , 11 years ago
ffmpeg configure file is as it is i didn't make any change I'd just included a script file to get a library file .I'd follwed the step to build android lib in the link roman10 http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/comment-page-1/
comment:6 by , 11 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
Please reopen this ticket if you can provide your actual configure line (without any variables) and the complete failure output of a repeated, failing run of make.
Replying to vinoth: