Cross Compiling libevent for Android

前端 未结 3 907
闹比i
闹比i 2021-02-03 14:50

I\'m stuck trying to cross-compile libevent to Android and I\'d like to know what I\'m doing wrong and get some assistance.

The version I\'m trying to build is libevent-

3条回答
  •  野性不改
    2021-02-03 15:29

    Try this

    ./configure --host=arm-linux-androideabi CC="$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=$SYSROOT" CFLAGS='-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16'
    

    It works for me.

提交回复
热议问题