Hi,
I have followed similar process and have the ffmpeg static libraries
built for use with Android. The problem is that I am not able to use
these in the executable that I am building using Android NDK.
For the sample executable that I am trying to build I use following
Android.mk
=========================================================
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE := tutorial1
LOCAL_SRC_FILES := tutorial1.c
LOCAL_CFLAGS := -Lout/apps/ffmpeg-android/armeabi
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../android_ffmpeg06/ffmpeg-0.6
LOCAL_LDLIBS := -Lbuild/platforms/android-5/arch-arm/usr/lib -llog -
lz
LOCAL_STATIC_LIBRARIES := avformat avutil avcodec postproc swscale
include $(BUILD_EXECUTABLE)
=========================================================
command: make -j 2 TARGET_ARCH=arm APP=tutorial
gives error no rule to make target .... --> it expects rule to make
the ffmpeg static libraries
So I added (after google search) following line to end of my
Android.mk
include $(LOCAL_PATH)/../../../android_ffmpeg06/ffmpeg-0.6/Android.mk
Now command: make -j 2 TARGET_ARCH=arm APP=tutorial
works well and compiles again all the ffmpeg static libraries and
proceeds to create the "tutorial" executable. In this I get linker
error "undefined symbol"
All these functions (causing error undefined symbol) are in libavcodec/
arm
on investigation I found that source in libavcodec is getting compiled
but there is no attempt to compile code from libavcodec/arm
Is having this code built necessary or I just comment out statements
responsible for the error?
If building code in libavcodec/arm (I think it is must to build this)
is MUST, could anyone give pointers about getting the Makefile right?
I have attempted listing the libavcodec/arm/*.c files in
"LOCAL_SRC_FILES :=" But I end up getting multiple errors like
=========================================================
/tmp/ccopFvxf.s:94: Error: selected processor does not support `wldrd
wr2,[r2]'
=========================================================
Any idea how this could be resolved?
Regards,
Yadnesh
On Jun 15, 2:28 am, selmixxx <
miso.sel...@gmail.com> wrote:
> here is what i do (its seriously inspired byhttp://
gitorious.org/~olvaffe/ffmpeg/ffmpeg-android
> but i wasn't able to make it work for me so i started from beginning)
>
> 1) getffmpegfrom git
> i can't confirm on real device), see this thread:
http://groups.google.com/group/android-ndk/browse_frm/thread/cbc280a4...
>
> i don't know if its caused by wrong choice of options when invoking
> gcc, or if its problem offfmpeg, or emulator... if you will have some
> problems and you will find solution please post it here. we should
> share information to have better progress
>
> good luck
>
> On Jun 14, 4:43 pm, Abhi <
abhishek.r.sha...@gmail.com> wrote:
>
> > Eugene,
>
> > Things that you suggested are out of my scope right now. I am still in
> > infancy in terms of developing Native applications using NDK. But my
> > project right now deals withffmpegand so taking a leap considering
> > the time limitations.
>
> > Any well-defined instruction set would help. Thanks a lot.
>
> > Abhi
>
> > On Jun 10, 6:43 pm, selmixxx <
miso.sel...@gmail.com> wrote:
>
> > > i just started withffmpegfrom scratch - downloadffmpegfrom git,
> > > configure it, build libavformat,libavcodec and libavutil to static
> > > libraries using ordinary make and then use ndk tools to compile my
> > > code which links with static libraries offfmpeg.
>
> > > however i am ndk beginner so its possible that i am doing everything
> > > the wrong way. result is that it mostly works, but sometimes i get
> > > crashes in emulator which i can't solve for now (program works, then
> > > it somehow breaks... it seems to besomething random or what...). when
> > > i will find what exactly is wrong i may post some exact instructions
> > > here
>
> > > On May 25, 8:37 pm, Abhi <
abhishek.r.sha...@gmail.com> wrote:
>
> > > > has anybody been able to successfully compile and runffmpegon
> > > >androidusing the NDK? I have been trying to figure out without any
> > > > luck yet. Any help would be appreciated
>
> > > > THanks,
>
> > > > ABhi
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "android-ndk" group.> > > To post to this group, send
emailtoan...@googlegroups.com.> > > To unsubscribe from this group, send
emailtoandroid-...@googlegroups.com.