• (OK) 编译 pcre-8.37 静态库


    [root@localhost pcre-8.37]#
    /opt/cBPM-android/pcre-8.37
    [root@localhost pcre-8.37]#

    export NDK_ROOT="/opt/android-on-linux/android-ndk-r8e"
    export SYSROOT="$NDK_ROOT/platforms/android-14/arch-arm"
    export CFLAGS="-g --sysroot=$SYSROOT --pipe -I$NDK_ROOT/sources/cxx-stl/stlport/stlport -I$NDK_ROOT/platforms/android-14/arch-arm/usr/include -I$NDK_ROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/include -I$NDK_ROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.7/include-fixed -I$NDK_ROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.7/include"
    export CPPFLAGS="$CFLAGS"
    export CXXFLAGS="$CFLAGS"
    export LDFLAGS="-L$NDK_ROOT/sources/cxx-stl/stlport/libs/armeabi-v7a -L/opt/cBPM-android/criteria-lin/lib -static -lstlport_static -lgcc -lc"
    export CPATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin"
    export CPP="$CPATH/arm-linux-androideabi-cpp"
    export CXX="$CPATH/arm-linux-androideabi-g++"
    export CC="$CPATH/arm-linux-androideabi-gcc"
    export LD="$CPATH/arm-linux-androideabi-ld"
    export AR="$CPATH/arm-linux-androideabi-ar"

    ./configure --host="arm-linux-eabi"  --enable-static --disable-shared

    make -j5

    [root@localhost pcre-8.37]# ls .libs/libpcre.a
    [root@localhost pcre-8.37]# cp .libs/libpcre.a /opt/cBPM-android/criteria-lin/lib
  • 相关阅读:
    AE开发中Geometry到Polyline/Polygon的转换--转载
    asp.net MVC Views-----Controller传递数据方法
    百度翻译APi接口实现
    javascript添加删除行信息
    XMLDocument
    GDI绘制图像
    测试局域网内网络数据
    HL7 V2 分隔符
    IHE-PIX 备注
    数据库关键字 (Oracle, SQL Server, DB2)
  • 原文地址:https://www.cnblogs.com/ztguang/p/12647073.html
Copyright © 2020-2023  润新知