[FFmpeg-user] Issue with cross compiling ffmpeg for linux in windows

swathi e.p swathiep2009 at gmail.com
Wed Sep 21 09:02:30 CEST 2011


Hi

I am in the process of configuring ffmpeg.

The file attached with this mail is the script i used to configure ffmpeg.

I have tried in all possible ways i know, but always getting "No such file
or directory" error as below.

WARNING:
/cygdrive/e/cygwin/home/mbt/Android-NDK/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-pkg-config
not found, library detection may fail.
mktemp -u XXXXXX
6X6NG4
WARNING: Unknown C compiler
/cygdrive/e/cygwin/home/mbt/Android-NDK/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc,
unable to select optimal CFLAGS
check_ld
check_cc
BEGIN /tmp/ffconf.6dDK4GNb.c
    1 int main(void){ return 0; }
END /tmp/ffconf.6dDK4GNb.c
/cygdrive/e/cygwin/home/mbt/Android-NDK/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc
-I//usr/include -c -o /tmp/ffconf.IvgodWsv.o /tmp/ffconf.6dDK4GNb.c
./configure: line 595:
/cygdrive/e/cygwin/home/mbt/Android-NDK/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc:
No such file or directory
C compiler test failed.

I tried to define path in different ways as below:

>> By setting environment variable called NDK and defined PREBUILT and
PLATFORM paths as:
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

>> Then by defining locally as:

1.  NDK=/cygdrive/e/cygwin/home/mbt/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

2.  NDK=e/cygwin/home/mbt/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

3.  NDK=e:/cygwin/home/mbt/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

4.  NDK=/home/mbt/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

5.  NDK=~/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

6.  NDK=E:/cygwin/home/mbt/Android-NDK/android-ndk
     PLATFORM=$NDK/platforms/android-8/arch-arm/
     PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows

All ended with same error.

Cygwin version - 1.7.9
ffmpeg version - 0.8.2
Android NDK version - r5

Please let me know, if i have done any mistake in the steps defined above.

Thanks & Reagrds,
Swathi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new  2.sh
Type: application/x-sh
Size: 584 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20110921/9db9d513/attachment.sh>


More information about the ffmpeg-user mailing list