04 2017 档案
how-to-build-c-static-libraries-boost
摘要:http://tungchingkai.blogspot.jp/2016/11/how-to-build-c-static-libraries-boost.html How to build C++ static libraries (boost and QuantLib) for Android 阅读全文
posted @ 2017-04-27 13:43 袁晓平 阅读(923) 评论(0) 推荐(0)
mac下编译 boost编译工具b2
摘要:cd boost_1_64_0/tools/build ./bootstrap.sh --with-toolset=gcc 输出: -n Bootstrapping the build engine with toolset gcc... engine/bin.macosxx86_64/b2 Boo 阅读全文
posted @ 2017-04-26 23:05 袁晓平 阅读(582) 评论(0) 推荐(0)
What you should know about .so files
摘要:In its early days, the Android OS was pretty much supporting only one CPU architecture: ARMv5.Do you know how many it does support now? … 7! Seven dis 阅读全文
posted @ 2017-04-16 22:35 袁晓平 阅读(294) 评论(0) 推荐(0)
std::u32string conversion to/from std::string and std::u16string
摘要:I need to convert between UTF-8, UTF-16 and UTF-32 for different API's/modules and since I know have the option to use C++11 am looking at the new str 阅读全文
posted @ 2017-04-16 21:53 袁晓平 阅读(922) 评论(0) 推荐(0)
c++ istream转换为std::string
摘要:(could be a one-liner if not for MVP) post-2011 edit, this approach is now spelled I'm late to the party, but here is a fairly efficient solution: I d 阅读全文
posted @ 2017-04-16 21:38 袁晓平 阅读(7414) 评论(0) 推荐(0)
android开发-c++代码调用so库
摘要:Android项目的CMakeLists.txt代码如下,so文件放在项目的$Project/app/src/main/jniLibs/$arch下,$arch替换为arm64-v8a armv7a等 cmake_minimum_required(VERSION 3.4.1)set(ARCH arc 阅读全文
posted @ 2017-04-16 20:42 袁晓平 阅读(4199) 评论(0) 推荐(0)
cmake openssl ios
摘要:1 下载源代码 git clone https://github.com/pol51/OpenSSL-CMake.git cd OpenSSL-CMake mkdir build && cd build pico build.sh 内容如下两行 cmake -GXcode .. xcodebuild 阅读全文
posted @ 2017-04-12 17:45 袁晓平 阅读(828) 评论(0) 推荐(0)
为android编译libsocket的脚本
摘要:#!/bin/bash U32=0 #编译64位arm时 U32=0 编译32位arm时 U32=1 其他参数不需要变动 TARGET=android-24 HOST=darwin-x86_64 TOOL=aarch64-linux-android #arm-linux-androideabi aa 阅读全文
posted @ 2017-04-09 16:08 袁晓平 阅读(585) 评论(0) 推荐(0)