Advertisement
Guest User

Android FFMPEG reference error

a guest
Mar 1st, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3.  
  4. LOCAL_MODULE := pre_libavcodec
  5. LOCAL_SRC_FILES := libavcodec.a
  6. include $(PREBUILT_STATIC_LIBRARY)
  7.  
  8. include $(CLEAR_VARS)
  9.  
  10. LOCAL_MODULE := ffmpeg
  11. LOCAL_ARM_MODE := arm
  12. LOCAL_SRC_FILES := FFMPlugin.cpp
  13.  
  14. #LOCAL_LDFLAGS = -Wl,--fix-cortex-a8
  15. LOCAL_LDLIBS := -llog -lz
  16. LOCAL_CFLAGS = -O3 -D__STDC_CONSTANT_MACROS
  17.  
  18. LOCAL_C_INCLUDES := $(LOCAL_PATH) \
  19. $(LOCAL_PATH)/ffmpeg \
  20. $(LOCAL_PATH)/ffmpeg/include
  21.  
  22. LOCAL_STATIC_LIBRARIES := pre_libavcodec
  23. include $(BUILD_SHARED_LIBRARY)
  24.  
  25. ERROR MSG:
  26. d:/androidndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeab
  27. i-v7a/objs/ffmpeg/FFMPlugin.o: in function Java_com_ssb_droidsound_plugins_FFMPlugin_N_1load:jni/FFMPlugin/FFMPlugin.cpp:15: error: undefined reference to 'av_register_all()'
  28. collect2: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement