Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building dependencies for armv7 #31

Open
GoogleCodeExporter opened this issue Jan 31, 2016 · 3 comments
Open

Building dependencies for armv7 #31

GoogleCodeExporter opened this issue Jan 31, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 31 Oct 2011 at 12:33

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 7 Nov 2011 at 6:20

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Could you do kind of a tutorial how you did it?

Original comment by [email protected] on 17 Apr 2012 at 3:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant