[Libav-user] Error when creating .so file using .c program and ffmpeg using android NDK
Alex Cohn
alexcohn at netvision.net.il
Fri May 31 22:55:59 CEST 2013
On Fri, May 31, 2013 at 9:39 AM, prathap <prathap.malempati at gmail.com> wrote:
> Thanks for your previous solution , and now i have two Android.mk files
> in my project
>
> 1 .../(my_project_root)/jni/Android.mk
>
> 2 .../ (my_project_root)/jni/ffmpeg/android/arm/Android.mk
>
>
> and my first android.mk code is:
>
> -----------------------------------------------------------------------------
> LOCAL_PATH := $(call my-dir)
> include $(CLEAR_VARS)
> LOCAL_MODULE := framegrabber
> LOCAL_SRC_FILES := framegrabber.c
> LOCAL_LDLIBS := -llog -lz
> LOCAL_STATIC_LIBRARIES := libavformat_static libavcodec_static
> libavutil_static
> include $(BUILD_SHARED_LIBRARY)
> $(call import-module,ffmpeg/android/arm)
...
> when i am trying to run ndk-build it shows Error like this:
>
> --------------------------------------------------------------------------------------------------
> Android NDK: /home/ubuntu/workspace/MyFfmpegTest/jni/Android.mk: Cannot find module with tag 'ffmpeg/android/arm' in import path
> Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined?
> Android NDK: The following directories were searched:
> Android NDK: home/ubuntu/workspace/MyFfmpegTest/jni/Android.mk:8: *** Android NDK: Aborting. . Stop.
> ------------------------------------------------------------------------------------------------------
>
> Could you please tell me where the mistake is?
>
> Thank you
>
> Regards
> Prathap.M
Try
$(call import-module,$(LOCAL_PATH)/ffmpeg/android/arm)
I am afraid we have stirred too far from the topic of the libav-user
mail list. You would be better served if you ask the questions about
Android NDK in relevant user groups, or at stack-overflow.
Regards,
Alex Cohn
More information about the Libav-user
mailing list