Thanks Jeff ! :-) that helped.
I can now build and run ios simulators with just one minor issue:
In the simulator: when I encrypt with AES i get this:
*Assertion failed: (false), function deallocate, file
/Users/username/xcode/someproject/**someproject**/libs/cryptopp/include/secblock.h,
line 151.*
-------- secblock.h Line 149-152 --------
void deallocate(void *p, size_type n)
{
assert(false);
}
--------------------------------------------------
I solved this by simply commenting out line 151 ( the assert() )
Could this be solved in a more reasonable way ?
On Saturday, January 17, 2015 at 1:04:41 AM UTC+1, Jeffrey Walton wrote:
>
> > From this I would guess that the arm64 arch covers the x86_64 :-s
> > ... but the build error remains
>
> No, that's a cross-compile for iOS. The i386 architecture is there because
> that's what the simulator uses.
>
> If you want to build for OS X, then simply:
>
> cd cryptopp
> make clean
> make static dynamic test
>
> You should see something like:
>
> /usr/local/bin/clang++ -DNDEBUG -g2 -Os -fPIC -arch x86_64 -arch i386
> -DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare -Wno-unused-value -c
> 3way.cpp
> /usr/local/bin/clang++ -DNDEBUG -g2 -Os -fPIC -arch x86_64 -arch i386
> -DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare -Wno-unused-value -c
> adler32.cpp
> ...
>
> If the self tests pass, then:
>
> sudo make install PREFIX=/usr/local
>
> Jeff
>
> On Monday, January 12, 2015 at 1:55:58 PM UTC-5, Andreas Kirkerud wrote:
>>
>> Yes that would perhaps be a reasonable cause, but once compiled, I check
>> the cryptopp-lib for supported architectures using the lipo tool:
>>
>> $ lipo -info /path/to/lib/cryptopplib.a
>> The output is:
>> Architectures in the fat file: /path/to/lib/cryptopplib.a are: armv7
>> armv7s i386 arm64
>>
>> From this I would guess that the arm64 arch covers the x86_64 :-s
>> ... but the build error remains
>>
>>
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.