Hi:
	I encountered the following issues while using FFmpeg:

	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/wrapper/Android.mk:gpacWrapper: non-system libraries in linker flags: -lgpac    
	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/mp4box/Android.mk:mp4box: non-system libraries in linker flags: -lgpac -ljs_osmo -leditline -lft2 -ljpegdroid -lopenjpeg -lpng -lgpac    
	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	[armeabi] SharedLibrary  : libgpac.so
	/home/liulin/Android/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lavdevice
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:632: error: undefined reference to 'avdevice_register_all'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:732: error: undefined reference to 'av_filter_iterate'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_dmx.c:762: error: undefined reference to 'avdevice_register_all'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:83: error: undefined reference to 'avformat_init_output'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:217: error: undefined reference to 'avcodec_parameters_copy'
	clang++: error: linker command failed with exit code 1 (use -v to see invocation)
	make: *** [/home/liulin/Android/android-ndk-r13b/build/core/build-binary.mk:703: /home/liulin/Android/gpac/build/android/obj/local/armeabi/libgpac.so] Error 1

	Version : v0.9.0-preview
	
	May I ask how to fix this problem?

	Thanks!
cannot find -lavdevice
This is a GitHub Issue
repo:gpac
owner:gpac
Title : cannot find -lavdevice
Issue date:

--- start body ---
Hi:
	I encountered the following issues while using FFmpeg:

	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/wrapper/Android.mk:gpacWrapper: non-system libraries in linker flags: -lgpac    
	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/mp4box/Android.mk:mp4box: non-system libraries in linker flags: -lgpac -ljs_osmo -leditline -lft2 -ljpegdroid -lopenjpeg -lpng -lgpac    
	Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
	Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
	Android NDK:     current module    
	[armeabi] SharedLibrary  : libgpac.so
	/home/liulin/Android/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lavdevice
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:632: error: undefined reference to 'avdevice_register_all'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:732: error: undefined reference to 'av_filter_iterate'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_dmx.c:762: error: undefined reference to 'avdevice_register_all'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:83: error: undefined reference to 'avformat_init_output'
	/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:217: error: undefined reference to 'avcodec_parameters_copy'
	clang++: error: linker command failed with exit code 1 (use -v to see invocation)
	make: *** [/home/liulin/Android/android-ndk-r13b/build/core/build-binary.mk:703: /home/liulin/Android/gpac/build/android/obj/local/armeabi/libgpac.so] Error 1

	Version : v0.9.0-preview
	
	May I ask how to fix this problem?

	Thanks!
--- end body ---
