微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

为 iOS 构建,但链接库“libgsl.a”是为 macOS 构建的如何在 gsl Configure 中添加对 iOS 的架构支持

如何解决为 iOS 构建,但链接库“libgsl.a”是为 macOS 构建的如何在 gsl Configure 中添加对 iOS 的架构支持

我已经成功创建了 libgsl.a,但无法在 arm64 架构(iOS 设备)中使用。

如何在 gsl 配置文件添加这种架构支持?有什么想法吗?

我尝试了这两个配置,但得到了同样的错误

1.

 ./configure CC="gcc -arch x86_64" \
                 CXX="g++ -arch x86_64" \
                 CPP="gcc -E" CXXCPP="g++ -E"
  1. sudo ./configure --disable-shared --disable-dependency-tracking --host=armv64-apple-darwin10 CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/include -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk" CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm64-apple-darwin10-gcc-4.2.1" CPP=cpp LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk"

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。