我正在尝试为Android的OpenSSL1.0.1c的(.so)文件生成共享库.我发现他们在Android脚本中添加了三个用于编译Android的选项.
./Configure android-armv7 (or)
./Configure android-x86 (or)
./Configure android
Run Code Online (Sandbox Code Playgroud)
一旦我配置了操作系统,然后尝试编译,它的抛出错误.目前我正在使用x86 windows7并安装了Cygwin,Android sdk R20,Android NDK r8
sh-4.1$ make
making all in crypto...
make[1]: Entering directory `/cygdrive/d/SourceCodes/OpenSSL/openssl-1.0.1c/crypto'
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -march=armv7-a -mandroid -I/include -B/lib -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DOP
ENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DGHASH_ASM -c -o cryptlib.o cryptlib.c
cc1: error: unrecognized command line option "-mandroid"
cryptlib.c:1:0: error: bad value (armv7-a) for -march= switch
<builtin>: recipe for target `cryptlib.o' failed
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving …Run Code Online (Sandbox Code Playgroud)