Re: Simple question on locating dynamic libraries at runtime
Re: Simple question on locating dynamic libraries at runtime
- Subject: Re: Simple question on locating dynamic libraries at runtime
- From: Marc Epard <email@hidden>
- Date: Wed, 04 Aug 2010 15:23:52 -0500
On Aug 4, 2010, at 2:25 PM, Chris Goedde wrote:
> I'm adapting an existing Cocoa project to interface with Matlab, which requires linking to a dynamic library supplied by The Mathworks.
Oh, man, I know your pain. I recently adapted a plugin to use the MATLAB Compiler Runtime. It wasn't pretty.
Enclosed is a BBEdit shell worksheet of the commands I used to fix up various MATLAB libraries before building the MCC dylib and linking it to the plugin.
I used the following incantation to build my MCC library so it could be embedded in my plugin bundle.
mcc -v -B csharedlib:libXxxx -M 'LDFLAGS=-install_name @loader_path/../Frameworks/libXxxx.dylib \$LDFLAGS' -d ../build/libXxxx Xxxxs.m.
HTH. I've moved on to another project so I'm a little rusty, but free to ask questions.
-Marc
Attachment:
MATLAB Compiler repair.worksheet
Description: Binary data
_______________________________________________
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