Jean-Bernard Collet wrote:
I must admit that I have strictly no idea how to do that... :(

Can you help me ?

Thanks a lot

On Fri, Sep 25, 2009 at 2:33 PM, Anatoliy Nenashev <[email protected]>wrote:

Jean-Bernard Collet wrote:

Hi,

I desperately try to compile FFMpeg to use it on Android.

I have found an brief explanation from a Chinese guy who uses that
configure
line :

[code]
./configure --target-os=linux --arch=armv41 --enable-cross-compile

--cc=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc

--cross-prefix=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin

--nm=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-nm
--extra-cflags="-fPIC -DANDROID " --extra-ldflags="-s -nostdlib -Bdynamic
-Wl,-T,armelf.x -Wl,-dynamic-linker,/system/bin/linker -lc -lm -ldl
crtbegin.o crtend.o " --disable-static --enable-shared --disable-static
--enable-shared
[/code]

But I have an error from the configure file. It seems that he can't try
the
generated file...

[code]
b...@laptop:~/Sdk/ffmpeg_android$ ./configure --target-os=linux
--arch=armv41
--enable-cross-compile

--cc=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc

--cross-prefix=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin

--nm=/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-nm
--extra-cflags="-fPIC -DANDROID " --extra-ldflags="-s -nostdlib -Bdynamic
-Wl,-T,armelf.x -Wl,-dynamic-linker,/system/bin/linker -lc -lm -ldl
crtbegin.o crtend.o " --disable-static --enable-shared --disable-static
--enable-shared

/home/jb/Sdk/android-ndk-1.5_r1/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc
is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
[/code]

How can I fix that ??

Thank you for your help



./configure just try to compile a simple program with your arm-eabi-gcc
compiler. Here it is:

int main(void) {return 0;}

You can find it in ./configure text.
Did you try to compile this program manually?

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user




Looks you don' t have gcc installed on your system. Just write the below code on your system and save it in a text file with extension .c For example test.c

#include"stdio.h"
int main(){
return 0;
}

try to compile this using the command line like

#gcc test.c
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to