Trouble running custom executable
Trouble running custom executable
- Subject: Trouble running custom executable
- From: "Michael Stauffer" <email@hidden>
- Date: Fri, 30 Jan 2009 15:45:01 -0500
- Importance: Normal
XCode 3.1
OSX 10.5.5
Hi,
I'm trying to debug a Matlab mexfile (a dylib) via XCode. I'm following
instructions from Matlab's site. They work for XCode 2.5 (according to
matlab tech support), but I'm having trouble on Xcode 3.1. I've created a
dylib project, and added a custom executable to launch matlab. When I debug
the project, I get the errors listed below.
There seems to be a path error. I set a bunch of env vars in the custom
executable inspector according to matlab's instrux. Note below that it says
env vars such as "TOOLBOX" are set to a null value, but then it lists what I
wanted to set it to. I've tried copying some files out of the app bundle
(MATLAB_R2008b.app) and pointing to those, but it's the same problem.
For example, the line below that reads:
"warning: Unable to read symbols for "@loader_path/libut.dylib" (file not
found).",
refs "libut.dylib". This file is in
"/Applications/MATLAB_R2008b.app/bin/maci" which I try to set to
DYLD_LIBRARY_PATH env var, but that seems to fail.
Thanks for any thoughts!
****
Debugger Console output:
[Session started at 2009-01-30 14:16:46 -0500.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-960) (Sun May 18 18:38:33 UTC
2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".Undefined command: "". Try
"help".
Undefined command: "". Try "help".
Setting environment variable "TOOLBOX" to null value.
/Applications/MATLAB_R2008b.app/toolbox
Setting environment variable "DYLD_LIBRARY_PATH" to null value.
/Applications/MATLAB_R2008b.app/sys/os/maci:/Applications/MATLAB_R2008b.app/
bin/maci:/Applications/MATLAB_R2008b.app/extern/lib/maci
Setting environment variable "XAPPLRESDIR" to null value.
(gdb) run
/Applications/Matlab2008b_copies/X11/app-defaults
Setting environment variable "MATLAB" to null value.
/Applications/MATLAB_R2008b.app
Setting environment variable "XKEYSYMDB" to null value.
/Applications/Matlab2008b_copies/X11/app-defaults/XKeysymDB
tty /dev/ttys010
warning: Unable to read symbols for "@loader_path/libut.dylib" (file not
found).
warning: Unable to read symbols from "libut.dylib" (not yet mapped into
memory).
warning: Unable to read symbols for "@loader_path/libmwfl.dylib" (file not
found).
warning: Unable to read symbols from "libmwfl.dylib" (not yet mapped into
memory).
warning: Unable to read symbols for "@loader_path/libmwmpath.dylib" (file
not found).
warning: Unable to read symbols from "libmwmpath.dylib" (not yet mapped into
memory).
warning: Unable to read symbols for "@loader_path/libmwservices.dylib" (file
not found).
warning: Unable to read symbols from "libmwservices.dylib" (not yet mapped
into memory).
warning: Unable to read symbols for "@loader_path/libmwjmi.dylib" (file not
found).
warning: Unable to read symbols from "libmwjmi.dylib" (not yet mapped into
memory).
warning: Unable to read symbols for "@loader_path/libmwbridge.dylib" (file
not found).
warning: Unable to read symbols from "libmwbridge.dylib" (not yet mapped
into memory).
warning: Unable to read symbols for "@loader_path/libmwmcr.dylib" (file not
found).
warning: Unable to read symbols from "libmwmcr.dylib" (not yet mapped into
memory).
warning: Unable to read symbols for "@loader_path/libmwm_dispatcher.dylib"
(file not found).
warning: Unable to read symbols from "libmwm_dispatcher.dylib" (not yet
mapped into memory).
warning: Unable to read symbols for "@loader_path/libmwm_interpreter.dylib"
(file not found).
warning: Unable to read symbols from "libmwm_interpreter.dylib" (not yet
mapped into memory).
warning: Bad symbol - type is N_SECT but section is 1
Program loaded.
[Switching to process 19839 local thread 0x2d03]
Running…
dyld: Library not loaded: @loader_path/libXm.3.dylib
Referenced from: /Applications/MATLAB_R2008b.app/bin/maci/libmwhg.dylib
Reason: image not found
(gdb)
_______________________________________________
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