cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Help needed: can't deploy libcurl dependent program on non-developer osX machines

From: shachar carmi <shachar.carmi_at_gmail.com>
Date: Mon, 19 Sep 2011 18:45:52 +0300

On Mon, Sep 19, 2011 at 2:39 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sun, 18 Sep 2011, shachar carmi wrote:
>
> the problem is that i can't get the plug-ins to run on non-developer
>> machines. as soon as the function that calls the library is hit, the program
>> crashes. i'm linking against libcurl.4.dylib file that ships with osX.
>>
>
> This sounds really weird. Can you provide a lot of more details about it so
> perhaps we can get that sorted?
>
>
the developer machine is osx 10.5.8 with xcode 3.0.
i compile the app using two SDKs:

MacOSX10.4u.sdk

MacOSX10.5.sdk

i tried linking against the libcurl.dylib on both /Developer/usr/lib and
/usr/lib.
in these cases i tries putting the following values "other linker flags"
1. "/user/lib"
2. explicit path to dylib
the compile and linking are successful.
when examining the result app using otool -L, all combinations between these
options gave me the following entry:
/usr/lib/libcurl.3.dylib (compatibility version 4.0.0, current version
4.0.0)
(and libcurl.4.dylib when compiling under MacOSX10.5.sdk)

both apps run fine on the developer machine.
i tested them on a non-dev osx10.6.2 machine, and the both run fine until
the function containing libcurl calls get's called. (i'm using easy_curl).
i made sure that the libcurl.3.dylib (and 4) exist on the other machine on
the path that shows on the dependency list (/usr/lib).

even when i tried linking against libcurl.a (while removing all references
to /usr/lib from the project), after compiling the following line still show
up on otool -L:
/usr/lib/libcurl.3.dylib (compatibility version 4.0.0, current version
4.0.0)

what other info can help shed some light on this problem?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-19