Re: can't open dynamic library
Re: can't open dynamic library
- Subject: Re: can't open dynamic library
- From: Dan Korn <email@hidden>
- Date: Tue, 1 Jul 2008 11:28:38 -0500
Even if I set the install path to an absolute path, the link still
doesn't work:
/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld:
warning can't open dynamic library: /Xcode2.5/SDKs/MacOSX10.4u.sdk/
Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/src/build/
Debug\ Unicode/libwx_mac_u_d.dylib referenced from: /Projects/
FusionPro-mainline/FusionProWorkspace/FusionProMac/FusionPro/
FPUnicodeUI/build/Debug/Default/fpunicodeui_macho_d.dylib (checking
for undefined symbols may be affected) (No such file or directory,
errno = 2)
Here's what it's trying to find:
>otool -L fpunicodeui_macho_d.dylib | grep wx
/Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/src/
build/Debug\ Unicode/libwx_mac_u_d.dylib (compatibility version
2.8.0, current version 2.8.6)
>file /Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/
src/build/Debug\ Unicode/libwx_mac_u_d.dylib
/Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/src/
build/Debug Unicode/libwx_mac_u_d.dylib: Mach-O universal binary
with 2 architectures
/Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/src/
build/Debug Unicode/libwx_mac_u_d.dylib (for architecture i386):
Mach-O dynamically linked shared library i386
/Projects/FusionPro-mainline/FusionProWorkspace/wxMac-2.8.7/src/
build/Debug Unicode/libwx_mac_u_d.dylib (for architecture ppc): Mach-
O dynamically linked shared library ppc
Why is it looking in the /Xcode2.5/SDKs/MacOSX10.4u.sdk folder for an
absolute path? What am I doing wrong?
At this point I'm resorting to building a stub dynamic library which
exports dummy functions with the same signatures as the real library
I'm trying to link to. This lets me link, but it won't let me add the
real dylib to the "Copy Files" build step to put it in the bundle. I
guess I'll have to do that in a script....
Thanks,
Dan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden