赞
踩
国密SDK源码下载,对GMSSL库进行编译生成对应的静态库。执行如下命令:
cd /Users/xxxx/Downloads/GMSSLV2-master
./config
上图中错误解决方法
使用文本编辑器打开SDK目录下Configure、test/build.info、test/run_tests.pl。
use if $^O ne "VMS", "File::Glob" => qw/glob/;
改为
use if $^O ne "VMS", "File::Glob" => qw/:glob/;
make
make distclean
export CC="clang -arch armv7"
export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH"
export CROSS_TOP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
export CROSS_SDK=iPhoneOS17.2.sdk
export IPHONEOS_DEPLOYMENT_TARGET=8.0
./Configure ios-cross no-shared -DGMSSL_NO_TURBO
make
make distclean
export CC="clang -arch arm64"
export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH"
export CROSS_TOP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
export CROSS_SDK=iPhoneOS17.2.sdk
export IPHONEOS_DEPLOYMENT_TARGET=8.0
./Configure ios64-cross no-shared -DGMSSL_NO_TURBO
make
make distclean
export CC="clang -arch i386 -arch x86_64"
export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH"
export CROSS_TOP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
export CROSS_SDK=iPhoneSimulator17.2.sdk
export IPHONEOS_DEPLOYMENT_TARGET=8.0
./Configure iphoneos-cross no-shared -DGMSSL_NO_TURBO
make
lipo -create 模拟器.a文件路径 真机.a文件路径 -output 合成的.a文件路径
lipo -info .a文件路径
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。