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

Can't compile remail-iphone #16

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

Can't compile remail-iphone #16

GoogleCodeExporter opened this issue Jan 31, 2016 · 13 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1.  Mac OS 10.6.2 Snow Leopard
2. XCode Version 3.2.2 (Pre-release)
3. Debug | iPhone Device and/or Debug | iPhone 3.0 Simulator 

ld: library not found for -lcrypto
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1

Thanks for any advice.

Volker


Original issue reported on code.google.com by [email protected] on 25 Mar 2010 at 3:43

@GoogleCodeExporter
Copy link
Author

Can it be that the generated Makefile get the wrong path? ..
INSTALLTOP=/Users/<user-path>/remail-iphone/build-crypto-
deps/binaries//Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.
sdk/Debug
.. double slashes between binaries and Developer.

Original comment by [email protected] on 25 Mar 2010 at 4:35

@GoogleCodeExporter
Copy link
Author

I hope it sounds not too  stupid, but where should be located the makefile you 
mentioned?
Double checked my stuff but have not found any wrong path actually.

-- Volker

Original comment by [email protected] on 25 Mar 2010 at 5:25

@GoogleCodeExporter
Copy link
Author

Erased at this time, but if it has implications it is the automatically 
generated files in the OpenSSL-part. (Sorry 
for not being more involved at this moment.)

Original comment by [email protected] on 26 Mar 2010 at 2:19

@GoogleCodeExporter
Copy link
Author

same error at me. 

Ld build/Release-iphonesimulator/reMail.app/reMail normal i386
cd /Users/csy/Documents/Xcode/iPhone/remail/remail-iphone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sb
in:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch 
i386 -isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.
3.sdk -
L/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone/build/Release-iphonesimu
lator -
L/Users/csy/Documents/Xcode/iPhone/remail/remail-
iphone/binaries/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPho
neSimulator3.1.3.sdk/R
elease/lib -L/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone -
L/Users/csy/Documents/Xcode/iPhone/remail/remail-
iphone/../mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhone
Simulator3.1.3.sdk/Release/lib 
-L/Users/csy/Documents/Xcode/iPhone/remail/remail-
iphone/../mailcore/binaries/Developer/Platforms/iPhoneSimulator.platform/Develop
er/SDKs/iPhoneSimulator
3.0.sdk/Debug/lib -L/Users/csy/Documents/Xcode/iPhone/remail/remail-
iphone/../mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhone
Simulator3.0.sdk/Debug/lib 
-F/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone/build/Release-
iphonesimulator -F/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone 
-filelist 
/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone/build/ReMailIPhone.build/
Release-
iphonesimulator/ReMail.build/Objects-normal/i386/reMail.LinkFileList 
-mmacosx-version-min=10.5 -
all_load -ObjC /Users/csy/Documents/Xcode/iPhone/remail/mailcore/build/Release-
iphonesimulator/libmailcore.a -framework Foundation -framework CoreGraphics 
-framework 
SystemConfiguration -framework QuartzCore -framework MessageUI -framework UIKit 
-liconv.2 -framework 
CoreLocation -framework AddressBook -framework StoreKit -lcrypto -lsasl2 
/Users/csy/Documents/Xcode/iPhone/remail/three20/src/build/Release-iphonesimulat
or/libThree20.a -lssl 
-lcrypto -o 
/Users/csy/Documents/Xcode/iPhone/remail/remail-iphone/build/Release-
iphonesimulator/reMail.app/reMail

ld: library not found for -lcrypto
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
failed with exit code 1

have u any idea? 

Original comment by [email protected] on 30 Mar 2010 at 6:21

@GoogleCodeExporter
Copy link
Author

I have the same issue. I just downloaded the source and pull_dependencies.sh 
didn't spit any errors but when 
compiling reMail with Xcode it spits out the library not found for -lcrypto 
error.

Original comment by [email protected] on 1 Apr 2010 at 4:11

@GoogleCodeExporter
Copy link
Author

Has anyone resolved this yet?  I am getting the exact issue mentioned above.

Original comment by [email protected] on 2 Apr 2010 at 3:28

@GoogleCodeExporter
Copy link
Author

Hi, I have two Mac. One is Macbook (OS 10.5.8) and the other is Mac MINI (Snow 
Leopard). I downloaded the reMail and compiled in both computers.

Macbook is OK but Mac Mini had the same issue.(library not found -lcrypto error)

Original comment by [email protected] on 6 Apr 2010 at 5:01

@GoogleCodeExporter
Copy link
Author

I am also encountering this issue.

Original comment by [email protected] on 7 Apr 2010 at 7:39

@GoogleCodeExporter
Copy link
Author

Exact same problem.... anyone figured it out?

Original comment by [email protected] on 8 Apr 2010 at 4:38

@GoogleCodeExporter
Copy link
Author

ykim0907 probably already answered some of the symptoms, that compilation 
sometimes doesn't work. It will 
compile under Mac OX Leopard, but not under the later Snowleopard. Why, is 
still to figure out.

Original comment by [email protected] on 9 Apr 2010 at 3:21

@GoogleCodeExporter
Copy link
Author

It's definitely not OS problem (Snow Leopard) but shell scripts problem.

By default build_all_deps.sh script compiles OpenSSL ONLY! for iPhone SDK 3.0 
and 
only for native ARM code and you can easily run reMail on devive. But no 
building 
for simulator occures.

If you change SDKLIST and include 3.1, 3.1.2, 3.1.3, 3.2 etc SDKs then you'll 
get 
iPhone code for mentioned SDKs but still no simulator versions.

PLATFORMS="iPhoneSimulator iPhoneOS" looks correct but didn't check deeper

Original comment by [email protected] on 16 Apr 2010 at 9:00

@GoogleCodeExporter
Copy link
Author

It seems that try to link against a missing crt1.10.6.o module. Just like the 
name is autocomplete with the OS version. To Fix I just...

cd 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.
sdk/usr/lib
sudo ln -s crt1.10.5.o crt1.10.6.o

and make again the deps

Original comment by [email protected] on 8 Jun 2010 at 7:57

@GoogleCodeExporter
Copy link
Author

So you rebuild the crypto libraries (e.g, the second half of the 
pull_dependencies script?

Original comment by [email protected] on 12 Jun 2010 at 11:12

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