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