I am trying to distribute a Cocoa app that launches my own c++ binaries and 
those binaries link to a dynamic library, but for those users that don't know 
how to download, compile, and install the needed dynamic library, I want to 
include in in the app resource. I did the following:

1. Compile Mac .app and store binaries for my c++ code and the needede library 
in a "binaries" folder in the app.

2. When my c++ code is compiled, it is linked with my installed library which 
is at /usr/local/lib

3. When running on Mac that does not have the installed library, I launch my 
c++ code using an NSTask and set the DYLD_LIBRARY_PATH environment variable to 
the path to the binaries folder in my application that has the needed library. 

On Macs without the installed library, it fails with

     dyld: unknown required load command 0-x80000022

I had this scheme working before and don't know what has now stopped it from 
working?

John Nairn

---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://www.cof.orst.edu/cof/wse/faculty/Nairn/
FEA/MPM Web Page: http://oregonstate.edu/~nairnj


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to