linking w/ correct libcrypto version?
linking w/ correct libcrypto version?
- Subject: linking w/ correct libcrypto version?
- From: Alex Rice <email@hidden>
- Date: Thu, 4 Dec 2003 23:34:13 -0700
I'm hope this is an easy one- maybe a GCC or linker option.
Short version
How do I get the "compatibility version" of a library linked with XCode
to be something different than what it is?
Long version
I have been working with XCode on 10.3 and was getting ready to release
an build when I tested the app on 10.2 and found it would not launch.
The issue, I think, is the version number of libcrypto that I am
linking with. I need advice for how to get XCode to link in such a way
that the app can run both 10.2 and 10.3. The console message running
the binary on the 10.2 box is:
dyld: /Users/alex/Desktop/Slacker.app/Contents/MacOS/Slacker can't open
library: /usr/lib/libcrypto.0.9.7.dylib (No such file or directory,
errno = 2)
Dec 4 22:36:38 hogwart crashdump: Crash report written to:
/Users/alex/Library/Logs/CrashReporter/Slacker.crash.log
Here is the otool output on my 10.3 box, of the binary that was
compiled with XCode. Notice the compatibility version is the same as
the "current version" instead of "0.9" for example
# otool -L Slacker.app/Contents/MacOS/Slacker
Slacker.app/Contents/MacOS/Slacker:
...
/usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)
...
Here is the otool output the binary that was compiled with Project
Builder on 10.2
# otool -L /Volumes/Slacker\ 2.1.3/Slacker.app/Contents/MacOS/Slacker
...
/usr/lib/libcrypto.0.9.dylib (compatibility version 0.9.0, current
version 0.9.6)
...
The 10.2 box itself has in /usr/lib
libcrypo -> libcrypto.0.9.dylib
I attempted to duplicate that setup (libcrypo -> libcrypto.0.9.dylib)
on the 10.3 box, but then my system acted funny and would not boot
until I undid the change in single user mode :-) That's when I figured
I had better ask the pros
Alex Rice <email@hidden> | Mindlube Software |
<http://mindlube.com>
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.