Android.mk File Contents:
Local_path:= $ (call My-dir)
Include $ (clear_vars)
Local_module_tags: = Optional
local_src_files:= \
TestH264VideoStreamer.cpp
Local_module: = Live555_stream
Local_module_class: = Executables
Local_static_libraries: = Libcutils libc
Local_c_includes + = $ (local_path)/livemedia/include\
$ (Local_path)/groupsock/include\
$ (Local_path)/usageenvironment/include\
$ (Local_path)/basicusageenvironment/include
Local_shared_libraries: = \
Libcutils libutils
#LOCAL_SHARED_LIBRARIES: = liblive555
Local_ldflags + = $ (local_path)/liblive555.so
#LOCAL_STATIC_LIBRARIES + = libstlport_static libstdc++ libm libc
Include $ (build_executable)
Note: Refer to third-party dynamic library *.so, cannot use local_shared_libraries: = liblive555 this way, otherwise will error:
Make : * * * No rule to make target ' Out/target/product/rk312x/obj/shared_libraries/liblive555_intermediates/export_ Includes ', needed by ' out/target/product/rk312x/obj/executables/live555_stream_intermediates/import_includes '. Stop.
Only libraries of the system can be referenced this way. Remember!
File directory structure:
This question depressed me for more than half an hour, hereby write down, share with everybody, also be counted notes.
3rd party Dynamic Library referenced in Android.mk