Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top