Hi Guys,

I followed this tutorial: 
http://slworkthings.wordpress.com/2010/02/23/ffmpeg-and-android-mk/
as it was referenced here:
http://groups.google.com/group/android-developers/browse_thread/thread/4a6de9f74238e16e/2d2a7cad0154a289?lnk=gst&q=ffmpeg#2d2a7cad0154a289

Now I'm stuck in between .configure and make - maybe you can help me
out.

I created a modified configure script like this:

--------------------------------------------
#!/bin/bash

NDK=/home/sgreve/Projekte/android-ndk-r4
PREBUILT=$NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1
PROJHOME=pwd

./configure --target-os=linux \
--arch=armv41 \
--enable-cross-compile \
--cc=$PREBUILT/bin/arm-eabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-eabi- \
--nm=$PREBUILT/bin/arm-eabi-nm \
--extra-cflags="-fPIC -DANDROID " \
--enable-static \
--disable-shared \
--disable-asm \
--disable-yasm \
--prefix=$PROJHOME \
--extra-ldflags="-Wl,-T,$PREBUILT/arm-eabi/lib/ldscripts/armelf.x -Wl,-
rpath-link=$NDK/build/platforms/android-3/arch-arm/usr/lib -L$NDK/
build/platforms/android-3/arch-arm/usr/lib -nostdlib $NDK/build/
prebuilt/linux-x86/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1/crtbegin.o
$NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1/
crtend.o -lc -lm -ldl"

# exclude all subdir.mak and config.mak includes
# in all the makefiles
for file in $(find . -name "Makefile")
do
        echo modifying $file
        sed -i 's/include config.mak/#include config.mak/g' $file
        sed -i 's/include config.mak/#include subdir.mak/g' $file
        sed -i 's/##/#/g' $file
done

exit
--------------------------------------------

>From my point of view this scirpt does well as it finishes saying:
----------------------------------------------------
License: LGPL version 2.1 or later
Creating config.mak and config.h...
config.h is unchanged
libavutil/avconfig.h is unchanged
( ... + my modified output )
----------------------------------------------------

But when I then try to use ndk-build it says:
----------------------------------------------------
/home/sgreve/workspace/ffmpeg-android/jni/libavcodec/../av.mk:3: /home/
sgreve/workspace/ffmpeg-android/jni/libavcodec/../config-arm.mak: No
such file or directory
/home/sgreve/workspace/ffmpeg-android/jni/libavformat/../av.mk:3: /
home/sgreve/workspace/ffmpeg-android/jni/libavformat/../config-
arm.mak: No such file or directory
/home/sgreve/workspace/ffmpeg-android/jni/libavutil/../av.mk:3: /home/
sgreve/workspace/ffmpeg-android/jni/libavutil/../config-arm.mak: No
such file or directory
/home/sgreve/workspace/ffmpeg-android/jni/libpostproc/../av.mk:3: /
home/sgreve/workspace/ffmpeg-android/jni/libpostproc/../config-
arm.mak: No such file or directory
/home/sgreve/workspace/ffmpeg-android/jni/libswscale/../av.mk:3: /home/
sgreve/workspace/ffmpeg-android/jni/libswscale/../config-arm.mak: No
such file or directory
make: *** Keine Regel, um »/home/sgreve/workspace/ffmpeg-android/jni/
libswscale/../config-arm.mak« zu erstellen.  Schluss.
----------------------------------------------------

Which makes some kind of sense as there are no config-arm.mak files :)

The ffmpeg sources are stored in
<EmptyEclipseProjectPath>/jni/
and I call ndk-build from <EmptyEclipseProjectPath>

Maybe you can give me some hints
Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to