That fixed it as well. Thank you for that. Now the error I am getting is
about missing symbols on 4 functions. Those 4 functions are
Filter::TransferTo2, CopyRangeTo2, BufferedTransformation::Skip, and
StringStore::TransferTo2. I have the error output below. The only other
change I have made that is different is that i had to add -fembed-bitcode
to the cxx flags. I do not think that would cause this issue but maybe it
is.
"CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned
long long&, std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, bool)", referenced from:
vtable for CryptoPP::StringSource in libA.a(ClassA.o)
vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in
libA.a(ClassA.o)
"CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&,
unsigned long long&, unsigned long long, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)
const", referenced from:
vtable for CryptoPP::StringSource in libA.a(ClassA.o)
vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in
libA.a(ClassA.o)
"CryptoPP::BufferedTransformation::Skip(unsigned long long)", referenced
from:
vtable for CryptoPP::StringSource in libA.a(ClassA.o)
vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in
libA.a(ClassA.o)
"CryptoPP::StringStore::TransferTo2(CryptoPP::BufferedTransformation&,
unsigned long long&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)",
referenced from:
CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long
long&, bool) in libA.a(ClassA.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Thanks for the help again.
Patrick
On Friday, October 28, 2016 at 12:15:34 PM UTC-5, Jeffrey Walton wrote:
>
>
>
> On Friday, October 28, 2016 at 11:05:29 AM UTC-4, [email protected]
> 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 [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.