Unrar to Android

Source: Internet
Author: User

Create Android. mk

CMD-strip = $ (toolchain_prefix) strip -- strip-debug-x $1

 

Local_cflags + =-fvisibility = hidden-fexceptions-fno-exceptions-dunrar-C-d_file_offset_bits = 64-d_largefile_source

 

Local_arm_mode: = arm

Local_module: = unrar

Local_module_tags: = optional

Local_shared_libraries: = libcutils libstdc ++ libc

 

Generate executable programs

 

An error occurs.

 

Build error:

  1. Error:
    Undefined reference to '_ cxa_end_cleanup'
    Undefined reference to '_ gxx_personality_v0'
    Solution:
    Add compile flags-fno-Exceptions
  2. Error:
    Undefined reference to 'vtable for _ cxxabiv1 ::__ class_type_info'
    Undefined reference to 'vtable for _ cxxabiv1 ::__ si_class_type_info'
    Solution:
    Add compile flags-fno-rtti

Related Article

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.