On Friday, October 28, 2016 at 11:05:29 AM UTC-4, pdoh...@cipherloc.net wrote: > > Thank you for the reply Jeff that did fix the issue. I am now getting a > different issue. It looks like even when I use setenv-ios.sh arm64, it is > still building the library for x86_64 architecture. It is also not > building it for mobile according to xcode. It looks like all the .o > files(such as sha.o or osrng.o) are built for OSX instead of iOS. From my > testing it looks like the env is not being set up properly to use the right > architecture but I am not positive on that. Any ideas? >
Well, maybe you are missing the leading dot when running 'setenv-ios.sh'? If you omit the leading dot, then the shell that has the environment is lost when the script finishes. $ . ./setenv-ios.sh arm64 Configuring for iPhoneOS (arm64) XCODE_SDK: iPhoneOS7.1.sdk XCODE_DEVELOPER: /Applications/Xcode-5_1.app/Contents/Developer XCODE_TOOLCHAIN: /Applications/Xcode-5_1.app/Contents/Developer/usr/bin XCODE_DEVELOPER_TOP: /Applications/Xcode-5_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer IOS_ARCH: arm64 IOS_TOOLCHAIN: /Applications/Xcode-5_1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ IOS_FLAGS: -miphoneos-version-min=7 IOS_SYSROOT: /Applications/Xcode-5_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk ******************************************************************************* It looks the the environment is set correctly. Your next step is build the library with 'make -f GNUmakefile-cross' ******************************************************************************* And then: $ make -f GNUmakefile-cross -j 4 clang++ -DNDEBUG -g2 -Os -fPIC -pipe -Wall -miphoneos-version-min=7 -arch arm64 -isysroot /Applications/Xcode-5_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -stdlib=libc++ -c cryptlib.cpp ... And finally: $ lipo -info libcryptopp.a input file libcryptopp.a is not a fat file Non-fat file: libcryptopp.a is architecture: arm64 Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. 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 cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.