CMake Compiling Android Platform Libpoco

Source: Internet
Author: User

1, download the source code, extract to Poco-1.7.8-all

2, copy from the $android_ndk\cmake android.toolchain.cmake androidndkgdb.cmake androidndkmodules.cmake to Poco-1.7.8-all\cmake \ Down

3, Vim Poco-1.7.8-all\cmake\android.cmake, the content is as follows

#cd poco-1.7.8-all#mkdir BUILD && cd build#cmake-dcmake_cxx_flags= '-frtti-fexceptions-fpermissive '. #make-j4
Set (Cmake_build_type Release) set (ANDROID 1) Set (cmake_cxx_flags "-fexceptions") Set (Cmake_cxx_flags_debug- fexceptions) #set ($ANDROID _ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin) set (CMAKE_ Toolchain_file ${cmake_current_source_dir}/cmake/android.toolchain.cmake) Set (Android_stl stlport_static) Set ( android_ndk/users/musictom/library/android/sdk/ndk-bundle/) Set (Android_toolchain_name aarch64-linux-android-4.9 ) Set (Android_abi arm64-v8a) set (Android_native_api_level android-24) Set (cpack_package_install_directory "/libs") # Add_compile_options (-std=c++11) #message (STATUS "optional:-std=c++11") 4, CD Poco-1.7.8-allmkdir BUILD && CD Buildcmake-dcmake_cxx_flags= '-frtti-fexceptions-fpermissive '. Make-j4

CMake Compiling Android Platform Libpoco

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.