xy77510 / remail-iphone

Automatically exported from code.google.com/p/remail-iphone
0 stars 0 forks source link

Building dependencies for armv7 #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow instructions: http://code.google.com/p/remail-iphone/ with modified 
'pull-dependencies.sh' and 'build-all-deps.sh' for SDK iOS5.0 and ARCH=armv7 
(instead of ARCH=armv6) 
2. Try to run in debug mode on device

What is the expected output? What do you see instead?
Expect it to debug on device (as the project does in iOS-Simulator).

What version of the product are you using? On what operating system?
Mac OSX 10.7.2; XCode 4.2 Build 4D177b; iOS SDKs tried 4.1, 4.3, 5.0; iPhone 4 
- with iOS 5.0 as testing device;

Please provide any additional information below.
The complete error log is attached. What is basically says is:

>>
Undefined symbols for architecture armv7:
  "_sasl_encode64", referenced from:
      _mailimap_authenticate in libmailcore.a(mailimap.o)
<<

and before there are warnings like:

>> 
ld: warning: ignoring file 
{PATH_TO_REMAIL}/remail/build-crypto-deps/binaries/Developer/Platforms/iPhoneSim
ulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Debug/lib/libcrypto.a, 
file was built for archive which is not the architecture being linked (armv7)
<<

Because of these errors I tried to run the 'build-all-deps.sh' with modified 
ARCH-Parameter. This one is set to 'armv6' by default (for iPhoneOS) and for 
Simulator to i386. I changed it to 'armv7' for iPhoneOS. But I'm still getting 
the same errors. 

In Simulator Mode everything works fine - this issue is only relevant for 
device testing.

Any help appreciated! 
Cheers
vikpek

Original issue reported on code.google.com by vik...@gmail.com on 31 Oct 2011 at 12:33

Attachments:

GoogleCodeExporter commented 9 years ago
Issue solved (... kind of)
I used the sources from http://code.google.com/p/ios-static-libraries/ to 
compile libssh, libcrypto and libsasl2 for armv7 iOS SDK 4.3 (but it runs with 
5.0 as well) and included those.

That seems a little bit 'hacky' to me, because it does not solve the issue

Probably it is possible to modify the 'buil-all-deps.sh' a way that the 
mentioned libs compile automatically, but I tried several combinations 
(different SDKs and architectures) with no success. It would be interesting to 
know if there is a different way.
Cheers

Original comment by vik...@gmail.com on 7 Nov 2011 at 6:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Could you do kind of a tutorial how you did it?

Original comment by BBsa...@googlemail.com on 17 Apr 2012 at 3:21