Hi All,
I am trying to build the FFMpeg Android port. Initially I landed into
the same issue "*** No rule to make target `libavformat/
libavformat.a', "
Following the steps in Andy's next post. The configuration script
worked fine (no errors displayed).
I tried the command "make TARGET_ARCH=arm APP=ffmpeg-android" and got
the following error:
=======================================================
Android NDK: APP variable defined to unknown applications: ffmpeg-
android
Android NDK: You might want to use one of the following: ffmpeg-
android
build/core/
main.mk:81: *** Android NDK: Aborting . Stop.
=======================================================
Referring to the Android NDK documentation, I created $NDK_ROOT/apps/
ffmpeg-android/Application.mk
This file refers to the root folder of ffmpeg-android.
Now, the same command "make TARGET_ARCH=arm APP=ffmpeg-android" does
not show any error. But it also does not compile!!!
=======================================================
$ make TARGET_ARCH=arm APP=ffmpeg-android
Android NDK: Building for application 'ffmpeg-android'
=======================================================
Is there anything I am doing wrong? Is there anything extra that I
need to do? I am working on Ububtu 8.0.4
All help is appreciated:)
Regards,
Yadnesh
On Jun 17, 9:26 am, Andy Savage <
a...@bluewire.net.nz> wrote:
> So, I've downloaded the code from ffmpeg-android (also tried using the
> origional ffmpeg sources with same error).
>
> *Here's the problem... I run my configure script (below):*
> *This runs fine and generates the required files, then I run *
> make -j 2 TARGET_ARCH=arm APP=ffmpeg-android
> *
> *
> *And the sad error I get is*
> *In file included from
> /stuff/android-ndk-r4/build/platforms/android-5/arch-arm/usr/include/linux/ in.h:209,
> *
> * from
> /stuff/android-ndk-r4/build/platforms/android-5/arch-arm/usr/include/netine t/in.h:33,
> *
> * from libavformat/network.h:36,*
> * from libavformat/os_support.c:42:*
> */stuff/android-ndk-r4/build/platforms/android-5/arch-arm/usr/include/asm/b yteorder.h:
> In function '___arch__swab32':*
> */stuff/android-ndk-r4/build/platforms/android-5/arch-arm/usr/include/asm/b yteorder.h:25:
> warning: implicit declaration of function 'asm'*
> */stuff/android-ndk-r4/build/platforms/android-5/arch-arm/usr/include/asm/b yteorder.h:25:
> error: expected ')' before ':' token*
> *make: *** [libavformat/os_support.o] Error 1*
> *make: *** Waiting for unfinished jobs....*
>
> *Any ideas on this one?? I've tried using android-8 instead and tried using
> both 4.2.1 and 4.4.0 in the toolchain.*
> *
> *
> *Grrr, no idea where to go from here.*
> *
> *
> >>
http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android<
http://gitorious.org/%7Eolvaffe/ffmpeg/ffmpeg-android>
>
> >> The error I'm getting when I try a make on that code is:
> >> make: *** No rule to make target `libavformat/libavformat.a', needed
> >> by `all'. Stop.
>
> >> :-(
>
> >> Kind regards,
> >> Andy Savage
>
> >> --
> >> unsubscribe:
android-porti...@googlegroups.com<android-porting%2Bunsubscribe@
googlegroups.com>
> >> website:
http://groups.google.com/group/android-porting