3rd party Dynamic Library referenced in Android.mk

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.