Closed GoogleCodeExporter closed 8 years ago
You probably need to set your baseline SDK to 3.0 instead of 3.1 or similar.
This worked for me.
Original comment by rootst...@gmail.com
on 9 Mar 2010 at 8:18
Same problem here, already set sdk to 3.0 with no luck.
Ld build/Debug-iphonesimulator/reMail.app/reMail normal i386
cd /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/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch
i386
-isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.
sdk
-L/remail/remail-iphone/build/Debug-iphonesimulator
-L/remail/remail-iphone/binaries/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator3.0.sdk/Debug/lib
-L/remail/remail-iphone
-L/remail/remail-iphone/../mailcore/libetpan/binaries/Developer/Platforms/iPhone
Simulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/Debug/lib
-F/remail/remail-iphone/build/Debug-iphonesimulator -F/remail/remail-iphone
-filelist
/remail/remail-iphone/build/ReMailIPhone.build/Debug-iphonesimulator/ReMail.buil
d/Objects-normal/i386/reMail.LinkFileList
-mmacosx-version-min=10.5 -ObjC
/remail/mailcore/build/Debug-iphonesimulator/libmailcore.a -framework Foundation
-framework CoreGraphics -framework SystemConfiguration -framework QuartzCore
-framework MessageUI -framework UIKit -liconv.2 -framework CoreLocation
-framework
AddressBook -framework StoreKit -lssl -lcrypto -lsasl2
/remail/three20/src/build/Debug-iphonesimulator/libThree20.a -o
/remail/remail-iphone/build/Debug-iphonesimulator/reMail.app/reMail
ld: library not found for -lssl
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
Original comment by smariott...@gmail.com
on 9 Mar 2010 at 10:30
I believe this is indirectly caused by issue 3
(https://code.google.com/p/remail-iphone/issues/detail?id=3). Basically your
../mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platform/**
directories don't exist.
Fix that this problem goes away also.
Nathanael
Original comment by beta...@gmail.com
on 10 Mar 2010 at 1:01
Got "ld: library not found for -lssl" issue fixed in my env by reading the
steps in
previous posts.
Here are my steps, compiled from various posts:
/* From Terminal, need some links as workarounds. */
$cd /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator3.0.sdk/usr/lib
$sudo ln -s crt1.10.5.o crt1.10.6.o
$cd /usr/libexec/gcc
$sudo ln -s i686-apple-darwin10 i686-apple-darwin9
$cd /Users/<myuser>/<mywork>
$hg clone https://remail-iphone.googlecode.com/hg/ remail-iphone
$cd remail-iphone/
$sh pull_dependencies.sh
/* From xcode */
open ReMailIPhone xcode project and build it.
/***** f you encounter "ld: library not found for -lssl" build error in xcode,
it may be
because this directory is missing */
1. Check whether this directory exists in your env.
$ls
<mywork>/mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platfor
m
2. If it does not, manually copy iPhoneSimulator.platform files in the build to
mailcore
$cd /Users/<myuser>/<mywork>/remail-iphone/build-crypto-deps
$cp -R binaries/Developer/Platforms/iPhoneSimulator.platform
../../mailcore/libetpan/binaries/Developer/Platforms
3. Rebuild remailiphone project from xcode using iPhoneSimulator3.0 SDK
Hope this will also fix your 'ld: library not found for -lssl' issue.
-Dennis
Original comment by dennis.s...@gmail.com
on 14 Mar 2010 at 3:56
Worked for me. Thx!
Original comment by patrick....@gmail.com
on 15 Mar 2010 at 10:26
Sounds like this problem is now solved?
Gabor
Original comment by gaborcse...@gmail.com
on 20 Mar 2010 at 3:45
Original issue reported on code.google.com by
suryadha...@gmail.com
on 9 Mar 2010 at 6:10