使用 Crypto++ 构建错误在 iPhone 上
我正在尝试为 iPhone 构建 Crypto++ 但遇到问题。我设法通过删除一些 .asm 文件和 test.cpp 来将其构建到设备上,但有两个问题:
1)模拟器出现与以下内容相关的构建错误:
{标准输入}:13583:后缀或操作数对“call”无效
2)有数百个警告(有点烦人)
有没有人让 crypto++ 在 iPhone 上工作并找到解决这些问题的方法?
I am trying to build Crypto++ for iPhone but encountering issues. I managed to get it to build to the device by removing a few .asm files and test.cpp but two issues:
1) the simulator gets build errors relating to:
{standard input}:13583:suffix or operands invalid for `call'
2) there are hundreds of warnings (kind of annoying)
Has anyone gotten crypto++ to work on iphone and found a way to resolve these issues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了移植到 iPhone 的人:http://www.ugosweb.com/cryptopp.aspx #ip
使用它时需要记住的一些事情是按照所述设置预处理器指令,但通常能够看到添加该指令的设置需要从“Active SDK::Use Base SDK”中选择“Active SDK::Use Base SDK” xcode 左上角的下拉菜单,然后进入目标设置(获取信息)。如果没有这些步骤,目标设置中的设置就不存在,至少在某些 Xcode 版本中是这样。
此外,复制移植的项目文件可以很好地工作,但请务必将他遗漏的文件从您的项目中删除。这些文件仍然在他的加密文件夹中,因此不要将一揽子文件添加到项目中并保留在该位置。
I found someone who ported to iPhone here: http://www.ugosweb.com/cryptopp.aspx#ip
A few things to keep in mind when using it are to set the preprocessor directive as described, but often being able to see the setting to add that directive requires selecting "Active SDK::Use Base SDK" from the top left drop down of xcode, then going into the target settings (get info). Without these steps, the setting in the target settings just isn't there, at least with some xcode versions.
Further, copying the ported proj files works fine but be sure to leave out of your project the ones he leaves out. The files are still around in his crypto folder so do not do a blanket file add to the project and leave it at that.